Skip to content

Commit

Permalink
[IMP] same id number message (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjscarafia committed Dec 11, 2020
1 parent fd21dfa commit d7dac0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion l10n_ar_partner/models/res_partner_id_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ def check(self):
if same_id_numbers:
raise ValidationError(_(
'Id Number must be unique per id category!\nSame number '
'is only allowed for partner with parent/child relation'))
'is only allowed for partner with parent/child relation.\n'
'* Partner: "%s"\n'
'* Ids of Same Id Number Partners: %s') % (
rec.partner_id.name, same_id_numbers.ids))

0 comments on commit d7dac0b

Please sign in to comment.