Friday, January 17, 2025
1 change · saas-17.2
Resolved issues and error corrections
Inventory receipts for branch companies can now create or use lot and serial numbers owned by the parent company without triggering an incorrect company mismatch error. This prevents blocked stock operations for products managed at company level while used by branches.
Original PR description
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.`
opw-4415565