diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index 2c8f9e7e..dab56ebf 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -284,6 +284,7 @@ class SaleOrder(models.Model): lot_attachment_values = [] lot = self.env['stock.production.lot'].create({ 'name': vals['lot_id']['name'], + 'assembled': vals['lot_id'].get('assembled',False), 'product_id': vals['product_id'], 'weight': vals['lot_id'].get('weight'), 'image': vals['lot_id'].get('image'),