diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2018-12-13 16:50:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-13 16:50:22 +0100 |
| commit | 1cb506c418e9a5f4605094d587bd72dd1559d354 (patch) | |
| tree | c2bae5bebaf3c303c6dfd155af1da51973896564 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | e226ca446084dc3bc60e721ff3f20582647e3a60 (diff) | |
| parent | b6a34384a4276041ec1b84471da8a1003e41be84 (diff) | |
[IMP] account: non deductible taxes to inventory
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
closes odoo/odoo#26367
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
