This commit is contained in:
2026-03-17 14:11:33 +01:00
parent 6b96cdbc88
commit a8d37bd766
3 changed files with 4 additions and 0 deletions

View File

@@ -312,6 +312,7 @@ class AutomationCron(ModelSQL, ModelView):
ShipmentIn.save([shipment])
inv_date,inv_nb = shipment._create_lots_from_fintrade()
shipment.controller = shipment.get_controller()
shipment.controller_target = controller
shipment.create_fee(shipment.controller)
shipment.instructions = shipment.get_instructions_html(inv_date,inv_nb)
ShipmentIn.save([shipment])

View File

@@ -441,6 +441,7 @@ class ShipmentIn(metaclass=PoolMeta):
)
shipment_wr = fields.One2Many('shipment.wr','shipment_in',"WR")
controller = fields.Many2One('party.party',"Controller")
controller_target = fields.Char("Targeted controller")
send_instruction = fields.Boolean("Send instruction")
instructions = fields.Text("Instructions")
add_bl = fields.Boolean("Add BL")

View File

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