Skip to content

Commit

Permalink
[FIX]stock_voucher:error return false
Browse files Browse the repository at this point in the history
closes #479

Signed-off-by: Bruno Zanotti <bz@adhoc.com.ar>
  • Loading branch information
jcadhoc committed May 3, 2024
1 parent 6ba2a36 commit 69b1eb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stock_voucher/wizards/stock_backorder_confirmation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class StockBackorderConfirmation(models.TransientModel):
_inherit = 'stock.backorder.confirmation'

def process(self):
super().process()
res = super().process()
pickings = self.env['stock.picking'].browse(
# if we came, for eg, from a sale order, active_id would be the
# sale order id
Expand All @@ -27,6 +27,8 @@ def process(self):
],
'type': 'ir.actions.act_multi',
}
else:
return res

def process_cancel_backorder(self):
super().process_cancel_backorder()
Expand Down

0 comments on commit 69b1eb6

Please sign in to comment.