Commit 7e950377 by François C.

Fix get_list_orders, if r['purchase_id'] is False

parent b2704620
Pipeline #2605 failed with stage
in 1 minute 48 seconds
......@@ -32,6 +32,7 @@ class CagetteReception(models.Model):
pids = []
if res and len(res) > 0:
for r in res:
if r['purchase_id']: # May be False
pids.append(int(r['purchase_id'][0]))
if len(pids):
......
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