-
-
Notifications
You must be signed in to change notification settings - Fork 247
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][REF] l10n_br_base: use vat field for CNPJ and extract l10n_br_cpf_code #3386
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-brazil-14.0/l10n-brazil-14.0-l10n_br_account_nfe Translate-URL: https://translation.odoo-community.org/projects/l10n-brazil-14-0/l10n-brazil-14-0-l10n_br_account_nfe/
Currently translated at 80.0% (28 of 35 strings) Translation: l10n-brazil-14.0/l10n-brazil-14.0-l10n_br_account_nfe Translate-URL: https://translation.odoo-community.org/projects/l10n-brazil-14-0/l10n-brazil-14-0-l10n_br_account_nfe/pt_BR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-brazil-14.0/l10n-brazil-14.0-l10n_br_account_nfe Translate-URL: https://translation.odoo-community.org/projects/l10n-brazil-14-0/l10n-brazil-14-0-l10n_br_account_nfe/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-brazil-16.0/l10n-brazil-16.0-l10n_br_purchase Translate-URL: https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-l10n_br_purchase/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-brazil-16.0/l10n-brazil-16.0-l10n_br_nfe_spec Translate-URL: https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-l10n_br_nfe_spec/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-brazil-16.0/l10n-brazil-16.0-l10n_br_nfe Translate-URL: https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-l10n_br_nfe/
[REF] extract l10n_br_fiscal_edi from l10n_br_fiscal 2/2 [TMP] leave invalidate.number in l10n_br_fiscal [REF] l10n_br_fiscal: mv doc wrkflw ->fisc edi [REF] l10n_br_fiscal_edi: mv doc wrkflw ->fisc edi [WIP] mv edoc import to fiscal_edi [REF] add fiscal document hook [FIX] l10n_br_fiscal_edi: wrong status_description [FIX] l10n_br_fiscal: edi migration
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-brazil-16.0/l10n-brazil-16.0-spec_driven_model Translate-URL: https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-spec_driven_model/
vale a pena ver que um refator importante do VAT/CNPJ que tinha sido feito pelo @marcelsavegnago na 14.0 ta atualmente faltando na 16.0 e por isso certamente esse meu PR ta incompleto: |
This was referenced Nov 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
O objetivo desse PR é de se aproximar do modelo de dados da Odoo que desde a versão 16.0 (e até a v18) usa o vat para armazenar o CNPJ.
Na v14 botamos o vat como related do cnpj_cpf, a ideia é agora de usar a coluna vat no banco de dados e conservar o campo cnpj_cpf como related para conservar uma certa compatibilidade e facilitar os cherry-picks com o codigo da v14 por enquanto.
Eu tb introduzi o campo l10n_br_cpf_code pro CPF de acordo com o modelo do Odoo a partir da v16:
https://github.com/odoo/odoo/blob/16.0/addons/l10n_br/models/res_partner.py
Eu tb aproveitei para melhorar a mensagem de validação.