20.01.26
This commit is contained in:
@@ -258,10 +258,10 @@ class AutomationCron(ModelSQL, ModelView):
|
||||
logger.warning(f"Carrier NON TROUVÉ pour {si_number}: '{carrier_name}'")
|
||||
|
||||
agent = None
|
||||
if agent_name:
|
||||
agent_list = Party.search([('name', '=', str(agent_name).strip().upper())], limit=1)
|
||||
if agent_list:
|
||||
agent = agent_list[0]
|
||||
|
||||
agent_list = Party.search([('name', '=', str(agent_name or 'TBN').strip().upper())], limit=1)
|
||||
if agent_list:
|
||||
agent = agent_list[0]
|
||||
|
||||
vessel = None
|
||||
if vessel_name:
|
||||
|
||||
Reference in New Issue
Block a user