-
-
Notifications
You must be signed in to change notification settings - Fork 332
Open
Labels
Description
Module
purchase_sale_stock_inter_company
Describe the bug
When using Sale from purchase, if delivery is using Lots/Serial numbers (products tracked by Lots or Unique Serial Number), reservations in the "customer" company are impossible, asking to provide a Lot/Serial number.
To Reproduce
16.0:
Steps to reproduce the behavior:
- In a runboat, install purchase_sale_stock_inter_company
- Configure My Company (Chicago)
- Sale from purchase = True
- Warehouse = Chicago 1
- Sale user = Marc Demo
- Sale Orders Auto Validation = True
- Configure My Company (San Francisco)
- Sale from purchase = True
- Warehouse = Your Company
- Sale user = Marc Demo
- Sale Orders Auto Validation = True
- Create product "Product with SN" :
- Type = Storable product
- Tracking = By Unique Serial Number (or By Lots)
- Switch to My company (Chicago)
- Create a Purchase Order
- Vendor = My Company (San Francisco)
- Add line :
- Product = Product with SN
- Qty = 1.0
- Unit price = 100.0
- Confirm order
- Switch to My company (San Francisco)
- Open contact My company (Chicago)
- Click on Sales button
- Open the newly created one (with Product with SN)
- Click on Delivery button
- product is not available
- From the Operations tab, click on Product with SN and click Update Quantity
- Click New and create new serial number SN001 and counted quantity = 1.0
- Click Apply
- Go back to delivery picking (product is now available)
- Click on Check availability
- Click on Validate (and confirm other actions : quantity done, SMS, etc.)
Expected behavior
In both companies, we should have the product received / delivered with SN001 as serial number
Instead, we have an error message :
User Error
You need to supply a Lot/Serial Number for product:
- Product with SN
The problem here is serial number SN001 doesn't exist in My company (Chicago) and can't be created nor selected to validate the incoming shipment (Receipts)
Additional context
- Before validating the delivery, someone must create some serial numbers on the incoming shipment in My company (Chicago) (leading to potential mismatch)
- There is already one PR to allow independent management of shipments, this would allow to validate the delivery : [16.0][IMP] purchase_sale_stock_inter_company: make pickings link configurable #776
- There is a PR adding "purchase_sale_lot_intercompany" module that already provide a method to select or create a serial number from one company to the other : [16.0][ADD] purchase_sale_lot_intercompany #510
I'll propose a PR with a test confirming this issue and a fix.