This commit is contained in:
2026-02-23 15:33:09 +01:00
parent 6fc0e5982a
commit c244cf658c

View File

@@ -56,7 +56,8 @@ class ContractFactory:
contract.reference = c.reference
contract.from_location = c.from_location
contract.to_location = c.to_location
contract.company = 6
context = Transaction().context
contract.company = context.get('company') if context else None
if type_ == 'Purchase':
contract.purchase_date = Date.today()
else: