Thursday, December 13, 2018
1 change · master
Enhancements to existing features
Inventory valuation now includes non-deductible taxes that are charged to the product or inventory account. This keeps stock values aligned with accounting entries and prevents unexplained price differences after taxed purchases or stock moves.
Original PR description
Non deductible taxes (ones without an account set), increase the target account of the product. In case of a inventory operation, this means the inventory account. To reflect this stock valuation…
Non deductible taxes (ones without an account set), increase the target account of the product. In case of a inventory operation, this means the inventory account. To reflect this stock valuation wise, we need to calculate this incremented values and rely on it during the inventory move price calculation. This commit does exactly that. **Description of the issue/feature this PR addresses:** - Inventory value and accounting value diverge on taxes which are summoned upon the target account - This is due to a inventory valuation based on the subtotal amount - Meanwhile balance accounts are charged with subtotal + value of taxes without accounts **Current behavior before PR:** - Inventory valuation and accounting valuation diverege - Consecutive accounting moves originated by stock moves do not reflect the accounting value at which the first move was charged (eg. by an invoice). - There is always an "inexplicable" price difference when working with taxes that don't have an account set (cost increasing taxes) **Desired behavior after PR is merged:** - The stock move will take exactly the same valuation as has been accrued on the taxed accounting move. - Balances do not diverge - No "mysterious" price differences appear. **Note:** Please do not close, even if not immediately accepted (`wishlist` tag). This PR is meant to be carried along and actively maintained, until this semantic will be completed this way or another. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr @xoe-labs