This commit is contained in:
2026-01-26 22:23:08 +01:00
parent 2248f49f9d
commit a3b7d11ae3

View File

@@ -319,6 +319,10 @@ class AutomationDocument(ModelSQL, ModelView, Workflow):
d.unit = sale_line.unit
d.price = sale_line.unit_price
d.price_type = 'priced'
d.crop = None
d.tol_min = 0
d.tol_max = 0
d.incoterm = None
ct.contracts = [d]
ContractFactory.create_contracts(
ct.contracts,