Skip to content

Commit

Permalink
Close issue OCA#2250
Browse files Browse the repository at this point in the history
  • Loading branch information
cscocca committed Apr 28, 2021
1 parent b3e3b05 commit 6e8aa56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l10n_it_fiscalcode/model/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ def check_fiscalcode(self):
(check_fiscalcode,
"The fiscal code doesn't seem to be correct.", ["fiscalcode"])
]

@api.onchange('fiscalcode')
def _fiscalcode_changed(self):
if self.fiscalcode:
self.fiscalcode = self.fiscalcode.upper()

0 comments on commit 6e8aa56

Please sign in to comment.