Commit f28b87c4 by Administrator

Merge branch '5014-cmd-bloquee-appli-reception' into 'dev_cooperatic'

detect odoo api not initialized so that po_in_process is deleted

See merge request !245
parents 0f62095c 1c062e88
Pipeline #2984 failed with stage
in 1 minute 7 seconds
......@@ -230,6 +230,9 @@ class CagetteReception(models.Model):
products are updated with new vendor prices"""
result = None
if self.o_api == None:
return 'error : cant reach odoo'
res = self.o_api.execute('purchase.order', 'action_view_picking', [self.id])
new_x_reception_status = ''
if res:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment