Commit 1c062e88 by Yvon

detect odoo api not initialized so that po_in_process is deleted

parent 0f62095c
Pipeline #2983 failed with stage
in 1 minute 4 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