This commit is contained in:
2026-01-26 22:09:09 +01:00
parent db207f4995
commit ece0e55f98

View File

@@ -296,7 +296,7 @@ class AutomationDocument(ModelSQL, ModelView, Workflow):
sale_line.quantity_theorical = lot_net_weight
sale_line.product = Product.get_by_name('BRAZIL COTTON')
logger.info("PRODUCT:%s",sale_line.product)
sale_line.unit = Uom.get_id_by_name(lot_unit)
sale_line.unit = Uom.get_by_name(lot_unit)
sale_line.price_type = 'priced'
sale_line.created_by_code = False
sale_line.note = dec_key