Faircot cron
This commit is contained in:
@@ -252,7 +252,10 @@ class AutomationCron(ModelSQL, ModelView):
|
||||
logger.info(
|
||||
"Shipment %s existe deja sans lots, verification freight_booking_lots",
|
||||
si_number)
|
||||
inv_date, inv_nb = shipment._create_lots_from_fintrade()
|
||||
with Transaction().set_context(
|
||||
_purchase_trade_skip_physical_lot_tolerance_warning=True):
|
||||
inv_date, inv_nb = (
|
||||
shipment._create_lots_from_fintrade())
|
||||
shipment = ShipmentIn(shipment.id)
|
||||
if shipment.incoming_moves:
|
||||
shipment.controller = shipment.get_controller()
|
||||
@@ -342,7 +345,9 @@ class AutomationCron(ModelSQL, ModelView):
|
||||
shipment.etad = shipment.bl_date + timedelta(days=20)
|
||||
|
||||
ShipmentIn.save([shipment])
|
||||
inv_date, inv_nb = shipment._create_lots_from_fintrade()
|
||||
with Transaction().set_context(
|
||||
_purchase_trade_skip_physical_lot_tolerance_warning=True):
|
||||
inv_date, inv_nb = shipment._create_lots_from_fintrade()
|
||||
shipment.controller = shipment.get_controller()
|
||||
shipment.controller_target = controller
|
||||
shipment.create_fee(shipment.controller)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<tree>
|
||||
<field name="bl_number"/>
|
||||
<field name="status"/>
|
||||
<field name="status" widget="badge"
|
||||
badge_colors="found:#16a34a,Found:#16a34a,error:#ef4444,Error:#ef4444"/>
|
||||
<field name="shipment"/>
|
||||
<field name="automation_document"/>
|
||||
</tree>
|
||||
|
||||
Reference in New Issue
Block a user