OCA / stock-logistics-workflow

Odoo Stock, Workflow and Organization
GNU Affero General Public License v3.0
226 stars 642 forks source link

[15.0][IMP] product_cost_price_avco_sync: Don't apply qty changes to landed costs #1669

Closed CarlosRoca13 closed 1 month ago

CarlosRoca13 commented 1 month ago

When a change is made to the quantities of a stock move that is associated with multiple stock valuation layers, including those related to landed costs, the quantity change is being applied to all the lines instead of only to the one related to the material entry.

With these changes, we restrict the quantity change solely to the stock valuation layer related to the material entry, preventing the change from being applied to the lines associated with landed costs.

cc @Tecnativa TT50028

ping @pedrobaeza @chienandalu

OCA-git-bot commented 1 month ago

Hi @sergio-teruel, @carlosdauden, some modules you are maintaining are being modified, check this out!

pedrobaeza commented 1 month ago

/ocabot merge patch

OCA-git-bot commented 1 month ago

What a great day to merge this nice PR. Let's do it! Prepared branch 15.0-ocabot-merge-pr-1669-by-pedrobaeza-bump-patch, awaiting test results.

OCA-git-bot commented 1 month ago

Congratulations, your PR was merged at e7e726e837d6794ae0bd9350e2d20ae10baae232. Thanks a lot for contributing to OCA. ❤️