odoo/odoo#194215
Created by fw-bot
Merged
at 3c14a8a0b09f1c6d95e8ae5f52f9fc5df96c21db
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:saas-18.1-saas-17.2-opw-4415565-stock-fix-lot-branch-company-otd-y5IN-fw
- head
- b0da95dfb1e26dd5f5bc6f73a20418e79cfae89f
- merged
- 5 months ago by Bugfix, Djamel Touati (otd)
odoo/odoo | |
---|---|
saas-17.2 | #191529 |
saas-17.4 | #194172 |
18.0 | #194196 |
saas-18.1 | #194215 |
saas-18.2 | |
saas-18.3 | |
master | #195509 |
[FW][FIX] stock: allow lot to be used by branches
Steps to reproduce the bug:
- Create a “Company A” and a “ branch 1” linked to this company
- Create a storable product “P1”:
- limited to Company A
- Select only the branch 1 as current company
- Create a receipt for one unit of P1
- Mark it as to do.
- Try to create a lot or use lot created in Company A
Problem:
An acces error is raised:
Incompatible companies on records:
- 'Product B' belongs to company 'Branch X' and 'Lot/Serial Number' (lot_id: 'sn_test') belongs to another company.
Forward-Port-Of: #191529