summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfixco_custom/models/stock_picking.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py
index 9d25944..0cfa065 100755
--- a/fixco_custom/models/stock_picking.py
+++ b/fixco_custom/models/stock_picking.py
@@ -295,8 +295,9 @@ class StockPicking(models.Model):
)
res = super(StockPicking, self).action_cancel()
- if self.picking_type_code == 'incoming' and self.name.startswith('BU/IN'):
- self.set_po_bill_status()
+ for picking in self:
+ if picking.picking_type_code == 'incoming' and picking.name.startswith('BU/IN'):
+ picking.set_po_bill_status()
return res