main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 1339f51256 - Show all commits

View File

@@ -304,6 +304,13 @@ class AutomationDocument(ModelSQL, ModelView, Workflow):
sale_line.note = dec_key
SaleLine.save([sale_line])
#need to link the virtual part to the shipment
lqt = LotQt.search([('lot_s','=',sale_line.lots[0])])
if lqt:
lqt[0].lot_shipment_in = sh[0]
LotQt.save([lqt])
logger.info("SALE_LINKED_TO_SHIPMENT:%s",sh[0])
ContractStart = Pool().get('contracts.start')
ContractDetail = Pool().get('contract.detail')
ct = ContractStart()