This question has been flagged

Hi All,

Working on V6.1

How can i make the production lot of a product appear on the sales order and picking list for delivery when the product is selected? We have a system that requires the batch number/production lot of every product appears on the sales order items. If a product is sold but the product is sold from two different batches the batch number/production lot must illustrate that even though one product is sold, the product is from a previous batch and a new one. This process arises when a product has 2 left from a previous batch in stock and a customer buys more than 2 on a sales order (show on sale order line). We want to be able to print all labels with the appropriate lot numbers. In this instance, two labels from the first batch and 1 from the new batch. Will this require creating a new module of there is a way to do this without creating a new module (same lot should apply to delivery order line too)?

Avatar
Discard

Have you tried to create an onchange on the field product_id ? The onchange will fill the field prodlot, wich you have previously created in python file.