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

[18.0][MIG] purchase_stock_price_unit_sync #2518

Open
wants to merge 34 commits into
base: 18.0
Choose a base branch
from

Conversation

ThiagoMForgeFlow
Copy link
Contributor

carlosdauden and others added 30 commits January 17, 2025 09:21
…k moves already done

[UPD] Update purchase_stock_price_unit_sync.pot

[UPD] README.rst
[UPD] Update purchase_stock_price_unit_sync.pot
[UPD] Update purchase_stock_price_unit_sync.pot
If we receive a kit, we shouldn't write the kit purchase price on the
components price units.

TT32040

purchase_stock_price_unit_sync 13.0.1.0.1
…nded costs for the update if the stock_landed_costs addon is installed.

TT35009
Steps to reproduce:

- Create a purchase order with an storable product and confirm it.
- Validate the reception picking.
- Create a landed cost linked to the reception picking and validate it.
- Now change the unit price in the purchase order.

Result: Both SVLs (stock valuation layers), the one for the reception,
and the landed cost one, result overwritten with the new purchase unit
price, while only the reception one should.

As the landed cost SVL is put as children (through the field
`stock_valuation_layer_id`), we filter out these ones from the write.
In purchase_discount the price_unit needs to be written in order to be
able to compute the discount as the hook method isn't being used in core
(for the moment). These write should be ignored as they'll lead to an
infinite loop

TT36816
…rors when accessing stock.valuation.layer

TT45036
Currently translated at 100.0% (1 of 1 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_stock_price_unit_sync
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_stock_price_unit_sync/it/
CarlosRoca13 and others added 4 commits January 17, 2025 09:21
…ck moves

When the price of a line is changed, and it does not have any associated
stock.move completed but does have stock.moves in a different state,
this will result in no SVLs being found. Consequently, attempting to
write to the empty recordset is causing issues.
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.