Skip to content

Commit

Permalink
[FIX] Fix stock rule _compute_propagate_carrier for multiple computation
Browse files Browse the repository at this point in the history
closes #404

Signed-off-by: Bruno Zanotti <bz@adhoc.com.ar>
  • Loading branch information
maq-adhoc committed Oct 6, 2023
1 parent fb37a55 commit 8595468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stock_ux/models/stock_rule.py
Expand Up @@ -14,5 +14,5 @@ class StockRule(models.Model):
def _compute_propagate_carrier(self):
""" Make True by default if picking code is outgoing
"""
self.propagate_carrier = self.picking_type_id.code == 'outgoing'

for rec in self:
rec.propagate_carrier = rec.picking_type_id.code == 'outgoing'

0 comments on commit 8595468

Please sign in to comment.