odoo/odoo#159874
Created by Abhishek Yadav (abya)
Blocked
- Merge method
- Review
-
CI
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:master-stock-accounting-date-abya
- head
- 3d8de3b635184694750b1cd94a9149e8efd4eb7f
- target
- master
[IMP] stock_account: accounting date on new quants
Before this commit:
==================
- When similar type of quant exists(with the same product(tracked) and location)
with accounting date and we create a new of quant with same product and
location accounting will not be set for newly created quant.
- When we apply counts of multiple similar(same product (tracked) and location)
quants of tracked product and they have different accounting dates then these
different dates will used as accounting date (in case of automatic valuation).
After this commit:
==================
- When creating new quant of tracked product accounting date will we set for new
quant if similar(same product(tracked) and location) quants exist and these
quants have accounting date, date will be selected.
For Example: let's say today is 10th and accounting date for different quants
4,6,7,10, 11, empty for 6 similar quants. then 7 will be selected as
accounting date.
- Similarly accounting date will be selected when we apply counts of
similar(same product and location) quants of tracked product accounting date
will be set which will be used as accounting date in case of automatic
valuation. So accounting date of all quants will be same.
task 3817532