odoo/odoo#188875
Created by fw-bot
Merged
at de608b36df6f7490650233f2f23137a600d3daa7
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- 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:18.0-16.0-fix-_validate_accounting_entries-kasm-tTVY-fw
- head
- 9be8efd9f67ea686f66c89129684a138380e57dc
- merged
- 10 months ago by Mohamed Kasem (kasm)
odoo/odoo | |
---|---|
16.0 | #188680 |
17.0 | #188795 |
saas-17.2 | #188841 |
saas-17.4 | #188858 |
18.0 | #188875 |
saas-18.2 | |
saas-18.3 | |
saas-18.4 | |
19.0 | |
master | #188883 |
[FW][FIX] stock_account: fix company_id singleton error in _validate_accounting_entries
This commit fixes a bug introduced in the PR ( #186434 ). This PR aims to batch operations on svls by grouping based on products. However, it didn't take into account the possibility where svls could belong to different companies. This would lead to a singleton error upon referencing the field "anglo_saxon_accounting".
To fix the problem, grouping svls must be done based on a composite key based on product and value of "anglo_saxon_accounting".
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #188680