This commit is contained in:
2026-03-17 20:04:11 +01:00
parent 24c8cd8075
commit 01777f1536
3 changed files with 16 additions and 0 deletions

View File

@@ -449,6 +449,7 @@ class ShipmentIn(metaclass=PoolMeta):
returned_id = fields.Char("Returned ID")
result = fields.Char("Result",readonly=True)
agent = fields.Many2One('party.party',"Booking Agent")
service_order_key = fields.Integer("Service Order Key")
@classmethod
def __setup__(cls):
@@ -815,6 +816,7 @@ class ShipmentIn(metaclass=PoolMeta):
data = sh.create_service_order(so_payload)
logger.info("SO_NUMBER:%s",data.get('service_order_number'))
sh.result += f" / SO Nb {data.get('service_order_number')}"
sh.service_order_key = int(data.get('service_order_key'))
sh.save()
@classmethod

View File

@@ -115,6 +115,7 @@ this repository contains the full copyright notices and license terms. -->
<page string="Weight Report" col="4" id="wr">
<label name="controller"/>
<field name="controller"/>
<newline/>
<label name="controller_target"/>
<field name="controller_target"/>
<button name="send" string="Send email to controller"/>