-
-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0] [FIX] l10n_it_fatturapa_in: Il codice fiscale non sembra corretto #3996
base: 16.0
Are you sure you want to change the base?
[16.0] [FIX] l10n_it_fatturapa_in: Il codice fiscale non sembra corretto #3996
Conversation
d668c01
to
b867c13
Compare
b867c13
to
af29574
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR has the |
"""`fiscal_code` is the Fiscal Code of a Person.""" | ||
return len(fiscal_code) == 16 | ||
|
||
|
||
class ResPartner(models.Model): | ||
_inherit = "res.partner" | ||
|
||
@api.constrains("fiscalcode") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non ci vorrebbe un controllo anche nel caso cambiasse company_type
?
In pratica dovrebbe essere possibile cambiare solo con:
partner.write({"company_type": whatever, "fiscalcode": False})
partner.write({"company_type": "person", "fiscalcode": string_of_len16})
partner.write({"company_type": "company", "fiscalcode": string_of_len11})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non ci vorrebbe un controllo anche nel caso cambiasse
company_type
?
È stato aggiunto da poco in eb161c7.
[IMP] l10n_it_fiscalcode: Check Company Fiscal Code
1526a08
to
afdd435
Compare
conflitti risolti |
#3528