Skip to content

Commit

Permalink
[FIX]stock_voucher: not compute declared_value if validate
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Paez authored and nicomacr committed Oct 7, 2021
1 parent 12f073d commit b1eaf4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_voucher/models/stock_picking.py
Expand Up @@ -146,7 +146,7 @@ def button_validate(self):
'move_lines.quantity_done',
)
def _compute_declared_value(self):
for rec in self.filtered('automatic_declare_value'):
for rec in self.filtered(lambda p: p.automatic_declare_value and p.state not in ['done', 'cancel']):
done_value = 0.0
picking_value = 0.0
inmediate_transfer = True
Expand Down

0 comments on commit b1eaf4b

Please sign in to comment.