Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX] account_move_line_purchase_info: do not consider stock entry lines on revaluations #2018

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

AlexPForgeFlow
Copy link
Contributor

@AlexPForgeFlow AlexPForgeFlow commented Jan 27, 2025

Issue: #2017

Up to now, stock entries were considered in the revaluation process as they were stored on field invoice_lines. To avoid that we introduced a dedicated field to manage stock entries and avoid taking them into account in the revaluation odoo core process.

@AlexPForgeFlow AlexPForgeFlow force-pushed the 16.0-imp-account_move_line_purchase_info branch 8 times, most recently from 19b9e52 to 2d9cdfe Compare January 28, 2025 11:18
…try lines on revaluations

Up to now, stock entries were considered in the revaluation process as they were stored on field invoice_lines. To avoid that we introduced a dedicated field to manage stock entries and avoid taking them into account in the revaluation odoo core process.
@AlexPForgeFlow AlexPForgeFlow force-pushed the 16.0-imp-account_move_line_purchase_info branch from 2d9cdfe to c98562c Compare January 28, 2025 13:47
Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review LG. I am not sure if we can have a Many2one field with a suffix that is not "_id". It's true purchase_line_id_oca_id sounds weird :S

@@ -33,6 +33,13 @@ This module will add the purchase order line to journal items.
The ultimate goal is to establish the purchase order line as one of the key
fields to reconcile the Goods Received Not Invoiced accrual account.

Field purchase_line_id_oca it's necessary. In Odoo >=16 automatic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Field purchase_line_id_oca it's necessary. In Odoo >=16 automatic
Field purchase_line_id_oca is necessary. In Odoo >=16 automatic

Field purchase_line_id_oca it's necessary. In Odoo >=16 automatic
revaluation for a product with FIFO costing method only works if invoice
lines related to a purchase order line do not include stock journal items.
To aviod that purchase_line_id_oca includes invoice and stock journal items,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To aviod that purchase_line_id_oca includes invoice and stock journal items,
To avoid that purchase_line_id_oca includes invoice and stock journal items,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants