Skip to content

Commit

Permalink
[13.0] [FIX] stock_voucher: Return the value changed if it's not fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomacr committed Feb 9, 2021
1 parent eb18074 commit 902ead6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stock_voucher/models/stock_picking_voucher.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def _format_document_number(self, document_number):
'The document number must be entered with a dash (-) and a maximum of 4 characters for the first part'
'and 8 for the second. The following are examples of valid numbers:\n* 1-1\n* 0001-00000001'
'\n')))
else:
return document_number

@api.constrains('name', 'picking_id')
@api.onchange('name', 'picking_id')
Expand Down

0 comments on commit 902ead6

Please sign in to comment.