Skip to content
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

Open
wants to merge 3 commits into
base: 16.0
Choose a base branch
from

Conversation

eLBati
Copy link
Member

@eLBati eLBati commented Feb 27, 2024

@eLBati eLBati force-pushed the 16.0-fix-l10n_it_fatturapa_in-company_fiscal_code branch 2 times, most recently from d668c01 to b867c13 Compare February 27, 2024 17:01
@francesco-ooops francesco-ooops linked an issue Feb 27, 2024 that may be closed by this pull request
3 tasks
@eLBati eLBati force-pushed the 16.0-fix-l10n_it_fatturapa_in-company_fiscal_code branch from b867c13 to af29574 Compare February 29, 2024 16:41
Copy link
Contributor

@MarcoCalcagni MarcoCalcagni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@MaurizioPellegrinet MaurizioPellegrinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

"""`fiscal_code` is the Fiscal Code of a Person."""
return len(fiscal_code) == 16


class ResPartner(models.Model):
_inherit = "res.partner"

@api.constrains("fiscalcode")
Copy link
Contributor

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})

Copy link
Contributor

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.

@SirAionTech SirAionTech added the needs fixing Has conflicts or is failing mandatory CI checks label Aug 21, 2024
@eLBati eLBati force-pushed the 16.0-fix-l10n_it_fatturapa_in-company_fiscal_code branch from 1526a08 to afdd435 Compare October 24, 2024 09:56
@eLBati
Copy link
Member Author

eLBati commented Oct 24, 2024

conflitti risolti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs fixing Has conflicts or is failing mandatory CI checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

l10n_it_fatturapa_in: Il codice fiscale non sembra corretto
7 participants