Commit 3a5abee5 by Yvon Kerdoncuff

fix v12 port introduced bug : do pass lines of order to shelf label printing…

fix v12 port introduced bug : do pass lines of order to shelf label printing method otherwise nothing happens
parent 70ac02d7
...@@ -203,7 +203,7 @@ class CagetteReception(models.Model): ...@@ -203,7 +203,7 @@ class CagetteReception(models.Model):
self.o_api.update('product.product', to_reset, {'to_print': 0}) self.o_api.update('product.product', to_reset, {'to_print': 0})
def update_products_price_v12(self): def update_products_price_v12(self):
result = {'success': False} result = {'success': False, 'lines': Order(self.id).get_lines()['lines']}
try: try:
result['success'] = self.o_api.execute('purchase.order', 'update_po_price_to_vendor_price', [self.id]) result['success'] = self.o_api.execute('purchase.order', 'update_po_price_to_vendor_price', [self.id])
except Exception as e: except Exception as e:
......
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