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][REF] l10n_br_base: use vat field for CNPJ and extract l10n_br_cpf_code #3386

Closed
wants to merge 10,000 commits into from

Conversation

rvalyi
Copy link
Member

@rvalyi rvalyi commented Sep 27, 2024

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.

OCA-git-bot and others added 30 commits September 6, 2024 18:32
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/
Signed-off-by antoniospneto
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
@rvalyi
Copy link
Member Author

rvalyi commented Nov 13, 2024

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:

#3487 (comment)

cc @antoniospneto @renatonlima

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.