diff --git a/.copier-answers.yml b/.copier-answers.yml index 1ef37e539602..67c739bde40b 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,6 +1,7 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.21.1 +_commit: v1.24 _src_path: gh:oca/oca-addons-repo-template +additional_ruff_rules: [] ci: GitHub convert_readme_fragments_to_markdown: false generate_requirements_txt: true @@ -26,5 +27,5 @@ repo_name: Odoo Brazilian Localization / Localização brasileira do Odoo repo_slug: l10n-brazil repo_website: https://github.com/OCA/l10n-brazil use_pyproject_toml: false -use_ruff: false +use_ruff: true diff --git a/.gitignore b/.gitignore index 0090721f5d24..2b045db39953 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,15 @@ var/ *.egg *.eggs +# Debian packages +*.deb + +# Redhat packages +*.rpm + +# MacOS packages +*.dmg + # Installer logs pip-log.txt pip-delete-this-directory.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6df0e4eb7ea3..820481f4eebf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,7 +45,7 @@ repos: language: fail files: '[a-zA-Z0-9_]*/i18n/en\.po$' - repo: https://github.com/oca/maintainer-tools - rev: 9a170331575a265c092ee6b24b845ec508e8ef75 + rev: d5fab7ee87fceee858a3d01048c78a548974d935 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons @@ -64,21 +64,6 @@ repos: hooks: - id: oca-checks-odoo-module - id: oca-checks-po - - repo: https://github.com/myint/autoflake - rev: v1.4 - hooks: - - id: autoflake - args: - - --expand-star-imports - - --ignore-init-module-imports - - --in-place - - --remove-all-unused-imports - - --remove-duplicate-keys - - --remove-unused-variables - - repo: https://github.com/psf/black - rev: 22.3.0 - hooks: - - id: black - repo: https://github.com/pre-commit/mirrors-prettier rev: v2.1.2 hooks: @@ -125,14 +110,6 @@ repos: hooks: - id: pyupgrade args: ["--keep-percent-format"] - - repo: https://github.com/PyCQA/isort - rev: 5.12.0 - hooks: - - id: isort - name: isort except __init__.py - args: - - --settings=. - exclude: /__init__\.py$ - repo: https://github.com/acsone/setuptools-odoo rev: 3.1.8 hooks: @@ -143,12 +120,12 @@ repos: - requirements.txt - --header - "# generated from manifests external_dependencies" - - repo: https://github.com/PyCQA/flake8 - rev: 3.8.3 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.3 hooks: - - id: flake8 - name: flake8 - additional_dependencies: ["flake8-bugbear==20.1.4"] + - id: ruff + args: [--fix, --exit-non-zero-on-fix] + - id: ruff-format - repo: https://github.com/OCA/pylint-odoo rev: 7.0.2 hooks: diff --git a/.ruff.toml b/.ruff.toml new file mode 100644 index 000000000000..ee1e6acb147b --- /dev/null +++ b/.ruff.toml @@ -0,0 +1,30 @@ + +target-version = "py39" + +fix = true + +[lint] +extend-select = [ + "B", + "C90", + "E501", # line too long (default 88) + "I", # isort +] +exclude = ["setup/*"] + +[format] +exclude = ["setup/*"] + +[per-file-ignores] +"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py +"__manifest__.py" = ["B018"] # useless expression + +[isort] +section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"] + +[isort.sections] +"odoo" = ["odoo"] +"odoo-addons" = ["odoo.addons"] + +[mccabe] +max-complexity = 16 diff --git a/.t2d.yml b/.t2d.yml deleted file mode 100644 index 5e8e3a666b33..000000000000 --- a/.t2d.yml +++ /dev/null @@ -1,42 +0,0 @@ -language: python -cache: - directories: - - $HOME/.cache/pip - - $HOME/.cache/pre-commit - -python: - - "3.6" - -addons: - postgresql: "9.6" - apt: - packages: - - expect-dev # provides unbuffer utility - -stages: - - test - -jobs: - include: - - stage: test - env: - - TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT="1" - - stage: test - env: - - TESTS=1 ODOO_REPO="OCA/OCB" -env: - global: - - VERSION="14.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0" - - MQT_DEP=PIP - -install: - - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git - ${HOME}/maintainer-quality-tools - - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} - - travis_install_nightly - -script: - - travis_run_tests - -after_success: - - travis_after_tests_success diff --git a/README.md b/README.md index fdd614a03906..b333fcf27679 100644 --- a/README.md +++ b/README.md @@ -43,66 +43,66 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[l10n_br_account](l10n_br_account/) | 14.0.11.13.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Invoicing and accounting entries for Brazil -[l10n_br_account_due_list](l10n_br_account_due_list/) | 14.0.2.0.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Brazilian Account Due List -[l10n_br_account_nfe](l10n_br_account_nfe/) | 14.0.5.1.0 | [![antoniospneto](https://github.com/antoniospneto.png?size=30px)](https://github.com/antoniospneto) [![felipemotter](https://github.com/felipemotter.png?size=30px)](https://github.com/felipemotter) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | Integration between l10n_br_account and l10n_br_nfe -[l10n_br_account_payment_brcobranca](l10n_br_account_payment_brcobranca/) | 14.0.6.0.1 | [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | receivable Boletos and CNAB using the brcobranca lib -[l10n_br_account_payment_order](l10n_br_account_payment_order/) | 14.0.6.0.0 | [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | Brazilian Payment Order -[l10n_br_account_withholding](l10n_br_account_withholding/) | 14.0.1.2.0 | [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Brazilian Withholding Invoice Generator -[l10n_br_base](l10n_br_base/) | 14.0.3.16.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Customization of base module for implementations in Brazil. -[l10n_br_cnab_structure](l10n_br_cnab_structure/) | 14.0.1.3.0 | [![antoniospneto](https://github.com/antoniospneto.png?size=30px)](https://github.com/antoniospneto) [![felipemotter](https://github.com/felipemotter.png?size=30px)](https://github.com/felipemotter) | This module allows defining the structure for generating the CNAB file. Used to exchange information with Brazilian banks. +[l10n_br_account](l10n_br_account/) | 14.0.11.13.3 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Invoicing and accounting entries for Brazil +[l10n_br_account_due_list](l10n_br_account_due_list/) | 14.0.2.0.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Brazilian Account Due List +[l10n_br_account_nfe](l10n_br_account_nfe/) | 14.0.5.1.1 | [![antoniospneto](https://github.com/antoniospneto.png?size=30px)](https://github.com/antoniospneto) [![felipemotter](https://github.com/felipemotter.png?size=30px)](https://github.com/felipemotter) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | Integration between l10n_br_account and l10n_br_nfe +[l10n_br_account_payment_brcobranca](l10n_br_account_payment_brcobranca/) | 14.0.7.0.2 | [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | receivable Boletos and CNAB using the BRCobranca lib +[l10n_br_account_payment_order](l10n_br_account_payment_order/) | 14.0.9.0.0 | [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | Brazilian Payment Order +[l10n_br_account_withholding](l10n_br_account_withholding/) | 14.0.1.2.1 | [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Brazilian Withholding Invoice Generator +[l10n_br_base](l10n_br_base/) | 14.0.3.16.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Customization of base module for implementations in Brazil. +[l10n_br_cnab_structure](l10n_br_cnab_structure/) | 14.0.1.3.1 | [![antoniospneto](https://github.com/antoniospneto.png?size=30px)](https://github.com/antoniospneto) [![felipemotter](https://github.com/felipemotter.png?size=30px)](https://github.com/felipemotter) | This module allows defining the structure for generating the CNAB file. Used to exchange information with Brazilian banks. [l10n_br_cnpj_search](l10n_br_cnpj_search/) | 14.0.1.7.0 | | Integração com os Webservices da ReceitaWS e SerPro [l10n_br_coa](l10n_br_coa/) | 14.0.4.1.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) | Base do Planos de Contas brasileiros [l10n_br_coa_generic](l10n_br_coa_generic/) | 14.0.4.0.0 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) | Plano de Contas para empresas do Regime normal (Micro e pequenas empresas) [l10n_br_coa_simple](l10n_br_coa_simple/) | 14.0.3.1.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Plano de Contas ITG 1000 para Microempresas e Empresa de Pequeno Porte -[l10n_br_contract](l10n_br_contract/) | 14.0.2.4.0 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Customization of Contract module for implementations in Brazil. +[l10n_br_contract](l10n_br_contract/) | 14.0.2.4.1 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Customization of Contract module for implementations in Brazil. [l10n_br_crm](l10n_br_crm/) | 14.0.1.3.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | Brazilian Localization CRM [l10n_br_cte_spec](l10n_br_cte_spec/) | 14.0.1.0.0 | [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | CT-e spec -[l10n_br_currency_rate_update](l10n_br_currency_rate_update/) | 14.0.1.0.2 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Update exchange rates using OCA modules for Brazil -[l10n_br_delivery](l10n_br_delivery/) | 14.0.2.2.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | delivery module Brazilian Localization +[l10n_br_currency_rate_update](l10n_br_currency_rate_update/) | 14.0.1.0.3 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Update exchange rates using OCA modules for Brazil +[l10n_br_delivery](l10n_br_delivery/) | 14.0.2.2.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | delivery module Brazilian Localization [l10n_br_delivery_nfe](l10n_br_delivery_nfe/) | 14.0.1.1.0 | [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | Brazilian Localization Delivery NFe -[l10n_br_fiscal](l10n_br_fiscal/) | 14.0.23.2.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | root fiscal module for Brazil +[l10n_br_fiscal](l10n_br_fiscal/) | 14.0.23.4.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | root fiscal module for Brazil [l10n_br_fiscal_certificate](l10n_br_fiscal_certificate/) | 14.0.1.3.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | A1 fiscal certificate management for Brazil -[l10n_br_fiscal_closing](l10n_br_fiscal_closing/) | 14.0.2.0.0 | | Period fiscal closing -[l10n_br_fiscal_dfe](l10n_br_fiscal_dfe/) | 14.0.2.4.0 | | Distribuição de documentos fiscais -[l10n_br_fiscal_edi](l10n_br_fiscal_edi/) | 14.0.1.0.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) | Common EDI fiscal features -[l10n_br_hr](l10n_br_hr/) | 14.0.1.5.0 | | Brazilian Localization HR -[l10n_br_hr_expense_invoice](l10n_br_hr_expense_invoice/) | 14.0.1.0.0 | | Customization of HR Expense Invoice module for implementations in Brazil. -[l10n_br_ie_search](l10n_br_ie_search/) | 14.0.1.3.0 | | Integração com a API SintegraWS e SEFAZ +[l10n_br_fiscal_closing](l10n_br_fiscal_closing/) | 14.0.2.0.1 | | Period fiscal closing +[l10n_br_fiscal_dfe](l10n_br_fiscal_dfe/) | 14.0.2.4.1 | | Distribuição de documentos fiscais +[l10n_br_fiscal_edi](l10n_br_fiscal_edi/) | 14.0.1.1.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) | Common EDI fiscal features +[l10n_br_hr](l10n_br_hr/) | 14.0.1.5.1 | | Brazilian Localization HR +[l10n_br_hr_expense_invoice](l10n_br_hr_expense_invoice/) | 14.0.1.0.1 | | Customization of HR Expense Invoice module for implementations in Brazil. +[l10n_br_ie_search](l10n_br_ie_search/) | 14.0.1.3.1 | | Integração com a API SintegraWS e SEFAZ [l10n_br_mdfe_spec](l10n_br_mdfe_spec/) | 14.0.1.0.0 | [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | CT-e spec [l10n_br_mis_report](l10n_br_mis_report/) | 14.0.1.0.1 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) | Templates de relatórios contábeis brasileiros: Balanço Patrimonial e DRE -[l10n_br_nfe](l10n_br_nfe/) | 14.0.17.1.0 | [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Eletronic Invoicing for Brazil / NF-e +[l10n_br_nfe](l10n_br_nfe/) | 14.0.17.1.2 | [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Eletronic Invoicing for Brazil / NF-e [l10n_br_nfe_spec](l10n_br_nfe_spec/) | 14.0.6.2.0 | [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | nfe spec [l10n_br_nfse](l10n_br_nfse/) | 14.0.2.0.0 | [![gabrielcardoso21](https://github.com/gabrielcardoso21.png?size=30px)](https://github.com/gabrielcardoso21) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![luismalta](https://github.com/luismalta.png?size=30px)](https://github.com/luismalta) [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Root electronic invoice for service / NFS-e module -[l10n_br_nfse_barueri](l10n_br_nfse_barueri/) | 14.0.1.0.1 | [![AndreMarcos](https://github.com/AndreMarcos.png?size=30px)](https://github.com/AndreMarcos) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![ygcarvalh](https://github.com/ygcarvalh.png?size=30px)](https://github.com/ygcarvalh) | NFS-e (Barueri) -[l10n_br_nfse_focus](l10n_br_nfse_focus/) | 14.0.1.2.0 | [![AndreMarcos](https://github.com/AndreMarcos.png?size=30px)](https://github.com/AndreMarcos) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![ygcarvalh](https://github.com/ygcarvalh.png?size=30px)](https://github.com/ygcarvalh) [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | NFS-e (FocusNFE) +[l10n_br_nfse_barueri](l10n_br_nfse_barueri/) | 14.0.1.0.2 | [![AndreMarcos](https://github.com/AndreMarcos.png?size=30px)](https://github.com/AndreMarcos) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![ygcarvalh](https://github.com/ygcarvalh.png?size=30px)](https://github.com/ygcarvalh) | NFS-e (Barueri) +[l10n_br_nfse_focus](l10n_br_nfse_focus/) | 14.0.1.2.1 | [![AndreMarcos](https://github.com/AndreMarcos.png?size=30px)](https://github.com/AndreMarcos) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![ygcarvalh](https://github.com/ygcarvalh.png?size=30px)](https://github.com/ygcarvalh) [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | NFS-e (FocusNFE) [l10n_br_nfse_ginfes](l10n_br_nfse_ginfes/) | 14.0.1.1.0 | [![gabrielcardoso21](https://github.com/gabrielcardoso21.png?size=30px)](https://github.com/gabrielcardoso21) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![luismalta](https://github.com/luismalta.png?size=30px)](https://github.com/luismalta) | NFS-e (Ginfes) [l10n_br_nfse_paulistana](l10n_br_nfse_paulistana/) | 14.0.1.1.6 | [![gabrielcardoso21](https://github.com/gabrielcardoso21.png?size=30px)](https://github.com/gabrielcardoso21) [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![luismalta](https://github.com/luismalta.png?size=30px)](https://github.com/luismalta) | NFS-e (Nota Paulistana) [l10n_br_portal](l10n_br_portal/) | 14.0.2.0.1 | | Campos Brasileiros no Portal -[l10n_br_pos](l10n_br_pos/) | 14.0.1.5.2 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![lfdivino](https://github.com/lfdivino.png?size=30px)](https://github.com/lfdivino) [![luismalta](https://github.com/luismalta.png?size=30px)](https://github.com/luismalta) [![ygcarvalh](https://github.com/ygcarvalh.png?size=30px)](https://github.com/ygcarvalh) | Ponto de venda adaptado a legislação Brasileira -[l10n_br_pos_cfe](l10n_br_pos_cfe/) | 14.0.1.4.0 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![lfdivino](https://github.com/lfdivino.png?size=30px)](https://github.com/lfdivino) [![luismalta](https://github.com/luismalta.png?size=30px)](https://github.com/luismalta) [![ygcarvalh](https://github.com/ygcarvalh.png?size=30px)](https://github.com/ygcarvalh) | CF-e +[l10n_br_pos](l10n_br_pos/) | 14.0.1.5.3 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![lfdivino](https://github.com/lfdivino.png?size=30px)](https://github.com/lfdivino) [![luismalta](https://github.com/luismalta.png?size=30px)](https://github.com/luismalta) [![ygcarvalh](https://github.com/ygcarvalh.png?size=30px)](https://github.com/ygcarvalh) | Ponto de venda adaptado a legislação Brasileira +[l10n_br_pos_cfe](l10n_br_pos_cfe/) | 14.0.1.4.1 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![lfdivino](https://github.com/lfdivino.png?size=30px)](https://github.com/lfdivino) [![luismalta](https://github.com/luismalta.png?size=30px)](https://github.com/luismalta) [![ygcarvalh](https://github.com/ygcarvalh.png?size=30px)](https://github.com/ygcarvalh) | CF-e [l10n_br_pos_nfce](l10n_br_pos_nfce/) | 14.0.1.2.1 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![lfdivino](https://github.com/lfdivino.png?size=30px)](https://github.com/lfdivino) [![luismalta](https://github.com/luismalta.png?size=30px)](https://github.com/luismalta) [![ygcarvalh](https://github.com/ygcarvalh.png?size=30px)](https://github.com/ygcarvalh) [![felipezago](https://github.com/felipezago.png?size=30px)](https://github.com/felipezago) | NFC-E no Ponto de Venda [l10n_br_product_contract](l10n_br_product_contract/) | 14.0.1.1.1 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Criação de contratos através dos Pedidos de Vendas -[l10n_br_purchase](l10n_br_purchase/) | 14.0.3.10.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Brazilian Localization Purchase +[l10n_br_purchase](l10n_br_purchase/) | 14.0.3.10.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Brazilian Localization Purchase [l10n_br_purchase_request](l10n_br_purchase_request/) | 14.0.1.0.4 | [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Purchase Request Brazilian Localization Purchase Request -[l10n_br_purchase_stock](l10n_br_purchase_stock/) | 14.0.3.0.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | Brazilian Localization Purchase Stock -[l10n_br_repair](l10n_br_repair/) | 14.0.1.3.0 | [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Brazilian Localization Repair -[l10n_br_resource](l10n_br_resource/) | 14.0.1.0.4 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![hendixcosta](https://github.com/hendixcosta.png?size=30px)](https://github.com/hendixcosta) [![lfdivino](https://github.com/lfdivino.png?size=30px)](https://github.com/lfdivino) | This module extend core resource to create important brazilian informations. Define a Brazilian calendar and some tools to compute dates used in financial and payroll modules -[l10n_br_sale](l10n_br_sale/) | 14.0.3.14.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Brazilian Localization Sale +[l10n_br_purchase_stock](l10n_br_purchase_stock/) | 14.0.3.0.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | Brazilian Localization Purchase Stock +[l10n_br_repair](l10n_br_repair/) | 14.0.1.3.1 | [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Brazilian Localization Repair +[l10n_br_resource](l10n_br_resource/) | 14.0.1.0.5 | [![mileo](https://github.com/mileo.png?size=30px)](https://github.com/mileo) [![hendixcosta](https://github.com/hendixcosta.png?size=30px)](https://github.com/hendixcosta) [![lfdivino](https://github.com/lfdivino.png?size=30px)](https://github.com/lfdivino) | This module extend core resource to create important brazilian informations. Define a Brazilian calendar and some tools to compute dates used in financial and payroll modules +[l10n_br_sale](l10n_br_sale/) | 14.0.3.14.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Brazilian Localization Sale [l10n_br_sale_blanket_order](l10n_br_sale_blanket_order/) | 14.0.1.2.0 | [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Brazilian Localization Sale Blanket Order [l10n_br_sale_commission](l10n_br_sale_commission/) | 14.0.1.0.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Customization of Sales commissions module for implementations in Brazil. [l10n_br_sale_invoice_plan](l10n_br_sale_invoice_plan/) | 14.0.1.0.3 | [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Brazilian Localization Sale Invoice Plan [l10n_br_sale_stock](l10n_br_sale_stock/) | 14.0.1.2.3 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | Brazilian Localization Sales and Warehouse [l10n_br_setup_tests](l10n_br_setup_tests/) | 14.0.1.0.1 | [![antoniospneto](https://github.com/antoniospneto.png?size=30px)](https://github.com/antoniospneto) | Modules for Odoo's Brazil-focused usability with integration tests. -[l10n_br_stock](l10n_br_stock/) | 14.0.2.1.1 | | Brazilian Localization Warehouse -[l10n_br_stock_account](l10n_br_stock_account/) | 14.0.3.9.1 | | Brazilian Localization WMS Accounting -[l10n_br_stock_account_report](l10n_br_stock_account_report/) | 14.0.1.1.3 | [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | P7 Stock Valuation Report -[l10n_br_website_sale](l10n_br_website_sale/) | 14.0.2.0.1 | | Website sale localização brasileira. +[l10n_br_stock](l10n_br_stock/) | 14.0.2.1.2 | | Brazilian Localization Warehouse +[l10n_br_stock_account](l10n_br_stock_account/) | 14.0.3.9.2 | | Brazilian Localization WMS Accounting +[l10n_br_stock_account_report](l10n_br_stock_account_report/) | 14.0.1.1.4 | [![mbcosta](https://github.com/mbcosta.png?size=30px)](https://github.com/mbcosta) | P7 Stock Valuation Report +[l10n_br_website_sale](l10n_br_website_sale/) | 14.0.2.0.2 | | Website sale localização brasileira. [l10n_br_website_sale_delivery](l10n_br_website_sale_delivery/) | 14.0.1.0.1 | [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) [![DiegoParadeda](https://github.com/DiegoParadeda.png?size=30px)](https://github.com/DiegoParadeda) | Implements Brazilian freight values for delivery. -[l10n_br_zip](l10n_br_zip/) | 14.0.2.3.0 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Brazilian Localisation ZIP Codes +[l10n_br_zip](l10n_br_zip/) | 14.0.2.3.1 | [![renatonlima](https://github.com/renatonlima.png?size=30px)](https://github.com/renatonlima) | Brazilian Localisation ZIP Codes [payment_bacen_pix](payment_bacen_pix/) | 14.0.1.1.0 | | Payment PIX with bacen -[payment_pagseguro](payment_pagseguro/) | 14.0.1.0.9 | | Payment Acquirer: PagSeguro Implementation -[spec_driven_model](spec_driven_model/) | 14.0.5.5.0 | [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Tools for specifications driven mixins (from xsd for instance) +[payment_pagseguro](payment_pagseguro/) | 14.0.1.0.10 | | Payment Acquirer: PagSeguro Implementation +[spec_driven_model](spec_driven_model/) | 14.0.5.5.1 | [![rvalyi](https://github.com/rvalyi.png?size=30px)](https://github.com/rvalyi) | Tools for specifications driven mixins (from xsd for instance) [//]: # (end addons) diff --git a/l10n_br_account/README.rst b/l10n_br_account/README.rst index 56ecd70ff11e..73ff07bcf6c8 100644 --- a/l10n_br_account/README.rst +++ b/l10n_br_account/README.rst @@ -7,7 +7,7 @@ Invoicing and accounting entries for Brazil !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:e4d30ba98d64e3c2b52a8b98d2de72e89b0be60f7cea41d4e0380c7c4906b74c + !! source digest: sha256:d1ce2adba05ba7964976b98170faeea30e9e43a5992253ce28f966307ed7da7b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_account/__manifest__.py b/l10n_br_account/__manifest__.py index 7fdf9ae9a7b8..7f8821ab92b4 100644 --- a/l10n_br_account/__manifest__.py +++ b/l10n_br_account/__manifest__.py @@ -8,7 +8,7 @@ "license": "AGPL-3", "author": "Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.11.13.1", + "version": "14.0.11.13.3", "development_status": "Beta", "maintainers": ["renatonlima", "rvalyi"], "depends": [ diff --git a/l10n_br_account/i18n/l10n_br_account.pot b/l10n_br_account/i18n/l10n_br_account.pot index d5b0cc6fdce5..aa61c93f35ad 100644 --- a/l10n_br_account/i18n/l10n_br_account.pot +++ b/l10n_br_account/i18n/l10n_br_account.pot @@ -130,6 +130,12 @@ msgstr "" msgid "COFINS ST CST Code" msgstr "" +#. module: l10n_br_account +#: code:addons/l10n_br_account/models/document.py:0 +#, python-format +msgid "Canceled due to the denial of document %(document_number)s" +msgstr "" + #. module: l10n_br_account #: code:addons/l10n_br_account/models/account_move.py:0 #, python-format diff --git a/l10n_br_account/i18n/pt_BR.po b/l10n_br_account/i18n/pt_BR.po index 200774d851b4..31127c43c449 100644 --- a/l10n_br_account/i18n/pt_BR.po +++ b/l10n_br_account/i18n/pt_BR.po @@ -7,8 +7,8 @@ msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-04-07 09:02+0000\n" -"PO-Revision-Date: 2024-07-19 04:58+0000\n" -"Last-Translator: Antônio Neto \n" +"PO-Revision-Date: 2024-09-26 14:06+0000\n" +"Last-Translator: Marcel Savegnago \n" "Language-Team: \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" @@ -134,6 +134,12 @@ msgstr "Código CST de COFINS" msgid "COFINS ST CST Code" msgstr "Código CST ST COFINS" +#. module: l10n_br_account +#: code:addons/l10n_br_account/models/document.py:0 +#, python-format +msgid "Canceled due to the denial of document %(document_number)s" +msgstr "Cancelado devido à negação do documento %(document_number)s" + #. module: l10n_br_account #: code:addons/l10n_br_account/models/account_move.py:0 #, python-format diff --git a/l10n_br_account/models/account_incoterms.py b/l10n_br_account/models/account_incoterms.py index b87610d50191..17a68599aa58 100644 --- a/l10n_br_account/models/account_incoterms.py +++ b/l10n_br_account/models/account_incoterms.py @@ -22,5 +22,5 @@ def name_get(self): # name completo if len(record.name) > 150: name = record.name[:150] + " ..." - result.append((record.id, "%s - %s" % (record.code, name))) + result.append((record.id, f"{record.code} - {name}")) return result diff --git a/l10n_br_account/models/account_move.py b/l10n_br_account/models/account_move.py index 59590075b413..b9ebe11edf38 100644 --- a/l10n_br_account/models/account_move.py +++ b/l10n_br_account/models/account_move.py @@ -121,7 +121,8 @@ def _check_fiscal_document_type(self): if rec.document_type_id and not rec.fiscal_document_id: raise UserError( _( - "You cannot set a document type when the move has no Fiscal Document!" + "You cannot set a document type when the move has no Fiscal " + "Document!" ) ) @@ -174,7 +175,7 @@ def _inject_shadowed_fields(self, vals_list): for vals in vals_list: for field in self._shadowed_fields(): if field in vals: - vals["fiscal_proxy_%s" % (field,)] = vals[field] + vals[f"fiscal_proxy_{field}"] = vals[field] def ensure_one_doc(self): self.ensure_one() @@ -242,7 +243,8 @@ def fields_view_get( if invoice_view["fields"].get("line_ids"): # it is required to inject the fiscal fields in the - # "accounting lines" view to avoid loosing fiscal values from the form. + # "accounting lines" view to avoid loosing fiscal values from the + # form. sub_form_view = invoice_view["fields"]["line_ids"]["views"]["tree"][ "arch" ] diff --git a/l10n_br_account/models/account_move_line.py b/l10n_br_account/models/account_move_line.py index 78de34d91950..df18e39be514 100644 --- a/l10n_br_account/models/account_move_line.py +++ b/l10n_br_account/models/account_move_line.py @@ -139,7 +139,7 @@ def _inject_shadowed_fields(self, vals_list): for vals in vals_list: for field in self._shadowed_fields(): if field in vals: - vals["fiscal_proxy_%s" % (field,)] = vals[field] + vals[f"fiscal_proxy_{field}"] = vals[field] @api.model_create_multi def create(self, vals_list): @@ -247,7 +247,8 @@ def create(self, vals_list): # Initialize the inverted index list with the same length as the original list inverted_index = [0] * len(original_indexes) - # Iterate over the original_indexes list and fill the inverted_index list accordingly + # Iterate over the original_indexes list and fill the inverted_index list + # accordingly for i, val in enumerate(original_indexes): inverted_index[val] = i @@ -257,8 +258,8 @@ def create(self, vals_list): sorted_result |= result[idx] for line in sorted_result: - # Forces the recalculation of price_total and price_subtotal fields which are - # recalculated by super + # Forces the recalculation of price_total and price_subtotal fields which + # are recalculated by super if line.move_id.company_id.country_id.code == "BR": line.update(line._get_price_total_and_subtotal()) diff --git a/l10n_br_account/models/account_tax.py b/l10n_br_account/models/account_tax.py index 599200edf851..90aa2a1e3149 100644 --- a/l10n_br_account/models/account_tax.py +++ b/l10n_br_account/models/account_tax.py @@ -137,7 +137,9 @@ def compute_all( account_taxes_by_domain.update({tax.id: tax_domain}) for account_tax in taxes_results["taxes"]: - tax = self.filtered(lambda t: t.id == account_tax.get("id")) + tax = self.filtered( + lambda t, account_tax=account_tax: t.id == account_tax.get("id") + ) fiscal_tax = fiscal_taxes_results["taxes"].get( account_taxes_by_domain.get(tax.id) ) diff --git a/l10n_br_account/models/document.py b/l10n_br_account/models/document.py index 82367dc5a72a..d68b3f5c72f0 100644 --- a/l10n_br_account/models/document.py +++ b/l10n_br_account/models/document.py @@ -9,7 +9,10 @@ from odoo.exceptions import UserError from odoo.addons.l10n_br_fiscal.constants.fiscal import ( + DOCUMENT_ISSUER_COMPANY, DOCUMENT_ISSUER_PARTNER, + MODELO_FISCAL_CTE, + MODELO_FISCAL_NFE, SITUACAO_EDOC_EM_DIGITACAO, ) @@ -123,10 +126,10 @@ def unlink(self): @api.model_create_multi def create(self, vals_list): """ - It's not allowed to create a fiscal document line without a document_type_id anyway. - But instead of letting Odoo crash in this case we simply avoid creating the - record. This makes it possible to create an account.move without - a fiscal_document_id despite the _inherits system: + It's not allowed to create a fiscal document line without a document_type_id + anyway. But instead of letting Odoo crash in this case we simply avoid creating + the record. This makes it possible to create an account.move without a + fiscal_document_id despite the _inherits system: Odoo will write NULL as the value in this case. """ if self._context.get("create_from_move"): @@ -158,17 +161,25 @@ def cancel_move_ids(self): def _document_cancel(self, justificative): result = super()._document_cancel(justificative) - msg = "Cancelamento: {}".format(justificative) + msg = f"Cancelamento: {justificative}" self.cancel_move_ids() self.message_post(body=msg) return result def _document_correction(self, justificative): result = super()._document_correction(justificative) - msg = "Carta de correção: {}".format(justificative) + msg = f"Carta de correção: {justificative}" self.message_post(body=msg) return result + def _document_deny(self): + msg = _( + "Canceled due to the denial of document %(document_number)s", + document_number=self.document_number, + ) + self.cancel_move_ids() + self.message_post(body=msg) + def action_document_confirm(self): result = super().action_document_confirm() if not self._context.get("skip_post"): @@ -186,3 +197,13 @@ def _edoc_subscribe(self): if self.move_ids: self.move_ids._edoc_subscribe() return + + def exec_after_SITUACAO_EDOC_DENEGADA(self, old_state, new_state): + self.ensure_one() + models_cancel_on_deny = [MODELO_FISCAL_NFE, MODELO_FISCAL_CTE] + if ( + self.document_type_id.code in models_cancel_on_deny + and self.issuer == DOCUMENT_ISSUER_COMPANY + ): + self._document_deny() + return super().exec_after_SITUACAO_EDOC_DENEGADA(old_state, new_state) diff --git a/l10n_br_account/static/description/index.html b/l10n_br_account/static/description/index.html index 319956233772..45d95c30fbc7 100644 --- a/l10n_br_account/static/description/index.html +++ b/l10n_br_account/static/description/index.html @@ -367,7 +367,7 @@

Invoicing and accounting entries for Brazil

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:e4d30ba98d64e3c2b52a8b98d2de72e89b0be60f7cea41d4e0380c7c4906b74c +!! source digest: sha256:d1ce2adba05ba7964976b98170faeea30e9e43a5992253ce28f966307ed7da7b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module was written to extend the functionality of … to support … diff --git a/l10n_br_account/tests/common.py b/l10n_br_account/tests/common.py index b0677f9c0d7d..9297d04d717d 100644 --- a/l10n_br_account/tests/common.py +++ b/l10n_br_account/tests/common.py @@ -289,7 +289,8 @@ def init_invoice( document_number=None, ): """ - We could not override the super one because we need to inject extra BR fiscal fields. + We could not override the super one because we need to inject extra BR fiscal + fields. """ products = [] if products is None else products amounts = [] if amounts is None else amounts @@ -364,11 +365,8 @@ def line_log(cls, lines, index): Utility method to help debugging """ lines = cls.sort_lines(lines.sorted()) - log = "LINE %s %s %s %s %s" % ( - index, - lines[index].name, - lines[index].debit, - lines[index].credit, - lines[index].account_id.name, + log = ( + f"LINE {index} {lines[index].name} {lines[index].debit}" + f" {lines[index].credit} {lines[index].account_id.name}" ) return log diff --git a/l10n_br_account/tests/test_account_move_lc.py b/l10n_br_account/tests/test_account_move_lc.py index 17bc3c47d66e..ef008c7efb60 100644 --- a/l10n_br_account/tests/test_account_move_lc.py +++ b/l10n_br_account/tests/test_account_move_lc.py @@ -124,7 +124,7 @@ def setup_company_data(cls, company_name, chart_template=None, **kwargs): icms_regulation_id=cls.env.ref("l10n_br_fiscal.tax_icms_regulation").id, cnae_main_id=cls.env.ref("l10n_br_fiscal.cnae_3101200").id, document_type_id=cls.env.ref("l10n_br_fiscal.document_55").id, - **kwargs + **kwargs, ) res["company"].partner_id.state_id = cls.env.ref("base.state_br_sp").id res["company"].partner_id.cnpj_cpf = cnpj @@ -1785,3 +1785,9 @@ def test_change_states(self): document_id.action_document_back2draft() self.assertEqual(self.move_out_venda.state, "draft") self.assertEqual(document_id.state, "em_digitacao") + + def test_document_deny(self): + document_id = self.move_out_venda.fiscal_document_id + self.assertEqual(self.move_out_venda.state, "draft") + document_id.exec_after_SITUACAO_EDOC_DENEGADA("em_digitacao", "denegada") + self.assertEqual(self.move_out_venda.state, "cancel") diff --git a/l10n_br_account/tests/test_account_move_sn.py b/l10n_br_account/tests/test_account_move_sn.py index 923be3e2b421..9a886852ce82 100644 --- a/l10n_br_account/tests/test_account_move_sn.py +++ b/l10n_br_account/tests/test_account_move_sn.py @@ -71,7 +71,7 @@ def setup_company_data(cls, company_name, chart_template=None, **kwargs): cnae_main_id=cls.env.ref("l10n_br_fiscal.cnae_3101200").id, document_type_id=cls.env.ref("l10n_br_fiscal.document_55").id, annual_revenue=815000.0, - **kwargs + **kwargs, ) chart_template.load_fiscal_taxes() return res diff --git a/l10n_br_account/tests/test_document_date.py b/l10n_br_account/tests/test_document_date.py index dd30110f19af..429ec220f912 100644 --- a/l10n_br_account/tests/test_document_date.py +++ b/l10n_br_account/tests/test_document_date.py @@ -92,7 +92,8 @@ def test_document_date(self): self.move_id.issuer = DOCUMENT_ISSUER_PARTNER user_tz = timezone(self.env.user.tz or "UTC") original_date = datetime.combine(datetime.now().date(), time.min) - # Convert the original_date to the user's timezone and remove the time for comparison + # Convert the original_date to the user's timezone and remove the time for + # comparison original_date_in_user_tz = ( user_tz.localize(original_date).astimezone(UTC).replace(tzinfo=None) ) @@ -123,7 +124,8 @@ def test_date_in_out(self): self.move_id.issuer = DOCUMENT_ISSUER_PARTNER user_tz = timezone(self.env.user.tz or "UTC") original_date = datetime.combine(datetime.now().date(), time.min) - # Convert the original_date to the user's timezone and remove the time for comparison + # Convert the original_date to the user's timezone and remove the time for + # comparison original_date_in_user_tz = ( user_tz.localize(original_date).astimezone(UTC).replace(tzinfo=None) ) diff --git a/l10n_br_account/tests/test_multi_localizations_invoice.py b/l10n_br_account/tests/test_multi_localizations_invoice.py index 7e04e456f62c..84c3c76fd78c 100644 --- a/l10n_br_account/tests/test_multi_localizations_invoice.py +++ b/l10n_br_account/tests/test_multi_localizations_invoice.py @@ -8,7 +8,7 @@ _logger = logging.getLogger(__name__) -# flake8: noqa: B950 - line too long +# ruff: noqa: E501 - line too long def addTest(self, test): """ This monkey patch is required to avoid triggering all the tests from @@ -116,13 +116,13 @@ def test_force_out_invoice_line_onchange_cash_rounding_1(self): def test_force_out_invoice_line_onchange_currency_1(self): return super().test_out_invoice_line_onchange_currency_1() - # def test_force_out_invoice_line_tax_fixed_price_include_free_product(self): - # FIXME - # return super().test_out_invoice_line_tax_fixed_price_include_free_product() + # def test_force_out_invoice_line_tax_fixed_price_include_free_product(self): + # FIXME + # return super().test_out_invoice_line_tax_fixed_price_include_free_product() - # def test_force_out_invoice_line_taxes_fixed_price_include_free_product(self): - # FIXME - # return super().test_out_invoice_line_taxes_fixed_price_include_free_product() + # def test_force_out_invoice_line_taxes_fixed_price_include_free_product(self): + # FIXME + # return super().test_out_invoice_line_taxes_fixed_price_include_free_product() def test_force_out_invoice_create_refund(self): return super().test_out_invoice_create_refund() diff --git a/l10n_br_account_due_list/README.rst b/l10n_br_account_due_list/README.rst index 0e433774c8f5..883b5df08ac9 100644 --- a/l10n_br_account_due_list/README.rst +++ b/l10n_br_account_due_list/README.rst @@ -7,7 +7,7 @@ Brazilian Account Due List !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:9ad60bf10dc5c079ddf90f3161dbb4462658df7f75aa93fd373544978e0eac22 + !! source digest: sha256:c592aef2e31ccd570a85b3c91e6e70b659f00c76e2974880a49d86c1caf72e0e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/l10n_br_account_due_list/__manifest__.py b/l10n_br_account_due_list/__manifest__.py index 27d548af13a4..7ea6caa9c325 100644 --- a/l10n_br_account_due_list/__manifest__.py +++ b/l10n_br_account_due_list/__manifest__.py @@ -8,7 +8,7 @@ "license": "AGPL-3", "author": "Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.2.0.0", + "version": "14.0.2.0.1", "depends": ["account_due_list"], "data": [ "views/account_invoice_view.xml", diff --git a/l10n_br_account_due_list/models/account_move.py b/l10n_br_account_due_list/models/account_move.py index 9be32f6ed784..789665a4b01e 100644 --- a/l10n_br_account_due_list/models/account_move.py +++ b/l10n_br_account_due_list/models/account_move.py @@ -26,7 +26,7 @@ class AccountInvoice(models.Model): def _compute_financial(self): for move in self: lines = move.line_ids.filtered( - lambda l: l.account_id.internal_type in ("receivable", "payable") + lambda line: line.account_id.internal_type in ("receivable", "payable") ) move.financial_move_line_ids = lines.sorted() diff --git a/l10n_br_account_due_list/static/description/index.html b/l10n_br_account_due_list/static/description/index.html index fd2aaca0fd7c..6c6282d6e43f 100644 --- a/l10n_br_account_due_list/static/description/index.html +++ b/l10n_br_account_due_list/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@

Brazilian Account Due List

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:9ad60bf10dc5c079ddf90f3161dbb4462658df7f75aa93fd373544978e0eac22 +!! source digest: sha256:c592aef2e31ccd570a85b3c91e6e70b659f00c76e2974880a49d86c1caf72e0e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Production/Stable License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module creates the financial_move_line_ids field to list the payable or receivable account move line on invoices.

@@ -439,7 +439,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_account_nfe/README.rst b/l10n_br_account_nfe/README.rst index c3fe43bfeb2e..e744103bd8e3 100644 --- a/l10n_br_account_nfe/README.rst +++ b/l10n_br_account_nfe/README.rst @@ -7,7 +7,7 @@ Account NFe/NFC-e Integration !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:92100a2e488dcad7fac3ad2cf40e8f639e438a83670c51bd40895bef3eb15866 + !! source digest: sha256:bafb08e7e71c32bd87160f4493760fc923ad82b3c00114c942907bfa0f23185d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_account_nfe/__manifest__.py b/l10n_br_account_nfe/__manifest__.py index 31d24e8be078..03b03aedb569 100644 --- a/l10n_br_account_nfe/__manifest__.py +++ b/l10n_br_account_nfe/__manifest__.py @@ -13,7 +13,7 @@ "author": "Engenere," "Akretion," "Odoo Community Association (OCA)", "maintainers": ["antoniospneto", "felipemotter", "mbcosta"], "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.5.1.0", + "version": "14.0.5.1.1", "development_status": "Beta", "depends": [ "l10n_br_nfe", diff --git a/l10n_br_account_nfe/models/document.py b/l10n_br_account_nfe/models/document.py index 89de0a6aab79..2e5a70ca15b7 100644 --- a/l10n_br_account_nfe/models/document.py +++ b/l10n_br_account_nfe/models/document.py @@ -152,8 +152,8 @@ def _check_fiscal_payment_mode(self): if not rec.move_ids.payment_mode_id.fiscal_payment_mode: raise UserError( _( - "Payment Mode %(mode)s should have " - "a Fiscal Payment Mode filled to be used in the Fiscal Document!", + "Payment Mode %(mode)s should have a Fiscal Payment Mode" + " filled to be used in the Fiscal Document!", mode=rec.move_ids.payment_mode_id.name, ) ) diff --git a/l10n_br_account_nfe/static/description/index.html b/l10n_br_account_nfe/static/description/index.html index dc0e97852504..034505157d84 100644 --- a/l10n_br_account_nfe/static/description/index.html +++ b/l10n_br_account_nfe/static/description/index.html @@ -367,7 +367,7 @@

Account NFe/NFC-e Integration

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:92100a2e488dcad7fac3ad2cf40e8f639e438a83670c51bd40895bef3eb15866 +!! source digest: sha256:bafb08e7e71c32bd87160f4493760fc923ad82b3c00114c942907bfa0f23185d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Português diff --git a/l10n_br_account_nfe/tests/test_nfe_generate_tags_cobr_dup_pag.py b/l10n_br_account_nfe/tests/test_nfe_generate_tags_cobr_dup_pag.py index 219658d01042..0a144e5919c2 100644 --- a/l10n_br_account_nfe/tests/test_nfe_generate_tags_cobr_dup_pag.py +++ b/l10n_br_account_nfe/tests/test_nfe_generate_tags_cobr_dup_pag.py @@ -207,7 +207,8 @@ def test_invoice_without_payment_mode(self): invoice.action_post() self.assertFalse( invoice.nfe40_dup, - "Error field nfe40_dup should not filled when Fiscal Operation are Bonificação.", + "Error field nfe40_dup should not filled when Fiscal Operation are " + "Bonificação.", ) for detPag in invoice.nfe40_detPag: self.assertEqual( diff --git a/l10n_br_account_payment_brcobranca/README.rst b/l10n_br_account_payment_brcobranca/README.rst index 45add6df844b..75162ac29ecb 100644 --- a/l10n_br_account_payment_brcobranca/README.rst +++ b/l10n_br_account_payment_brcobranca/README.rst @@ -7,7 +7,7 @@ Boletos e CNAB de cobrança !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:38fb530586cd298d0b22083dc1256d3b22bd37e966331ef9e182035b87c18bb0 + !! source digest: sha256:9d121166f58940eca1f7635e97ff5133e66a484eed772777e8122a44cb2d9d20 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_account_payment_brcobranca/__manifest__.py b/l10n_br_account_payment_brcobranca/__manifest__.py index 4384ad5bed8c..53d5a2a1f9a9 100644 --- a/l10n_br_account_payment_brcobranca/__manifest__.py +++ b/l10n_br_account_payment_brcobranca/__manifest__.py @@ -4,8 +4,8 @@ { "name": "Boletos e CNAB de cobrança", - "summary": "receivable Boletos and CNAB using the brcobranca lib", - "version": "14.0.6.0.1", + "summary": "receivable Boletos and CNAB using the BRCobranca lib", + "version": "14.0.7.0.2", "license": "AGPL-3", "author": "Akretion, Odoo Community Association (OCA)", "maintainers": ["rvalyi", "mbcosta"], diff --git a/l10n_br_account_payment_brcobranca/demo/account_payment_mode.xml b/l10n_br_account_payment_brcobranca/demo/account_payment_mode.xml index a2d25b15485c..d23922952ccc 100644 --- a/l10n_br_account_payment_brcobranca/demo/account_payment_mode.xml +++ b/l10n_br_account_payment_brcobranca/demo/account_payment_mode.xml @@ -3,112 +3,112 @@ brcobranca brcobranca brcobranca brcobranca brcobranca brcobranca brcobranca brcobranca brcobranca brcobranca brcobranca brcobranca brcobranca brcobranca diff --git a/l10n_br_account_payment_brcobranca/i18n/l10n_br_account_payment_brcobranca.pot b/l10n_br_account_payment_brcobranca/i18n/l10n_br_account_payment_brcobranca.pot index 934211acb0b7..3b2c90661208 100644 --- a/l10n_br_account_payment_brcobranca/i18n/l10n_br_account_payment_brcobranca.pot +++ b/l10n_br_account_payment_brcobranca/i18n/l10n_br_account_payment_brcobranca.pot @@ -41,6 +41,11 @@ msgstr "" msgid "CNAB 400" msgstr "" +#. module: l10n_br_account_payment_brcobranca +#: model:ir.model,name:l10n_br_account_payment_brcobranca.model_l10n_br_cnab_config +msgid "CNAB Config" +msgstr "" + #. module: l10n_br_account_payment_brcobranca #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move_line__cnab_returned_ref msgid "CNAB Returned Reference" @@ -58,9 +63,9 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move_line__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_line__display_name -#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_mode__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_order__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_credit_statement_import__display_name +#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_l10n_br_cnab_config__display_name msgid "Display Name" msgstr "" @@ -74,9 +79,9 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move__id #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move_line__id #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_line__id -#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_mode__id #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_order__id #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_credit_statement_import__id +#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_l10n_br_cnab_config__id msgid "ID" msgstr "" @@ -118,9 +123,9 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move_line____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_line____last_update -#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_mode____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_order____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_credit_statement_import____last_update +#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_l10n_br_cnab_config____last_update msgid "Last Modified on" msgstr "" @@ -142,11 +147,6 @@ msgstr "" msgid "Payment Lines" msgstr "" -#. module: l10n_br_account_payment_brcobranca -#: model:ir.model,name:l10n_br_account_payment_brcobranca.model_account_payment_mode -msgid "Payment Modes" -msgstr "" - #. module: l10n_br_account_payment_brcobranca #: model:ir.model,name:l10n_br_account_payment_brcobranca.model_account_payment_order msgid "Payment Order" @@ -155,7 +155,7 @@ msgstr "" #. module: l10n_br_account_payment_brcobranca #: code:addons/l10n_br_account_payment_brcobranca/models/account_journal.py:0 #, python-format -msgid "Statement import error The statement cannot be created: %s" +msgid "Statement import error The statement cannot be created: %(st)s" msgstr "" #. module: l10n_br_account_payment_brcobranca diff --git a/l10n_br_account_payment_brcobranca/i18n/pt_BR.po b/l10n_br_account_payment_brcobranca/i18n/pt_BR.po index 83c1c115093d..d0cb68ecbf8b 100644 --- a/l10n_br_account_payment_brcobranca/i18n/pt_BR.po +++ b/l10n_br_account_payment_brcobranca/i18n/pt_BR.po @@ -58,6 +58,11 @@ msgstr "CNAB 240" msgid "CNAB 400" msgstr "CNAB 400" +#. module: l10n_br_account_payment_brcobranca +#: model:ir.model,name:l10n_br_account_payment_brcobranca.model_l10n_br_cnab_config +msgid "CNAB Config" +msgstr "" + #. module: l10n_br_account_payment_brcobranca #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move_line__cnab_returned_ref msgid "CNAB Returned Reference" @@ -77,9 +82,9 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move_line__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_line__display_name -#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_mode__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_order__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_credit_statement_import__display_name +#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_l10n_br_cnab_config__display_name msgid "Display Name" msgstr "Nome Exibido" @@ -93,9 +98,9 @@ msgstr "Habilitar reconciliação do retorno de pagamento automático." #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move__id #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move_line__id #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_line__id -#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_mode__id #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_order__id #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_credit_statement_import__id +#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_l10n_br_cnab_config__id msgid "ID" msgstr "ID" @@ -140,9 +145,9 @@ msgstr "Item de Diário" #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_move_line____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_line____last_update -#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_mode____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_account_payment_order____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_credit_statement_import____last_update +#: model:ir.model.fields,field_description:l10n_br_account_payment_brcobranca.field_l10n_br_cnab_config____last_update msgid "Last Modified on" msgstr "Última Modificação em" @@ -166,11 +171,6 @@ msgstr "Nada a importar: O arquivo está vazio" msgid "Payment Lines" msgstr "Linhas de Pagamento" -#. module: l10n_br_account_payment_brcobranca -#: model:ir.model,name:l10n_br_account_payment_brcobranca.model_account_payment_mode -msgid "Payment Modes" -msgstr "Modos de Pagamento" - #. module: l10n_br_account_payment_brcobranca #: model:ir.model,name:l10n_br_account_payment_brcobranca.model_account_payment_order msgid "Payment Order" @@ -179,8 +179,8 @@ msgstr "Ordem de Pagamento" #. module: l10n_br_account_payment_brcobranca #: code:addons/l10n_br_account_payment_brcobranca/models/account_journal.py:0 #, python-format -msgid "Statement import error The statement cannot be created: %s" -msgstr "Erro de importação de extrato. O extrato não pode ser criado: %s" +msgid "Statement import error The statement cannot be created: %(st)s" +msgstr "" #. module: l10n_br_account_payment_brcobranca #: code:addons/l10n_br_account_payment_brcobranca/constants/br_cobranca.py:0 @@ -201,6 +201,13 @@ msgstr "" msgid "Type of import" msgstr "Tipo de importação" +#~ msgid "Payment Modes" +#~ msgstr "Modos de Pagamento" + +#, python-format +#~ msgid "Statement import error The statement cannot be created: %s" +#~ msgstr "Erro de importação de extrato. O extrato não pode ser criado: %s" + #, python-format #~ msgid "The Bank {} CNAB {} is not implemented in BRCobranca." #~ msgstr "O banco {} CNAB {} não está implantado no BRCobranca." diff --git a/l10n_br_account_payment_brcobranca/migrations/14.0.7.0.0/post-migration.py b/l10n_br_account_payment_brcobranca/migrations/14.0.7.0.0/post-migration.py new file mode 100644 index 000000000000..9df1c9aa02c2 --- /dev/null +++ b/l10n_br_account_payment_brcobranca/migrations/14.0.7.0.0/post-migration.py @@ -0,0 +1,32 @@ +# Copyright (C) 2024-Today - Akretion (). +# @author Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +def update_cnab_config(env): + """Atualiza a Configuração do CNAB""" + env.cr.execute( + """ + SELECT id FROM account_payment_mode WHERE payment_method_id IN + (SELECT id FROM account_payment_method WHERE code IN ('240', '400', '500') + AND payment_type = 'inbound'); + """ + ) + for row in env.cr.fetchall(): + payment_mode = env["account.payment.mode"].browse(row[0]) + cnab_config = env["l10n_br_cnab.config"].search( + [ + ("bank_id", "=", payment_mode.fixed_journal_id.bank_id.id), + ("payment_method_id", "=", payment_mode.payment_method_id.id), + ] + ) + cnab_config.cnab_processor = payment_mode.cnab_processor + + +@openupgrade.migrate() +def migrate(env, version): + if not version: + return + update_cnab_config(env) diff --git a/l10n_br_account_payment_brcobranca/models/__init__.py b/l10n_br_account_payment_brcobranca/models/__init__.py index 2bb4d1b7bf70..572a2364d484 100644 --- a/l10n_br_account_payment_brcobranca/models/__init__.py +++ b/l10n_br_account_payment_brcobranca/models/__init__.py @@ -3,4 +3,4 @@ from . import account_payment_order from . import account_payment_line from . import account_journal -from . import account_payment_mode +from . import l10n_br_cnab_config diff --git a/l10n_br_account_payment_brcobranca/models/account_journal.py b/l10n_br_account_payment_brcobranca/models/account_journal.py index d2faebaadb52..0de07f9ff879 100644 --- a/l10n_br_account_payment_brcobranca/models/account_journal.py +++ b/l10n_br_account_payment_brcobranca/models/account_journal.py @@ -229,14 +229,17 @@ def _get_moves(self, parser, result_row_list): raise except Exception as e: error_type, error_value, trbk = sys.exc_info() - st = "Error: %s\nDescription: %s\nTraceback:" % ( - error_type.__name__, - error_value, + st = ( + f"Error: {error_type.__name__}\n" + f"Description: {error_value}\nTraceback:" ) st += "".join(traceback.format_tb(trbk, 30)) raise ValidationError( - _("Statement import error " "The statement cannot be created: %s") - % st + _( + "Statement import error " + "The statement cannot be created: %(st)s", + st=st, + ) ) from e return moves diff --git a/l10n_br_account_payment_brcobranca/models/account_move.py b/l10n_br_account_payment_brcobranca/models/account_move.py index 174035ff2728..4af9558fd6ad 100644 --- a/l10n_br_account_payment_brcobranca/models/account_move.py +++ b/l10n_br_account_payment_brcobranca/models/account_move.py @@ -21,7 +21,7 @@ class AccountMove(models.Model): _inherit = "account.move" def generate_boleto_pdf(self): - if self.payment_mode_id.cnab_processor != "brcobranca": + if self.payment_mode_id.cnab_config_id.cnab_processor != "brcobranca": return super().generate_boleto_pdf() file_pdf = self.file_boleto_pdf_id diff --git a/l10n_br_account_payment_brcobranca/models/account_move_line.py b/l10n_br_account_payment_brcobranca/models/account_move_line.py index 2b44b8a45d75..d06da2c3a4e6 100644 --- a/l10n_br_account_payment_brcobranca/models/account_move_line.py +++ b/l10n_br_account_payment_brcobranca/models/account_move_line.py @@ -43,6 +43,7 @@ def send_payment(self): bank_name_brcobranca = get_brcobranca_bank( bank_account_id, move_line.payment_mode_id.payment_method_code ) + cnab_config = move_line.payment_mode_id.cnab_config_id boleto_cnab_api_data = { "bank": bank_name_brcobranca[0], @@ -64,8 +65,8 @@ def send_payment(self): "sacado_documento": move_line.partner_id.cnpj_cpf, "agencia": bank_account_id.bra_number, "conta_corrente": bank_account_id.acc_number, - "convenio": move_line.payment_mode_id.cnab_company_bank_code, - "carteira": str(move_line.payment_mode_id.boleto_wallet), + "convenio": cnab_config.cnab_company_bank_code, + "carteira": str(cnab_config.boleto_wallet), "nosso_numero": int( "".join(i for i in move_line.own_number if i.isdigit()) ), @@ -74,10 +75,10 @@ def send_payment(self): "data_documento": move_line.move_id.invoice_date.strftime("%Y/%m/%d"), "especie": move_line.currency_id.symbol, "especie_documento": get_boleto_especie_short_name( - move_line.payment_mode_id.boleto_species + cnab_config.boleto_species ), "moeda": DICT_BRCOBRANCA_CURRENCY["R$"], - "aceite": move_line.payment_mode_id.boleto_accept, + "aceite": cnab_config.boleto_accept, "sacado_endereco": (move_line.partner_id.street_name or "") + " " + (move_line.partner_id.street_number or "") @@ -92,24 +93,21 @@ def send_payment(self): "data_processamento": move_line.move_id.invoice_date.strftime( "%Y/%m/%d" ), - "instrucao1": move_line.payment_mode_id.instructions or "", + "instrucao1": cnab_config.instructions or "", } # Instrução de Juros - if move_line.payment_mode_id.boleto_interest_perc > 0.0: + if cnab_config.boleto_interest_perc > 0.0: valor_juros = move_line.currency_id.round( - move_line.debit - * ((move_line.payment_mode_id.boleto_interest_perc / 100) / 30), + move_line.debit * ((cnab_config.boleto_interest_perc / 100) / 30), ) + percentual_formatado = ( + f"{cnab_config.boleto_interest_perc:.2f}".replace(".", ",") + ) + juros_formatado = f"{valor_juros:.2f}".replace(".", ",") instrucao_juros = ( - "APÓS VENCIMENTO COBRAR PERCENTUAL" - + " DE %s %% AO MÊS ( R$ %s AO DIA )" - % ( - ( - "%.2f" % move_line.payment_mode_id.boleto_interest_perc - ).replace(".", ","), - ("%.2f" % valor_juros).replace(".", ","), - ) + f"APÓS VENCIMENTO COBRAR PERCENTUAL DE {percentual_formatado}%" + f" AO MÊS (R${juros_formatado} AO DIA)" ) boleto_cnab_api_data.update( { @@ -118,19 +116,17 @@ def send_payment(self): ) # Instrução Multa - if move_line.payment_mode_id.boleto_fee_perc > 0.0: + if cnab_config.boleto_fee_perc > 0.0: valor_multa = move_line.currency_id.round( - move_line.debit * (move_line.payment_mode_id.boleto_fee_perc / 100), + move_line.debit * (cnab_config.boleto_fee_perc / 100), + ) + percentual_formatado = f"{cnab_config.boleto_fee_perc:.2f}".replace( + ".", "," ) + multa_formatado = f"{valor_multa:.2f}".replace(".", ",") instrucao_multa = ( - "APÓS VENCIMENTO COBRAR MULTA" - + " DE %s %% ( R$ %s )" - % ( - ("%.2f" % move_line.payment_mode_id.boleto_fee_perc).replace( - ".", "," - ), - ("%.2f" % valor_multa).replace(".", ","), - ) + f"APÓS VENCIMENTO COBRAR MULTA DE {percentual_formatado}%" + f" (R${multa_formatado})" ) boleto_cnab_api_data.update( { @@ -143,14 +139,15 @@ def send_payment(self): valor_desconto = move_line.currency_id.round( move_line.debit * (move_line.boleto_discount_perc / 100), ) + percentual_formatado = f"{move_line.boleto_discount_perc:.2f}".replace( + ".", "," + ) + desconto_formatado = f"{valor_desconto:.2f}".replace(".", ",") + vencimento_formatado = move_line.date_maturity.strftime("%d/%m/%Y") instrucao_desconto_vencimento = ( - "CONCEDER DESCONTO DE" + " %s %% " - "ATÉ O VENCIMENTO EM %s ( R$ %s )" - % ( - ("%.2f" % move_line.boleto_discount_perc).replace(".", ","), - move_line.date_maturity.strftime("%d/%m/%Y"), - ("%.2f" % valor_desconto).replace(".", ","), - ) + f"CONCEDER DESCONTO DE {percentual_formatado}% " + f"ATÉ O VENCIMENTO EM {vencimento_formatado} " + f"(R${desconto_formatado})" ) boleto_cnab_api_data.update( { @@ -174,8 +171,8 @@ def send_payment(self): if bank_account_id.bank_id.code_bc in ("748", "756"): boleto_cnab_api_data.update( { - "byte_idt": move_line.payment_mode_id.boleto_byte_idt, - "posto": move_line.payment_mode_id.boleto_post, + "byte_idt": cnab_config.boleto_byte_idt, + "posto": cnab_config.boleto_post, } ) # Campo usado no Unicred @@ -194,7 +191,7 @@ def send_payment(self): # no boleto é usado o convenio boleto_cnab_api_data.update( { - "convenio": move_line.payment_mode_id.convention_code, + "convenio": cnab_config.convention_code, } ) diff --git a/l10n_br_account_payment_brcobranca/models/account_payment_line.py b/l10n_br_account_payment_brcobranca/models/account_payment_line.py index 85caee0880b2..3095d5fb7b94 100644 --- a/l10n_br_account_payment_brcobranca/models/account_payment_line.py +++ b/l10n_br_account_payment_brcobranca/models/account_payment_line.py @@ -14,7 +14,7 @@ class AccountPaymentLine(models.Model): _inherit = "account.payment.line" - def _prepare_bank_line_unicred(self, payment_mode_id, linhas_pagamentos): + def _prepare_bank_line_unicred(self, cnab_config, linhas_pagamentos): # TODO - Valores padrões ? # Estou preenchendo valores que se forem vazios geram erro # os campos parecem estar usando uma Seleção que é definida @@ -22,10 +22,8 @@ def _prepare_bank_line_unicred(self, payment_mode_id, linhas_pagamentos): # Isso deveria ser feito para o CNAB de outros Bancos ? # Na criação dos campos houve a opção de deixa-los com o tipo # CHAR ao invês de Selection por essa falta de padrão. - linhas_pagamentos["codigo_protesto"] = ( - payment_mode_id.boleto_protest_code or "3" - ) - linhas_pagamentos["dias_protesto"] = payment_mode_id.boleto_days_protest or "0" + linhas_pagamentos["codigo_protesto"] = cnab_config.boleto_protest_code or "3" + linhas_pagamentos["dias_protesto"] = cnab_config.boleto_days_protest or "0" # Código adotado pela FEBRABAN para identificação # do tipo de pagamento de multa. @@ -39,13 +37,6 @@ def _prepare_bank_line_unicred(self, payment_mode_id, linhas_pagamentos): # Isento de Mora linhas_pagamentos["tipo_mora"] = "5" - # TODO - # Código adotado pela FEBRABAN para identificação do desconto. - # Domínio: - # 0 = Isento - # 1 = Valor Fixo - linhas_pagamentos["cod_desconto"] = "0" - # Tamanho do campo não pode se maior do que 10 doc_number = str(self.document_number) if len(doc_number) > 10: @@ -54,25 +45,18 @@ def _prepare_bank_line_unicred(self, payment_mode_id, linhas_pagamentos): linhas_pagamentos["numero"] = doc_number - def _prepare_cod_primeira_instrucao_protest( - self, payment_mode_id, linhas_pagamentos - ): - if ( - self.mov_instruction_code_id.code - == payment_mode_id.cnab_sending_code_id.code - ): + def _prepare_cod_primeira_instrucao_protest(self, cnab_config, linhas_pagamentos): + if self.instruction_move_code_id.code == cnab_config.sending_code_id.code: linhas_pagamentos["cod_primeira_instrucao"] = ( - payment_mode_id.boleto_protest_code or "00" + cnab_config.boleto_protest_code or "00" ) - def _prepare_bank_line_itau(self, payment_mode_id, linhas_pagamentos): - if payment_mode_id.payment_method_code == "400": - self._prepare_cod_primeira_instrucao_protest( - payment_mode_id, linhas_pagamentos - ) + def _prepare_bank_line_itau(self, cnab_config, linhas_pagamentos): + if cnab_config.payment_method_code == "400": + self._prepare_cod_primeira_instrucao_protest(cnab_config, linhas_pagamentos) - def _prepare_bank_line_banco_brasil(self, payment_mode_id, linhas_pagamentos): - self._prepare_cod_primeira_instrucao_protest(payment_mode_id, linhas_pagamentos) + def _prepare_bank_line_banco_brasil(self, cnab_config, linhas_pagamentos): + self._prepare_cod_primeira_instrucao_protest(cnab_config, linhas_pagamentos) # Caso Santander 400 precisa enviar o Nosso Numero com DV isso não acontece no # 240, por enquanto é o único caso mapeado. @@ -107,8 +91,8 @@ def modulo11(self, num, base=9, r=0): resto = soma % 11 return resto - def _prepare_bank_line_santander(self, payment_mode_id, linhas_pagamentos): - if payment_mode_id.payment_method_code == "400": + def _prepare_bank_line_santander(self, cnab_config, linhas_pagamentos): + if cnab_config.payment_method_id.code == "400": nosso_numero = linhas_pagamentos["nosso_numero"] # O campo deve ter tamanho 7 caso a Sequencia não esteja configurada # corretamente é tratado aqui, talvez deva ser feito na validação @@ -120,7 +104,7 @@ def _prepare_bank_line_santander(self, payment_mode_id, linhas_pagamentos): linhas_pagamentos["nosso_numero"] = str(nosso_numero) + str(dv) def prepare_bank_payment_line(self, bank_name_brcobranca): - payment_mode_id = self.order_id.payment_mode_id + cnab_config = self.order_id.payment_mode_id.cnab_config_id linhas_pagamentos = self._prepare_boleto_line_vals() # Casos onde o Banco além dos principais campos possui campos @@ -131,16 +115,16 @@ def prepare_bank_payment_line(self, bank_name_brcobranca): bank_method = getattr( self, f"_prepare_bank_line_{bank_name_brcobranca.name}" ) - bank_method(payment_mode_id, linhas_pagamentos) + bank_method(cnab_config, linhas_pagamentos) # Cada Banco pode possuir seus Codigos de Instrução - if self.instruction_move_code_id.code == payment_mode_id.sending_code_id.code: - if payment_mode_id.boleto_fee_perc: - linhas_pagamentos["codigo_multa"] = payment_mode_id.boleto_fee_code - linhas_pagamentos["percentual_multa"] = payment_mode_id.boleto_fee_perc + if self.instruction_move_code_id.code == cnab_config.sending_code_id.code: + if cnab_config.boleto_fee_perc: + linhas_pagamentos["codigo_multa"] = cnab_config.boleto_fee_code + linhas_pagamentos["percentual_multa"] = cnab_config.boleto_fee_perc - if payment_mode_id.boleto_interest_perc: - linhas_pagamentos["tipo_mora"] = payment_mode_id.boleto_interest_code + if cnab_config.boleto_interest_perc: + linhas_pagamentos["tipo_mora"] = cnab_config.boleto_interest_code # TODO - É padrão em todos os bancos ? # Código adotado pela FEBRABAN para identificação do tipo de # pagamento de mora de juros. @@ -155,35 +139,55 @@ def prepare_bank_payment_line(self, bank_name_brcobranca): # segundo manual. Cógido mantido # para Correspondentes que ainda utilizam. # Isento de Mora caso não exista percentual - if payment_mode_id.boleto_interest_code == "1": + if cnab_config.boleto_interest_code == "1": linhas_pagamentos["valor_mora"] = self.company_currency_id.round( self.amount_currency - * ((payment_mode_id.boleto_interest_perc / 100) / 30), + * ((cnab_config.boleto_interest_perc / 100) / 30), ) - if payment_mode_id.boleto_interest_code == "2": - linhas_pagamentos[ - "valor_mora" - ] = payment_mode_id.boleto_interest_perc + if cnab_config.boleto_interest_code == "2": + linhas_pagamentos["valor_mora"] = cnab_config.boleto_interest_perc if self.discount_value: linhas_pagamentos["data_desconto"] = self.date.strftime("%Y/%m/%d") linhas_pagamentos["valor_desconto"] = self.discount_value # Protesto - if payment_mode_id.boleto_protest_code: - linhas_pagamentos[ - "codigo_protesto" - ] = payment_mode_id.boleto_protest_code - if payment_mode_id.boleto_days_protest: - linhas_pagamentos[ - "dias_protesto" - ] = payment_mode_id.boleto_days_protest + if cnab_config.boleto_protest_code: + linhas_pagamentos["codigo_protesto"] = cnab_config.boleto_protest_code + if cnab_config.boleto_days_protest: + linhas_pagamentos["dias_protesto"] = cnab_config.boleto_days_protest # Desconto # Código adotado pela FEBRABAN para identificação do desconto. # Domínio: 0 = Isento | 1 = Valor Fixo - if payment_mode_id.payment_method_code == "240": - if self.discount_value: - linhas_pagamentos["cod_desconto"] = "1" + + # Apesar das Documentações dos Bancos dizerem que estão seguindo + # um "Padrão" na realidade: + # Banco | Cod Banco | Possíveis Códigos de Desconto | + # | | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | + # ----------|-----------|---|---|---|---|---|---|---|---| + # Ailos | 085 | X | X | | | | | | | + # Bradesco | 237 | | X | X | X | X | X | X | X | + # CEF | 104 | X | X | X | | | | | | + # Santander | 033 | X | X | X | X | | | | | + # Sicred | 748 | | X | X | X | | | | X | + # Unicred | 136 | X | X | | | | | | | + + discount_code = False + if self.discount_value: + # Apenas para inicialmente evitar erro no caso do CNAB Config + # não está com valor no 'Codigo de Desconto'. + # TODO: Considerar remover e deixar apenas o 'Código de Desconto' + # e dependendo retornar um Warning sobre a falta da informação. + discount_code = "1" + + if cnab_config.boleto_discount_code_id: + discount_code = cnab_config.boleto_discount_code_id.code + else: + if cnab_config.bank_code_bc in ("085", "104", "033", "136"): + # Casos mapeados que enviam Zero para quando não tem valor + discount_code = "0" + + linhas_pagamentos["cod_desconto"] = discount_code return linhas_pagamentos diff --git a/l10n_br_account_payment_brcobranca/models/account_payment_order.py b/l10n_br_account_payment_brcobranca/models/account_payment_order.py index be37a2f6152a..6e4d90bf3e49 100644 --- a/l10n_br_account_payment_brcobranca/models/account_payment_order.py +++ b/l10n_br_account_payment_brcobranca/models/account_payment_order.py @@ -27,69 +27,66 @@ class PaymentOrder(models.Model): _inherit = "account.payment.order" - def _prepare_remessa_banco_brasil(self, remessa_values, cnab_type): + def _prepare_remessa_banco_brasil(self, remessa_values, cnab_config): remessa_values.update( { - "convenio": int(self.payment_mode_id.cnab_company_bank_code), - "variacao_carteira": self.payment_mode_id.boleto_variation.zfill(3), - "convenio_lider": self.payment_mode_id.convention_code.zfill(7), - "carteira": str(self.payment_mode_id.boleto_wallet).zfill(2), + "convenio": int(cnab_config.cnab_company_bank_code), + "variacao_carteira": cnab_config.boleto_variation.zfill(3), + "convenio_lider": cnab_config.convention_code.zfill(7), + "carteira": str(cnab_config.boleto_wallet).zfill(2), } ) - def _prepare_remessa_santander(self, remessa_values, cnab_type): + def _prepare_remessa_santander(self, remessa_values, cnab_config): remessa_values.update( { - "codigo_carteira": self.payment_mode_id.wallet_code_id.code, - "codigo_transmissao": self.payment_mode_id.cnab_company_bank_code, + "codigo_carteira": cnab_config.wallet_code_id.code, + "codigo_transmissao": cnab_config.cnab_company_bank_code, "conta_corrente": misc.punctuation_rm( self.journal_id.bank_account_id.acc_number ), } ) - def _prepare_remessa_caixa(self, remessa_values, cnab_type): + def _prepare_remessa_caixa(self, remessa_values, cnab_config): remessa_values.update( { - "convenio": int(self.payment_mode_id.cnab_company_bank_code), + "convenio": int(cnab_config.cnab_company_bank_code), "digito_agencia": self.journal_id.bank_account_id.bra_number_dig, } ) - def _prepare_remessa_ailos(self, remessa_values, cnab_type): + def _prepare_remessa_ailos(self, remessa_values, cnab_config): remessa_values.update( { - "convenio": int(self.payment_mode_id.cnab_company_bank_code), + "convenio": int(cnab_config.cnab_company_bank_code), "digito_agencia": self.journal_id.bank_account_id.bra_number_dig, } ) - def _prepare_remessa_unicred(self, remessa_values, cnab_type): - remessa_values["codigo_beneficiario"] = int( - self.payment_mode_id.cnab_company_bank_code - ) + def _prepare_remessa_unicred(self, remessa_values, cnab_config): + remessa_values["codigo_beneficiario"] = int(cnab_config.cnab_company_bank_code) - def _prepare_remessa_sicredi(self, remessa_values, cnab_type): + def _prepare_remessa_sicredi(self, remessa_values, cnab_config): bank_account_id = self.journal_id.bank_account_id remessa_values.update( { # Aparentemente a validação do BRCobranca nesse caso gera erro # quando é feito o int(misc.punctuation_rm(bank_account_id.acc_number)) "conta_corrente": misc.punctuation_rm(bank_account_id.acc_number), - "posto": self.payment_mode_id.boleto_post, - "byte_idt": self.payment_mode_id.boleto_byte_idt, + "posto": cnab_config.boleto_post, + "byte_idt": cnab_config.boleto_byte_idt, } ) - def _prepare_remessa_bradesco(self, remessa_values, cnab_type): - remessa_values["codigo_empresa"] = int( - self.payment_mode_id.cnab_company_bank_code - ) + def _prepare_remessa_bradesco(self, remessa_values, cnab_config): + remessa_values["codigo_empresa"] = int(cnab_config.cnab_company_bank_code) def generate_payment_file(self): """Returns (payment file as string, filename)""" self.ensure_one() - self.file_number = self.payment_mode_id.cnab_sequence_id.next_by_id() + cnab_config = self.payment_mode_id.cnab_config_id + self.file_number = cnab_config.cnab_sequence_id.next_by_id() # see remessa fields here: # https://github.com/kivanio/brcobranca/blob/master/lib/brcobranca/remessa/base.rb @@ -99,24 +96,22 @@ def generate_payment_file(self): # https://github.com/kivanio/brcobranca/blob/master/spec/ # brcobranca/remessa/cnab400/itau_spec.rb - cnab_type = self.payment_mode_id.payment_method_code + cnab_type = cnab_config.payment_method_id.code # Se não for um caso CNAB deve chamar o super if ( cnab_type not in ("240", "400", "500") - or self.payment_mode_id.cnab_processor != "brcobranca" + or cnab_config.cnab_processor != "brcobranca" ): return super().generate_payment_file() bank_account_id = self.journal_id.bank_account_id - bank_brcobranca = get_brcobranca_bank( - bank_account_id, self.payment_mode_id.payment_method_code - ) + bank_brcobranca = get_brcobranca_bank(bank_account_id, cnab_type) # Verificar campos que não podem ser usados no CNAB, já é # feito ao criar um Modo de Pagamento, porém para evitar # erros devido alterações e re-validado aqui - self.payment_mode_id._check_cnab_restriction() + cnab_config._check_cnab_restriction() if cnab_type not in bank_brcobranca.remessa: # Informa se o CNAB especifico de um Banco não está implementado @@ -135,7 +130,7 @@ def generate_payment_file(self): pagamentos.append(line.prepare_bank_payment_line(bank_brcobranca)) remessa_values = { - "carteira": str(self.payment_mode_id.boleto_wallet), + "carteira": str(cnab_config.boleto_wallet), "agencia": bank_account_id.bra_number, "conta_corrente": int(misc.punctuation_rm(bank_account_id.acc_number)), "digito_conta": bank_account_id.acc_number_dig[0], @@ -153,7 +148,7 @@ def generate_payment_file(self): # PR para ajudar if hasattr(self, f"_prepare_remessa_{bank_brcobranca.name}"): bank_method = getattr(self, f"_prepare_remessa_{bank_brcobranca.name}") - bank_method(remessa_values, cnab_type) + bank_method(remessa_values, cnab_config) remessa = self._get_brcobranca_remessa( bank_brcobranca, remessa_values, cnab_type diff --git a/l10n_br_account_payment_brcobranca/models/account_payment_mode.py b/l10n_br_account_payment_brcobranca/models/l10n_br_cnab_config.py similarity index 51% rename from l10n_br_account_payment_brcobranca/models/account_payment_mode.py rename to l10n_br_account_payment_brcobranca/models/l10n_br_cnab_config.py index e37f3b18463e..0f2b349d4176 100644 --- a/l10n_br_account_payment_brcobranca/models/account_payment_mode.py +++ b/l10n_br_account_payment_brcobranca/models/l10n_br_cnab_config.py @@ -1,19 +1,16 @@ -# Copyright (C) 2012-Today - KMEE (). -# @author Luis Felipe Miléo - mileo@kmee.com.br -# @author Renato Lima - renato.lima@akretion.com.br -# Copyright (C) 2021-Today - Akretion (). +# Copyright (C) 2024-Today - Akretion (). # @author Magno Costa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, models -class AccountPaymentMode(models.Model): +class L10nBRCNABConfig(models.Model): """ - Override Account Payment Mode + Override CNAB Config """ - _inherit = "account.payment.mode" + _inherit = "l10n_br_cnab.config" @api.model def _selection_cnab_processor(self): diff --git a/l10n_br_account_payment_brcobranca/parser/cnab_file_parser.py b/l10n_br_account_payment_brcobranca/parser/cnab_file_parser.py index 5f4c6421f679..7f3177542f15 100644 --- a/l10n_br_account_payment_brcobranca/parser/cnab_file_parser.py +++ b/l10n_br_account_payment_brcobranca/parser/cnab_file_parser.py @@ -320,7 +320,7 @@ def process_return_file(self, data): # Codigos de Movimento de Retorno - Liquidação cnab_liq_move_code = [] - for move_code in account_move_line.payment_mode_id.liq_return_move_code_ids: + for move_code in account_move_line.cnab_config_id.liq_return_move_code_ids: cnab_liq_move_code.append(move_code.code) favored_bank_account = ( @@ -424,6 +424,7 @@ def _get_accounting_entries(self, linha_cnab, account_move_line, payment_lines): str(linha_cnab["data_credito"]), date_format ).date() + cnab_config = account_move_line.payment_mode_id.cnab_config_id # Na própria lib o desconto é tratado com duas keys diferentes # dependendo do banco e do formato. Também há um erro de escrita que foi tratado # aqui porque uma alteração da lib poderia quebrar outras implementações. @@ -439,9 +440,7 @@ def _get_accounting_entries(self, linha_cnab, account_move_line, payment_lines): + account_move_line.document_number, "debit": valor_desconto, "credit": 0.0, - "account_id": ( - account_move_line.payment_mode_id.discount_account_id.id - ), + "account_id": cnab_config.discount_account_id.id, "type": "desconto", "payment_line_ids": payment_lines.ids, "cnab_returned_ref": account_move_line.document_number, @@ -474,9 +473,7 @@ def _get_accounting_entries(self, linha_cnab, account_move_line, payment_lines): "debit": 0.0, "credit": valor_juros_mora, "type": "juros_mora", - "account_id": ( - account_move_line.payment_mode_id.interest_fee_account_id.id - ), + "account_id": cnab_config.interest_fee_account_id.id, "partner_id": account_move_line.partner_id.id, "payment_line_ids": payment_lines.ids, "cnab_returned_ref": account_move_line.document_number, @@ -519,9 +516,8 @@ def _get_accounting_entries(self, linha_cnab, account_move_line, payment_lines): ) # Avoid error in pre commit - tariff_charge_account = ( - account_move_line.payment_mode_id.tariff_charge_account_id - ) + tariff_charge_account = cnab_config.tariff_charge_account_id + row_list.append( { "name": "Tarifas bancárias (boleto) " @@ -546,9 +542,7 @@ def _get_accounting_entries(self, linha_cnab, account_move_line, payment_lines): + account_move_line.document_number, "debit": valor_abatimento, "credit": 0.0, - "account_id": ( - account_move_line.payment_mode_id.rebate_account_id.id - ), + "account_id": cnab_config.rebate_account_id.id, "type": "abatimento", "payment_line_ids": payment_lines.ids, "cnab_returned_ref": account_move_line.document_number, diff --git a/l10n_br_account_payment_brcobranca/static/description/index.html b/l10n_br_account_payment_brcobranca/static/description/index.html index 7f7c760c9785..a1b587207cba 100644 --- a/l10n_br_account_payment_brcobranca/static/description/index.html +++ b/l10n_br_account_payment_brcobranca/static/description/index.html @@ -367,7 +367,7 @@

Boletos e CNAB de cobrança

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:38fb530586cd298d0b22083dc1256d3b22bd37e966331ef9e182035b87c18bb0 +!! source digest: sha256:9d121166f58940eca1f7635e97ff5133e66a484eed772777e8122a44cb2d9d20 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Português diff --git a/l10n_br_account_payment_brcobranca/tests/test_payment_order.py b/l10n_br_account_payment_brcobranca/tests/test_payment_order.py index 243a65b66f09..e1cb7c7cb1ad 100644 --- a/l10n_br_account_payment_brcobranca/tests/test_payment_order.py +++ b/l10n_br_account_payment_brcobranca/tests/test_payment_order.py @@ -280,8 +280,8 @@ def test_payment_order_invoice_cancel_process(self): for line in payment_order.payment_line_ids: # Caso de Baixa do Titulo self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_write_off_code_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.write_off_code_id.name, ) def test_payment_outside_cnab_writeoff_and_change_tittle_value(self): @@ -322,14 +322,14 @@ def test_payment_outside_cnab_writeoff_and_change_tittle_value(self): if line.amount_currency == 300: # Caso de Baixa do Titulo self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_write_off_code_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.write_off_code_id.name, ) else: # Caso de alteração do valor do titulo por pagamento parcial self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_change_title_value_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.change_title_value_code_id.name, ) self.assertEqual( line.move_line_id.amount_residual, line.amount_currency @@ -388,8 +388,8 @@ def test_cnab_change_due_date(self): ) for line in payment_order.payment_line_ids: self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_change_maturity_date_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.change_maturity_date_code_id.name, ) # Open payment order @@ -434,8 +434,8 @@ def test_cnab_protest(self): ) for line in payment_order.payment_line_ids: self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_protest_title_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.protest_title_code_id.name, ) # Open payment order payment_order.draft2open() @@ -479,13 +479,13 @@ def test_cnab_suspend_protest_and_keep_wallet(self): ] ) - cnab_code_suspend_protest_keep_wallet = ( - self.aml_to_change.payment_mode_id.cnab_code_suspend_protest_keep_wallet_id + suspend_protest_keep_wallet_code = ( + self.aml_to_change.cnab_config_id.suspend_protest_keep_wallet_code_id ) for line in payment_order.payment_line_ids: self.assertEqual( - line.mov_instruction_code_id.name, - cnab_code_suspend_protest_keep_wallet.name, + line.instruction_move_code_id.name, + suspend_protest_keep_wallet_code.name, ) # Open payment order payment_order.draft2open() @@ -535,8 +535,8 @@ def test_cnab_grant_rebate(self): ) for line in payment_order.payment_line_ids: self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_grant_rebate_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.grant_rebate_code_id.name, ) self.assertEqual(line.rebate_value, 10.0) @@ -544,8 +544,8 @@ def test_cnab_grant_rebate(self): payment_order.draft2open() for line in payment_order.payment_line_ids: self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_grant_rebate_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.grant_rebate_code_id.name, ) self.assertEqual(line.rebate_value, 10.0) @@ -589,8 +589,8 @@ def test_cnab_cancel_rebate(self): ) for line in payment_order.payment_line_ids: self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_cancel_rebate_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.cancel_rebate_code_id.name, ) # Open payment order @@ -641,8 +641,8 @@ def test_cnab_grant_discount(self): ) for line in payment_order.payment_line_ids: self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_grant_discount_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.grant_discount_code_id.name, ) self.assertEqual(line.discount_value, 10.0) @@ -650,8 +650,8 @@ def test_cnab_grant_discount(self): payment_order.draft2open() for line in payment_order.payment_line_ids: self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_grant_discount_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.grant_discount_code_id.name, ) self.assertEqual(line.discount_value, 10.0) @@ -695,8 +695,8 @@ def test_cnab_cancel_discount(self): ) for line in payment_order.payment_line_ids: self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_cancel_discount_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.cancel_discount_code_id.name, ) # Open payment order @@ -748,8 +748,8 @@ def test_cnab_change_method_not_payment(self): for line in payment_order.payment_line_ids: # Baixa do Titulo self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_write_off_code_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.write_off_code_id.name, ) def test_payment(self): @@ -813,8 +813,8 @@ def test_payment(self): for line in payment_order.payment_line_ids: # Caso de alteração do valor do titulo por pagamento parcial self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_change_title_value_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.change_title_value_code_id.name, ) self.assertEqual(line.move_line_id.amount_residual, line.amount_currency) @@ -867,8 +867,8 @@ def test_payment(self): for line in payment_order.payment_line_ids: # Caso de alteração do valor do titulo por pagamento parcial self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_code_change_title_value_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.change_title_value_code_id.name, ) self.assertEqual(line.move_line_id.amount_residual, line.amount_currency) @@ -929,8 +929,8 @@ def test_payment(self): for line in payment_order.payment_line_ids: # Baixa do Titulo self.assertEqual( - line.mov_instruction_code_id.name, - line.order_id.payment_mode_id.cnab_write_off_code_id.name, + line.instruction_move_code_id.name, + line.order_id.cnab_config_id.write_off_code_id.name, ) # TODO: Pedido de Baixa está indo com o valor inicial deveria ser # o ultimo valor enviado ? Já que é um Pedido de Baixa o Banco diff --git a/l10n_br_account_payment_order/README.rst b/l10n_br_account_payment_order/README.rst index 4c806f294cea..8876df0808cf 100644 --- a/l10n_br_account_payment_order/README.rst +++ b/l10n_br_account_payment_order/README.rst @@ -7,7 +7,7 @@ Brazilian Payment Order !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:074125f8f0a89da5cad7e8bdef1ccd67e8398ff4942388ce2e452c31429aa3b2 + !! source digest: sha256:f0fe52940d9a535a143d7f7f21297460bf87b3b6f664e261375c422b836d3293 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index 3e4e4f6f2ebd..362a3c5fa7c4 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Brazilian Payment Order", - "version": "14.0.6.0.0", + "version": "14.0.9.0.0", "license": "AGPL-3", "author": "KMEE, Akretion, Odoo Community Association (OCA)", "maintainers": ["mbcosta"], @@ -36,6 +36,13 @@ # Boleto Wallet Code "data/cnab_codes/banco_santander_boleto_wallet_code.xml", "data/cnab_codes/banco_bradesco_boleto_wallet_code.xml", + # CNAB Discount Codes + "data/cnab_codes/banco_ailos_240_boleto_discount_code.xml", + "data/cnab_codes/banco_bradesco_240_boleto_discount_code.xml", + "data/cnab_codes/banco_cef_240_boleto_discount_code.xml", + "data/cnab_codes/banco_santander_240_boleto_discount_code.xml", + "data/cnab_codes/banco_sicredi_240_boleto_discount_code.xml", + "data/cnab_codes/banco_unicred_240_400_boleto_discount_code.xml", # Wizards "wizards/account_payment_line_create_view.xml", "wizards/account_move_line_change.xml", @@ -46,13 +53,11 @@ "views/account_payment_mode.xml", "views/l10n_br_cnab_return_log_view.xml", "views/account_move_line.xml", - "views/l10n_br_cnab_return_move_code_view.xml", "views/account_payment_views.xml", - "views/l10n_br_cnab_mov_instruction_code_view.xml", "views/account_move_view.xml", - "views/l10n_br_cnab_boleto_wallet_code_view.xml", # Códigos CNAB "views/l10n_br_cnab_code_view.xml", + "views/l10n_br_cnab_config_view.xml", ], "demo": [ "demo/account_payment_method.xml", @@ -61,6 +66,7 @@ "demo/account_account.xml", "demo/account_journal.xml", "demo/ir_sequence.xml", + "demo/l10n_br_cnab_config_demo.xml", "demo/account_payment_mode.xml", "demo/account_invoice.xml", "demo/res_users.xml", diff --git a/l10n_br_account_payment_order/data/cnab_codes/banco_ailos_240_boleto_discount_code.xml b/l10n_br_account_payment_order/data/cnab_codes/banco_ailos_240_boleto_discount_code.xml new file mode 100644 index 000000000000..23edcf8025c1 --- /dev/null +++ b/l10n_br_account_payment_order/data/cnab_codes/banco_ailos_240_boleto_discount_code.xml @@ -0,0 +1,35 @@ + + + + + + + Não assumirá Desconto + 0 + discount_code + + + + + + Valor Fixo Até a Data Informada + 1 + discount_code + + + Para o código '1' será obrigatório a informação da Data. + + + + + diff --git a/l10n_br_account_payment_order/data/cnab_codes/banco_bradesco_240_boleto_discount_code.xml b/l10n_br_account_payment_order/data/cnab_codes/banco_bradesco_240_boleto_discount_code.xml new file mode 100644 index 000000000000..6f576a3bb309 --- /dev/null +++ b/l10n_br_account_payment_order/data/cnab_codes/banco_bradesco_240_boleto_discount_code.xml @@ -0,0 +1,100 @@ + + + + + + + + Valor Fixo Até a Data Informada + 1 + discount_code + + + Para os códigos '1' e '2' será obrigatório a informação da Data. + + + + + Percentual Até a Data Informada + 2 + discount_code + + + Para os códigos '1' e '2' será obrigatório a informação da Data. + + + + + Valor por Antecipação Dia Corrido + 3 + discount_code + + + + + + Valor por Antecipação Dia Útil + 4 + discount_code + + + + + + Percentual Sobre o Valor Nominal Dia Corrido + 5 + discount_code + + + + + + Percentual Sobre o Valor Nominal Dia Útil + 6 + discount_code + + + + + + Cancelamento de Desconto + 7 + discount_code + + + Para o código '7', somente será válido para o código de movimento '31' - Alteração de Dados + + + + diff --git a/l10n_br_account_payment_order/data/cnab_codes/banco_cef_240_boleto_discount_code.xml b/l10n_br_account_payment_order/data/cnab_codes/banco_cef_240_boleto_discount_code.xml new file mode 100644 index 000000000000..77777772b60b --- /dev/null +++ b/l10n_br_account_payment_order/data/cnab_codes/banco_cef_240_boleto_discount_code.xml @@ -0,0 +1,43 @@ + + + + + + + Sem Desconto + 0 + discount_code + + + + + + Valor Fixo até a data informada + 1 + discount_code + + + + + + Percentual até a data informada + 2 + discount_code + + + + + diff --git a/l10n_br_account_payment_order/data/cnab_codes/banco_santander_240_boleto_discount_code.xml b/l10n_br_account_payment_order/data/cnab_codes/banco_santander_240_boleto_discount_code.xml new file mode 100644 index 000000000000..9956314e39a1 --- /dev/null +++ b/l10n_br_account_payment_order/data/cnab_codes/banco_santander_240_boleto_discount_code.xml @@ -0,0 +1,80 @@ + + + + + + + + ISENTO + 0 + discount_code + + + + + + Valor fixo ate a data informada + 1 + discount_code + + + Informar o valor no campo “valor de desconto a ser concedido”. + + + + + Percentual ate a data informada + 2 + discount_code + + + Informar o percentual no campo “percentual de desconto a ser concedido” + + + + + Valor por antecipação por dia corrido - Informar o valor no campo “valor de desconto a ser concedido” + 3 + discount_code + + + + + + Valor por antecipação dia útil + 4 + discount_code + + + Informar o valor no campo “valor de desconto a ser concedido”. + + + + diff --git a/l10n_br_account_payment_order/data/cnab_codes/banco_sicredi_240_boleto_discount_code.xml b/l10n_br_account_payment_order/data/cnab_codes/banco_sicredi_240_boleto_discount_code.xml new file mode 100644 index 000000000000..c46f7474ce99 --- /dev/null +++ b/l10n_br_account_payment_order/data/cnab_codes/banco_sicredi_240_boleto_discount_code.xml @@ -0,0 +1,74 @@ + + + + + + + + Valor fixo até a data informada + 1 + discount_code + + + Para os códigos '1' e '2', será obrigatório a informação da data. + + + + + Percentual até a data informada + 2 + discount_code + + + Para os códigos '1' e '2', será obrigatório a informação da data. + + + + + Valor por antecipação dia corrido + 3 + discount_code + + + Quando utilizado o desconto “3 – Valor por antecipação dia corrido” só + poderá ser enviada uma regra para desconto, ou seja, não poderá ser + enviado as regras dos descontos 2 e 3 (Desc2 e Desc3 do segmento R). + + + + + Cancelamento de desconto + 7 + discount_code + + + O '7' somente será válido para o código de movimento '31' - Alteração +de dados. + + + + diff --git a/l10n_br_account_payment_order/data/cnab_codes/banco_unicred_240_400_boleto_discount_code.xml b/l10n_br_account_payment_order/data/cnab_codes/banco_unicred_240_400_boleto_discount_code.xml new file mode 100644 index 000000000000..1a5c21744508 --- /dev/null +++ b/l10n_br_account_payment_order/data/cnab_codes/banco_unicred_240_400_boleto_discount_code.xml @@ -0,0 +1,32 @@ + + + + + + + Isento + 0 + discount_code + + + + + + Valor Fixo + 1 + discount_code + + + + + diff --git a/l10n_br_account_payment_order/demo/account_payment_mode.xml b/l10n_br_account_payment_order/demo/account_payment_mode.xml index ce687b2e497d..aa2637185c13 100644 --- a/l10n_br_account_payment_order/demo/account_payment_mode.xml +++ b/l10n_br_account_payment_order/demo/account_payment_mode.xml @@ -8,62 +8,11 @@ False - 0001222130126 fixed True True - - - - - - - - - - - - - - - - - - + @@ -71,62 +20,11 @@ False - 0001222130126 fixed True False - - - - - - - - - - - - - - - - - - + @@ -138,11 +36,9 @@ ref="account.account_payment_method_manual_in" /> False - 0001222130126 fixed - - + @@ -156,15 +52,7 @@ ref="account.account_payment_method_manual_in" /> False - 0001222130126 - - + @@ -178,687 +66,163 @@ ref="account.account_payment_method_manual_in" /> False - 0001222130126 - - + Cobrança Bradesco400 - Pagavel em qualquer banco ate o vencimento fixed True True - 03 - DM - 19 - S - - False - 0001222130126 - 1 - - - - - - - - - - + Cobrança Bradesco240 - Pagavel em qualquer banco ate o vencimento fixed True True - 3 - - DM - 19 - S - - False - 1 - - - - - - 0001222130126 - - - - - - - - - - - - + Cobrança Unicred400 - Pagavel em qualquer banco ate o vencimento fixed True True - 21 - DM - 19 - N - - - 2 - 5 - 2 - 2 - 2 - 2 - 1 False - - - - - - - 92035760 - - - - - - - - - + Cobrança Unicred240 - Pagavel em qualquer banco ate o vencimento fixed True True - 3 - DM - 19 - N - 1 - - - 2 - 5 - 72234050 False - - - - - - - - - - - - - - + Cobrança Ailos240 - Pagavel em qualquer banco ate o vencimento fixed True True - 01 - N - - - 3 - 5 - 101004 False - - - - - - - - - - - - - - + Cobrança Itau240 - Pagavel em qualquer banco ate o vencimento fixed True True - 3 - DM - 19 - S - 1 - - False - - - - - - - 12345 - - - - - - + Cobrança Itau400 - Pagavel em qualquer banco ate o vencimento fixed True True - 175 - DM - 19 - S - 1 - - False - - - - - - - 12345 - - - - - + Cobrança Caixa Economica Federal 240 - Pagavel em qualquer banco ate o vencimento fixed True True - 3 - DM - 19 - S - 1 - - False - - - - - - - 000122 - - - - - - - - - - - - + Cobrança Caixa Economica Federal 400 - Pagavel em qualquer banco ate o vencimento fixed True True - 3 - DM - 19 - S - 1 - - False - - - - - - - 000122 + Cobrança SICREDI 240 - Pagavel em qualquer banco ate o vencimento fixed True True - 3 - DM - 19 - S - 1 - - False - - 12345 - - 2 - 1 - - - - - - - - - - - - - - - - - + Cobrança Banco do Brasil 400 - Pagavel em qualquer banco ate o vencimento fixed True True - 18 - DM - 19 - S - 1 - - False - - - - - - - 1234 - 7654321 - - - - - - - - - - - - + Cobrança Banco do Brasil 240 - Pagavel em qualquer banco ate o vencimento fixed True True - 18 - DM - 19 - S - 1 - - False - - - - - - 0001222130126 + @@ -866,132 +230,26 @@ Cobrança Banco Santander 400 - Pagavel em qualquer banco ate o vencimento fixed True True - 101 - - DM - 35 - S - 1 - - False - - - - - - - 12345678901234567890 - - 1234567 - - - - - - - - - - - + Cobrança Banco Santander 240 - Pagavel em qualquer banco ate o vencimento fixed True True - 101 - - DM - 35 - S - 1 - - False - - - - - - - 123456789012345 - 1234567 - - - - - - - - - - - + @@ -1021,6 +279,7 @@ due True + PIX Transferência @@ -1035,4 +294,5 @@ due True + diff --git a/l10n_br_account_payment_order/demo/l10n_br_cnab_config_demo.xml b/l10n_br_account_payment_order/demo/l10n_br_cnab_config_demo.xml new file mode 100644 index 000000000000..25d762901756 --- /dev/null +++ b/l10n_br_account_payment_order/demo/l10n_br_cnab_config_demo.xml @@ -0,0 +1,945 @@ + + + + + + + Banco Bradesco - CNAB 400 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 03 + DM + 19 + S + + + 0001222130126 + 1 + + + + + + + + + + + + + + + Banco Bradesco - CNAB 240 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 3 + + DM + 19 + S + + 1 + + + + + + + + 0001222130126 + + + + + + + + + + + + + + + + + Banco Unicred - CNAB 400 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 21 + DM + 19 + N + + + 2 + 5 + 2 + 2 + 2 + 2 + + 1 + + + + + + + 92035760 + + + + + + + + + + + + + + Banco Unicred - CNAB 240 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 3 + DM + 19 + N + + 1 + + + 2 + 5 + 72234050 + + + + + + + + + + + + + + + + + + + Banco AILOS - CNAB 240 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 01 + N + + + 3 + 5 + + 1 + 101004 + + + + + + + + + + + + + + + + + + + Banco ITAÚ - CNAB 240 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 3 + DM + 19 + S + 1 + + + + + + + + + 12345 + + + + + + + + + + + Banco ITAÚ - CNAB 400 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 175 + DM + 19 + S + 1 + + + + + + + + + 12345 + + + + + + + + + + Caixa Economica Federal - CNAB 240 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 3 + DM + 19 + S + + 1 + + + + + + + + + 000122 + + + + + + + + + + + + + + + + + Caixa Economica Federal - CNAB 400 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 3 + DM + 19 + S + 1 + + + + + + + + + 000122 + + + + + Banco Sicredi - CNAB 240 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 3 + DM + 19 + S + + 1 + + + + 12345 + + 2 + 1 + + + + + + + + + + + + + + + + + + + + + + Banco do Brasil - CNAB 400 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 18 + DM + 19 + S + 1 + + + + + + + + + 1234 + 7654321 + + + + + + + + + + + + + + + + Banco do Brasil - CNAB 240 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 18 + DM + 19 + S + 1 + + + + + + + + 0001222130126 + + + + + + Banco Santander - CNAB 400 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 101 + + DM + 35 + S + 1 + + + + + + + + + 12345678901234567890 + + 1234567 + + + + + + + + + + + + + + + + Banco Santander - CNAB 240 (inbound) + + + Pagavel em qualquer banco ate o vencimento + + 101 + + DM + 35 + S + + 1 + + + + + + + + + 123456789012345 + 1234567 + + + + + + + + + + + + + + + + + Cobrança Boleto (Automatico Test) + + + 0001222130126 + + + + + + + + + + + + + + + + + + + + + + Cobrança Boleto (Manual Test) + + + 0001222130126 + + + + + + + + + + + + + + + + + + + + + + + Cobrança Boleto (Manual) + + + 0001222130126 + + + + + + Cobrança Boleto (Manual) + + + + 0001222130126 + + + + + + Cobrança Boleto (Manual) + + + 0001222130126 + + + + + diff --git a/l10n_br_account_payment_order/i18n/l10n_br_account_payment_order.pot b/l10n_br_account_payment_order/i18n/l10n_br_account_payment_order.pot index 7dc902930af6..de9f87371c01 100644 --- a/l10n_br_account_payment_order/i18n/l10n_br_account_payment_order.pot +++ b/l10n_br_account_payment_order/i18n/l10n_br_account_payment_order.pot @@ -20,28 +20,28 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__0 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__0 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__0 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__0 msgid "0 - Não Emite Aviso" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__01 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__01 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__01 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__01 msgid "01 - Cobrança" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__01 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__01 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__01 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__01 msgid "01 - Crédito em Conta" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__01 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__01 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__01 msgid "01 - Crédito em Conta Corrente/Salário" msgstr "" @@ -51,8 +51,8 @@ msgid "01 - Débito em Conta Corrente" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__02 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__02 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__02 msgid "02 - Cheque Pagamento / Administrativo" msgstr "" @@ -63,21 +63,21 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__02 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__02 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__02 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__02 msgid "02 - Pagamento de Aluguel/Condomínio" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__03 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__03 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__03 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__03 msgid "03 - Boleto de Pagamento Eletrônico" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__03 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__03 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__03 msgid "03 - DOC/TED (1) (2)" msgstr "" @@ -88,103 +88,103 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__03 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__03 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__03 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__03 msgid "03 - Pagamento de Duplicata/Títulos" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__04 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__04 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__04 msgid "04 - Cartão Salário (somente para Tipo de Serviço = '30')" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__04 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__04 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__04 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__04 msgid "04 - Conciliação Bancária" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__04 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__04 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__04 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__04 msgid "04 - Pagamento de Dividendos" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__05 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__05 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__05 msgid "05 - Crédito em Conta Poupança" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__05 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__05 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__05 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__05 msgid "05 - Débitos" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__05 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__05 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__05 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__05 msgid "05 - Pagamento de Mensalidade Escolar" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__06 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__06 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__06 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__06 msgid "06 - Custódia de Cheques" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__06 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__06 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__06 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__06 msgid "06 - Pagamento de Salários" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__07 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__07 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__07 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__07 msgid "07 - Gestão de Caixa" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__07 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__07 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__07 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__07 msgid "07 - Pagamento a Fornecedores" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__08 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__08 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__08 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__08 msgid "08 - Consulta/Informação Margem" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__08 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__08 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__08 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__08 msgid "08 - Operações de Câmbios/Fundos/Bolsa de Valores" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__09 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__09 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__09 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__09 msgid "09 - Averbação da Consignação/Retenção" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__09 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__09 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__09 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__09 msgid "09 - Repasse de Arrecadação/Pagamento de Tributos" msgstr "" @@ -195,135 +195,135 @@ msgid "1 - Indica CONSULTA" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__10 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__10 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__10 msgid "10 - OP à Disposição" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__10 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__10 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__10 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__10 msgid "10 - Pagamento Dividendos" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__10 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__10 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__10 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__10 msgid "10 - Transferência Internacional em Real" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__11 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__11 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__11 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__11 msgid "11 - DOC para Poupança" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__11 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__11 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__11 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__11 msgid "11 - Manutenção da Consignação" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__11 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__11 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__11 msgid "11 - Pagamento de Contas e Tributos com Código de Barras" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__12 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__12 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__12 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__12 msgid "12 - Consignação de Parcelas" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__12 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__12 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__12 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__12 msgid "12 - DOC para Depósito Judicial" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__13 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__13 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__13 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__13 msgid "13 - Glosa da Consignação (INSS)" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__13 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__13 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__13 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__13 msgid "13 - Outros" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__14 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__14 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__14 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__14 msgid "14 - Consulta de Tributos a pagar" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__16 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__16 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__16 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__16 msgid "16 - Pagamento de bolsa auxílio" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__16 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__16 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__16 msgid "16 - Tributo - DARF Normal" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__17 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__17 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__17 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__17 msgid "17 - Remuneração à cooperado" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__17 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__17 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__17 msgid "17 - Tributo - GPS (Guia da Previdência Social)" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__18 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__18 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__18 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__18 msgid "18 - Pagamento de honorários" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__18 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__18 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__18 msgid "18 - Tributo - DARF Simples" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__19 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__19 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__19 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__19 msgid "19 - Pagamento de prebenda (Remuneração a padres e sacerdotes)" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__19 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__19 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__19 msgid "19 - Tributo - IPTU – Prefeituras" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__2 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__2 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__2 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__2 msgid "2 - Emite Aviso Somente para o Remetente" msgstr "" @@ -335,91 +335,91 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__20 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__20 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__20 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__20 msgid "20 - Pagamento Fornecedor" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__20 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__20 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__20 msgid "20 - Pagamento com Autenticação" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__21 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__21 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__21 msgid "21 - Tributo – DARJ" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__22 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__22 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__22 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__22 msgid "22 - Pagamento de Contas, Tributos e Impostos" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__22 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__22 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__22 msgid "22 - Tributo - GARE-SP ICMS" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__23 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__23 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__23 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__23 msgid "23 - Interoperabilidade entre Contas de Instituições de Pagamentos" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__23 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__23 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__23 msgid "23 - Tributo - GARE-SP DR" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__24 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__24 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__24 msgid "24 - Tributo - GARE-SP ITCMD" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__25 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__25 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__25 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__25 msgid "25 - Compror" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__25 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__25 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__25 msgid "25 - Tributo - IPVA" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__26 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__26 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__26 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__26 msgid "26 - Compror Rotativo" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__26 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__26 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__26 msgid "26 - Tributo - Licenciamento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__27 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__27 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__27 msgid "27 - Tributo – DPVAT" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__29 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__29 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__29 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__29 msgid "29 - Alegação do Pagador" msgstr "" @@ -429,42 +429,42 @@ msgid "3 - Indica ESTORNO (somente para retorno)" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__30 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__30 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__30 msgid "30 - Liquidação de Títulos do Próprio Banco" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__30 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__30 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__30 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__30 msgid "30 - Pagamento Salários" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__31 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__31 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__31 msgid "31 - Pagamento de Títulos de Outros Bancos" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__32 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__32 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__32 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__32 msgid "32 - Pagamento de honorários" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__33 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__33 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__33 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__33 msgid "33 - Pagamento de bolsa auxílio" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__34 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__34 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__34 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__34 msgid "34 - Pagamento de prebenda (remuneração a padres e sacerdotes)" msgstr "" @@ -474,46 +474,46 @@ msgid "4 - Indica REATIVAÇÃO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__40 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__40 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__40 msgid "40 - Extrato de Conta Corrente" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__40 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__40 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__40 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__40 msgid "40 - Vendor" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__41 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__41 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__41 msgid "41 - TED – Outra Titularidade (1)" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__41 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__41 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__41 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__41 msgid "41 - Vendor a Termo" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__43 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__43 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__43 msgid "43 - TED – Mesma Titularidade (1)" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__44 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__44 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__44 msgid "44 - TED para Transferência de Conta Investimento" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__5 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__5 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__5 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__5 msgid "5 - Emite Aviso Somente para o Favorecido" msgstr "" @@ -524,35 +524,35 @@ msgid "5 - Indica ALTERAÇÃO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__50 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__50 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__50 msgid "50 - Débito em Conta Corrente" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__50 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__50 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__50 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__50 msgid "50 - Pagamento Sinistros Segurados" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__6 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__6 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__6 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__6 msgid "6 - Emite Aviso para o Remetente e Favorecido" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__60 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__60 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__60 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__60 msgid "60 - Pagamento Despesas Viajante em Trânsito" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__7 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__7 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__7 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__7 msgid "7 - Emite Aviso para o Favorecido e 2 Vias para o Remetente" msgstr "" @@ -563,54 +563,54 @@ msgid "7 - Indica LIQUIDAÇAO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__70 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__70 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__70 msgid "70 - Extrato para Gestão de Caixa" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__70 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__70 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__70 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__70 msgid "70 - Pagamento Autorizado" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__71 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__71 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__71 msgid "71 - Depósito Judicial em Conta Corrente" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__72 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__72 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__72 msgid "72 - Depósito Judicial em Poupança" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__73 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__73 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__73 msgid "73 - Extrato de Conta Investimento" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__75 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__75 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__75 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__75 msgid "75 - Pagamento Credenciados" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__77 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__77 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__77 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__77 msgid "77 - Pagamento de Remuneração" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__80 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__80 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__80 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__80 msgid "80 - Pagamento Representantes / Vendedores Autorizados" msgstr "" @@ -621,15 +621,15 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__90 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__90 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__90 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__90 msgid "90 - Pagamento Benefícios" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__98 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__98 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__98 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__98 msgid "98 - Pagamentos Diversos" msgstr "" @@ -654,20 +654,18 @@ msgid "Aceita em Homologação" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_accept #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_accept +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_accept msgid "Aceite" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_needaction #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_needaction -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_needaction #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_needaction +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_needaction #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_needaction -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_needaction #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_needaction -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_needaction msgid "Action Needed" msgstr "" @@ -734,18 +732,16 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_attachment_count #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_attachment_count -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_attachment_count #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_attachment_count +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_attachment_count #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_attachment_count -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_attachment_count #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_attachment_count -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_attachment_count msgid "Attachment Count" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__favored_warning -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__favored_warning +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__favored_warning #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__favored_warning msgid "Aviso ao Favorecido" msgstr "" @@ -772,49 +768,42 @@ msgid "Baixa por Não Pagamento/Inadimplência" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Banco Bradesco" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Banco Santander" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Banco do Brasil" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__condition_issuing_paper__1 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__condition_issuing_paper__1 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__condition_issuing_paper__1 msgid "Banco emite e Processa" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Bancos SICRED ou SICOOB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__bank_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__bank_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__bank_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__bank_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__bank_id -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_search_view +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__bank_id #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_search_view +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_search_view msgid "Bank" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__bank_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__bank_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__bank_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__bank_ids msgid "Banks" msgstr "" @@ -835,6 +824,12 @@ msgstr "" msgid "Boleto Accept" msgstr "" +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_discount_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_discount_code_id +msgid "Boleto Discount Code" +msgstr "" + #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_code__code_type__boleto_modality msgid "Boleto Modality" @@ -863,22 +858,22 @@ msgid "Boleto Wallet" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_wallet_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__wallet_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_wallet_code_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__wallet_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__wallet_code_id msgid "Boleto Wallet Code" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_journal__bank_code_bc #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__bank_code_bc +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__bank_code_bc msgid "Brazilian Bank Code" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_journal__bank_code_bc #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__bank_code_bc +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__bank_code_bc msgid "Brazilian Bank Code ex.: 001 is the code of Banco do Brasil" msgstr "" @@ -888,14 +883,14 @@ msgid "Busque CNAB Log" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_byte_idt #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_byte_idt +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_byte_idt msgid "Byte IDT" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_byte_idt #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_byte_idt +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_byte_idt msgid "" "Byte de identificação do cedente do bloqueto utilizado para compor o nosso " "número, usado pelos bancos Sicred/Unicred e Sicoob." @@ -918,14 +913,6 @@ msgstr "" msgid "CNAB - Payment Fields." msgstr "" -#. module: l10n_br_account_payment_order -#: model:ir.actions.act_window,name:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_action -#: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_boleto_wallet_code -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_form_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_search_view -msgid "CNAB Boleto Wallet Code" -msgstr "" - #. module: l10n_br_account_payment_order #: model:ir.actions.act_window,name:l10n_br_account_payment_order.account_move_line_change_act_window msgid "CNAB Change Account Move Line" @@ -937,9 +924,32 @@ msgstr "" #: model:ir.ui.menu,name:l10n_br_account_payment_order.menu_l10n_br_cnab_code #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_form_view #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_search_view +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "CNAB Code" msgstr "" +#. module: l10n_br_account_payment_order +#: model:ir.actions.act_window,name:l10n_br_account_payment_order.l10n_br_cnab_config_action +#: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_config +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_bank_statement_line__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__cnab_config_id +#: model:ir.ui.menu,name:l10n_br_account_payment_order.menu_l10n_br_cnab_config +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_search_view +msgid "CNAB Config" +msgstr "" + +#. module: l10n_br_account_payment_order +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py:0 +#, python-format +msgid "" +"CNAB Config %(cnab_config_name)s in Payment Mode %(payment_mode_name)s don't" +" has %(missing)s for making CNAB change, check if should have." +msgstr "" + #. module: l10n_br_account_payment_order #: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_data_abstract msgid "CNAB Data Abstract" @@ -971,8 +981,7 @@ msgid "CNAB Informations" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_liq_return_move_code_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__liq_return_move_code_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__liq_return_move_code_ids msgid "CNAB Liquidity Return Move Code" msgstr "" @@ -982,82 +991,56 @@ msgid "CNAB Manager" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.actions.act_window,name:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_action -#: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_mov_instruction_code -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_form_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_search_view -msgid "CNAB Movement Instruction Code" -msgstr "" - -#. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cancel_discount_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_cancel_discount_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cancel_discount_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_cancel_discount_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__cancel_discount_code_id msgid "CNAB Movement Instruction Code for Cancel Discount." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cancel_rebate_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_cancel_rebate_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cancel_rebate_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_cancel_rebate_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__cancel_rebate_code_id msgid "CNAB Movement Instruction Code for Cancel Rebate." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__change_maturity_date_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_change_maturity_date_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__change_maturity_date_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_change_maturity_date_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__change_maturity_date_code_id msgid "CNAB Movement Instruction Code for Change Maturity Date." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__change_title_value_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_change_title_value_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__change_title_value_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_change_title_value_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__change_title_value_code_id msgid "CNAB Movement Instruction Code for Change Title Value." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_grant_discount_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__grant_discount_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_grant_discount_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__grant_discount_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__grant_discount_code_id msgid "CNAB Movement Instruction Code for Grant Discount." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_grant_rebate_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__grant_rebate_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_grant_rebate_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__grant_rebate_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__grant_rebate_code_id msgid "CNAB Movement Instruction Code for Grant Rebate." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_protest_title_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__protest_title_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_protest_title_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__protest_title_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__protest_title_code_id msgid "CNAB Movement Instruction Code for Protest Tittle." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_suspend_protest_keep_wallet_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__suspend_protest_keep_wallet_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_suspend_protest_keep_wallet_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__suspend_protest_keep_wallet_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__suspend_protest_keep_wallet_code_id msgid "CNAB Movement Instruction Code for Suspend Protest and Keep in Wallet." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_suspend_protest_write_off_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__suspend_protest_write_off_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_suspend_protest_write_off_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__suspend_protest_write_off_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__suspend_protest_write_off_code_id msgid "CNAB Movement Instruction Code for Suspend Protest and Writte Off." msgstr "" @@ -1101,18 +1084,8 @@ msgid "CNAB Return Lot" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.actions.act_window,name:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_action -#: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_return_move_code -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_form_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_search_view -msgid "CNAB Return Move Code" -msgstr "" - -#. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_search_view #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_search_view +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_search_view msgid "CNAB Type" msgstr "" @@ -1122,33 +1095,33 @@ msgid "CNAB User" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__17 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__17 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__17 msgid "CONTA DE PRESTAÇÃO DE SERVIÇOS" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__06 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__06 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__06 msgid "CONTRATO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__07 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__07 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__07 msgid "COSSEGUROS" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__service_type -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__service_type #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__service_type +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__service_type msgid "Campo G025 do CNAB" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__release_form #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__release_form +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__release_form msgid "Campo G029 do CNAB" msgstr "" @@ -1179,36 +1152,34 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move_line__instruction_move_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move_line__mov_instruction_code_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__instruction_move_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__mov_instruction_code_id msgid "Campo G061 do CNAB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__doc_finality_code -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__doc_finality_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__doc_finality_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__doc_finality_code msgid "Campo P005 do CNAB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__favored_warning -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__favored_warning +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__favored_warning #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__favored_warning msgid "Campo P006 do CNAB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__ted_finality_code -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__ted_finality_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__ted_finality_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__ted_finality_code msgid "Campo P011 do CNAB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__complementary_finality_code -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__complementary_finality_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__complementary_finality_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__complementary_finality_code msgid "Campo P013 do CNAB" msgstr "" @@ -1219,9 +1190,9 @@ msgid "Campo P014 do CNAB" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_company_bank_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__cnab_company_bank_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_company_bank_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__cnab_company_bank_code msgid "" "Campo que tem o Código que identifica a Empresa no Banco e que\n" " tem na maioria dos casos o tamanho 20, devido a falta de padrão entre\n" @@ -1235,18 +1206,14 @@ msgid "Cancel" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cancel_discount_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_cancel_discount_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cancel_discount_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_cancel_discount_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cancel_discount_code_id msgid "Cancel Discount Instruction Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cancel_rebate_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_cancel_rebate_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cancel_rebate_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_cancel_rebate_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cancel_rebate_code_id msgid "Cancel Rebate Instruction Code" msgstr "" @@ -1261,30 +1228,26 @@ msgid "Cancelar Desconto" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_wallet #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_wallet +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_wallet msgid "Carteira" msgstr "" #. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/account_payment_mode.py:0 +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_config.py:0 #, python-format msgid "Carteira no banco Itaú é obrigatória" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__change_maturity_date_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_change_maturity_date_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__change_maturity_date_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_change_maturity_date_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__change_maturity_date_code_id msgid "Change Maturity Date Movement Instruction Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__change_title_value_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_change_title_value_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__change_title_value_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_change_title_value_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__change_title_value_code_id msgid "Change Title Value Movement Instruction Code" msgstr "" @@ -1304,13 +1267,14 @@ msgid "Cheque" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__condition_issuing_paper__2 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__condition_issuing_paper__2 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__condition_issuing_paper__2 msgid "Cliente emite e banco processa" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_processor +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cnab_processor msgid "Cnab Processor" msgstr "" @@ -1331,7 +1295,7 @@ msgid "Cnab500" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Cobranca" msgstr "" @@ -1423,17 +1387,15 @@ msgid "Cobrança Unicred400" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__code msgid "Code" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_bank_statement_line__payment_method_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move__payment_method_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__payment_method_code msgid "Code (Do Not Modify)" msgstr "" @@ -1444,10 +1406,8 @@ msgid "Code Type" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__comment #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__comment -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__comment -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__comment +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__comment msgid "Comment" msgstr "" @@ -1456,6 +1416,11 @@ msgstr "" msgid "Communication Type" msgstr "" +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__company_id +msgid "Company" +msgstr "" + #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_code__code_type__complementary_finality_code msgid "Complementary Finality Code" @@ -1463,14 +1428,14 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__doc_finality_code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__doc_finality_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__doc_finality_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__doc_finality_code msgid "Complemento do Tipo de Serviço" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__communication_2 #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__communication_2 +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__communication_2 msgid "Comunicação para o sacador avalista" msgstr "" @@ -1490,33 +1455,33 @@ msgid "Concluído" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__condition_issuing_paper #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__condition_issuing_paper +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__condition_issuing_paper msgid "Condição Emissão de Papeleta" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração da Multa" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração de Desconto" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração do Juros Mora" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração do Protesto" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração dos Codigos CNAB" msgstr "" @@ -1526,7 +1491,7 @@ msgid "Configurações Brasileiras - CNAB" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configurações Gerais" msgstr "" @@ -1538,32 +1503,32 @@ msgid "Conta Bancária" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__tariff_charge_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__tariff_charge_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__tariff_charge_account_id msgid "Conta Contabil Tarifa Bancaria" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__rebate_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__rebate_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__rebate_account_id msgid "Conta Contabil de Abatimanto" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__discount_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__discount_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__discount_account_id msgid "Conta Contabil de Desconto" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__interest_fee_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__interest_fee_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__interest_fee_account_id msgid "Conta Contabil de Juros Mora e Multa" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__not_payment_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__not_payment_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__not_payment_account_id msgid "Conta Contabil para Não Pagamento/Inadimplência" msgstr "" @@ -1573,65 +1538,61 @@ msgid "Conta cedente" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__rebate_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__rebate_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__rebate_account_id msgid "Conta padrão para Abatimento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__discount_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__discount_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__discount_account_id msgid "Conta padrão para Desconto" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__interest_fee_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__interest_fee_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__interest_fee_account_id msgid "Conta padrão para Juros Mora" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__not_payment_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__not_payment_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__not_payment_account_id msgid "Conta padrão para Não Pagamento/Inadimplência" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__tariff_charge_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__tariff_charge_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__tariff_charge_account_id msgid "Conta padrão para a Tarifa Bancaria" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Contabilidade" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line_cnab_change__create_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__create_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__create_uid +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__create_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__create_uid msgid "Created by" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line_cnab_change__create_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__create_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__create_date +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__create_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__create_date msgid "Created on" msgstr "" @@ -1642,106 +1603,104 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__ted_finality_code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__ted_finality_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__ted_finality_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__ted_finality_code msgid "Código Finalidade da TED" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_protest_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_protest_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_protest_code msgid "" "Código adotado pela FEBRABAN para identificar o tipo de prazo a ser " "considerado para o protesto." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_interest_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_interest_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_interest_code msgid "" "Código adotado pela FEBRABAN para identificação do tipo de pagamento de mora" " de juros." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_fee_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_fee_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_fee_code msgid "" "Código adotado pela FEBRABAN para identificação do tipo de pagamento de " "multa." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_company_bank_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__cnab_company_bank_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_company_bank_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cnab_company_bank_code msgid "Código da Empresa no Banco" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__instruction_move_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__mov_instruction_code_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__instruction_move_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__mov_instruction_code_id msgid "Código da Instrução para Movimento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_interest_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_interest_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_interest_code msgid "Código da Mora" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_fee_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_fee_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_fee_code msgid "Código da Multa" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_protest_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_protest_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_protest_code msgid "Código de Protesto" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Código de Transmissão" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__complementary_finality_code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__complementary_finality_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__complementary_finality_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__complementary_finality_code msgid "Código de finalidade complementar" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Código do Beneficiário" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__convention_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__convention_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__convention_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__convention_code msgid "Código do Convênio" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Código do Convênio Líder" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Código do Convênio no Banco" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__convention_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__convention_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__convention_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__convention_code msgid "" "Código do Convênio, campo com tamanho 7 usado em alguns casos\n" " onde além do 'Código da Empresa tamanho 20' existe esse segundo campo,\n" @@ -1751,26 +1710,26 @@ msgid "" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_post #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_post +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_post msgid "" "Código do Posto da Cooperativa de Crédito, usado pelos bancos Sicred/Unicred" " e Sicoob." msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Códigos de Instrução do Movimento" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Códigos de Retorno do Movimento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__99 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__99 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__99 msgid "DIVERSOS" msgstr "" @@ -1787,20 +1746,20 @@ msgid "DOC Finality Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__15 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__15 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__15 msgid "DOCUMENTO DE DÍVIDA" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__08 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__08 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__08 msgid "DUPLICATA DE SERVIÇO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__01 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__01 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__01 msgid "DUPLICATA MERCANTIL" msgstr "" @@ -1825,8 +1784,8 @@ msgid "Date Maturity" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__generate_own_number #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__generate_own_number +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__generate_own_number msgid "" "Dependendo da carteira, banco, etc. O nosso número pode ser gerado pelo " "banco." @@ -1862,22 +1821,20 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_ir_attachment__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__display_name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__display_name +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__display_name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__display_name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__display_name msgid "Display Name" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__16 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__16 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__16 msgid "ENCARGOS CONDOMINIAIS" msgstr "" @@ -1887,8 +1844,8 @@ msgid "Erro ao exportar" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_species #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_species +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_species msgid "Espécie do Título" msgstr "" @@ -1932,36 +1889,30 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_follower_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_follower_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_follower_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_follower_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_follower_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_follower_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_follower_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_follower_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_follower_ids msgid "Followers" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_channel_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_channel_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_channel_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_channel_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_channel_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_channel_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_channel_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_channel_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_channel_ids msgid "Followers (Channels)" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_partner_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_partner_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_partner_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_partner_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_partner_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_partner_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_partner_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_partner_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_partner_ids msgid "Followers (Partners)" msgstr "" @@ -1971,49 +1922,43 @@ msgid "Font awesome icon e.g. fa-tasks" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__release_form #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__release_form +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__release_form msgid "Forma Lançamento" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Geral" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__generate_own_number #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__generate_own_number +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__generate_own_number msgid "Gerar nosso número?" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__invoice_print #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__invoice_print +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__invoice_print msgid "Gerar relatorio na conclusão da fatura?" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_grant_discount_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__grant_discount_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_grant_discount_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__grant_discount_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__grant_discount_code_id msgid "Grant Discount Instruction Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_grant_rebate_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__grant_rebate_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_grant_rebate_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__grant_rebate_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__grant_rebate_code_id msgid "Grant Rebate Instruction Code" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_search_view #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_search_view +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_search_view msgid "Group By..." msgstr "" @@ -2035,16 +1980,14 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_ir_attachment__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__id msgid "ID" msgstr "" @@ -2074,30 +2017,24 @@ msgstr "" #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_unread #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_needaction #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_unread -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_needaction -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_unread #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_needaction #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_unread +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_needaction +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_unread #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_needaction #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_unread -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_needaction -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_unread #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_needaction #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_unread -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_needaction -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_unread msgid "If checked, new messages require your attention." msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_has_error #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_has_error -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_has_error #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_has_error +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_has_error #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_has_error -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_has_error #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_has_error -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_has_error msgid "If checked, some messages have a delivery error." msgstr "" @@ -2141,7 +2078,7 @@ msgstr "" #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_bank_statement_line__eval_payment_mode_instructions #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move__eval_payment_mode_instructions #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment__eval_payment_mode_instructions -msgid "Instruções Ordem de Pagamento configuradas no Modo de pagamento" +msgid "Instruções Ordem de Pagamento configuradas na Configuração do CNAB" msgstr "" #. module: l10n_br_account_payment_order @@ -2156,8 +2093,8 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move__instructions #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__instructions #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment__instructions -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__instructions #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__instructions +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__instructions msgid "Instruções de cobrança" msgstr "" @@ -2182,12 +2119,10 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_is_follower #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_is_follower -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_is_follower #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_is_follower +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_is_follower #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_is_follower -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_is_follower #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_is_follower -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_is_follower msgid "Is Follower" msgstr "" @@ -2230,8 +2165,8 @@ msgid "Justificativa" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__09 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__09 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__09 msgid "LETRA DE CÂMBIO" msgstr "" @@ -2248,44 +2183,38 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_ir_attachment____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields____last_update -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code____last_update +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract____last_update -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot____last_update -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code____last_update msgid "Last Modified on" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line_cnab_change__write_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__write_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__write_uid +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__write_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__write_uid msgid "Last Updated by" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line_cnab_change__write_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__write_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__write_date +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__write_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__write_date msgid "Last Updated on" msgstr "" @@ -2316,20 +2245,18 @@ msgid "Lote" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__04 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__04 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__04 msgid "MENSALIDADE ESCOLAR" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_main_attachment_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_main_attachment_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_main_attachment_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_main_attachment_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_main_attachment_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_main_attachment_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_main_attachment_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_main_attachment_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_main_attachment_id msgid "Main Attachment" msgstr "" @@ -2341,24 +2268,20 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_has_error #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_has_error -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_has_error #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_has_error +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_has_error #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_has_error -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_has_error #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_has_error -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_has_error msgid "Message Delivery error" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_ids msgid "Messages" msgstr "" @@ -2385,8 +2308,8 @@ msgid "Ml Maturity Date" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_modality #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_modality +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_modality msgid "Modalidade" msgstr "" @@ -2431,30 +2354,28 @@ msgid "My Activity Deadline" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__13 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__13 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__13 msgid "NOTA DE DÉBITOS" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__03 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__03 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__03 msgid "NOTA DE SEGURO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__02 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__02 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__02 msgid "NOTA PROMISSÓRIA" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__name +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__name msgid "Name" msgstr "" @@ -2500,66 +2421,56 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_needaction_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_needaction_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_needaction_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_needaction_counter +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_needaction_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_needaction_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_needaction_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_needaction_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_needaction_counter msgid "Number of Actions" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_has_error_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_has_error_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_has_error_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_has_error_counter +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_has_error_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_has_error_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_has_error_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_has_error_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_has_error_counter msgid "Number of errors" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_needaction_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_needaction_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_needaction_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_needaction_counter +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_needaction_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_needaction_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_needaction_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_needaction_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_needaction_counter msgid "Number of messages which requires an action" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_has_error_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_has_error_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_has_error_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_has_error_counter +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_has_error_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_has_error_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_has_error_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_has_error_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_has_error_counter msgid "Number of messages with delivery error" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_unread_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_unread_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_unread_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_unread_counter +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_unread_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_unread_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_unread_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_unread_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_unread_counter msgid "Number of unread messages" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_accept__n #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_accept__n +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_accept__n msgid "Não" msgstr "" @@ -2569,8 +2480,8 @@ msgid "Não aceita pelo banco" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_days_protest #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_days_protest +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_days_protest msgid "Número de Dias para Protesto" msgstr "" @@ -2590,8 +2501,8 @@ msgid "Número de Lotes" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_days_protest #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_days_protest +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_days_protest msgid "" "Número de dias decorrentes após a data de vencimento para inicialização do " "processo de cobrança via protesto." @@ -2609,7 +2520,7 @@ msgid "Número sequencial do arquivo" msgstr "" #. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/account_payment_mode.py:0 +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_config.py:0 #, python-format msgid "O percentual deve ser um valor entre 0 a 100." msgstr "" @@ -2625,7 +2536,7 @@ msgid "Ocorrências" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Outras Configurações" msgstr "" @@ -2653,7 +2564,7 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__ted_finality_code______ -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__ted_finality_code______ +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__ted_finality_code______ #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__ted_finality_code______ msgid "Padrão" msgstr "" @@ -2664,13 +2575,13 @@ msgid "Paga" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Pagamento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__own_number_sequence_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__own_number_sequence_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__own_number_sequence_id msgid "" "Para usar essa Sequencia é preciso definir o campo Tipo do Nosso Número como" " Sequencial Único por Carteira no cadastro da empresa" @@ -2689,10 +2600,8 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__payment_method_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__payment_method_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__payment_method_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__payment_method_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__payment_method_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__payment_method_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__payment_method_id msgid "Payment Method" msgstr "" @@ -2704,10 +2613,7 @@ msgid "Payment Method Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__payment_method_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__payment_method_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__payment_method_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__payment_method_ids msgid "Payment Methods" msgstr "" @@ -2717,14 +2623,6 @@ msgstr "" msgid "Payment Mode" msgstr "" -#. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py:0 -#, python-format -msgid "" -"Payment Mode %(payment_mode_name)s don't has %(missing)s for making " -"CNABchange, check if should have." -msgstr "" - #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__payment_mode_domain #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__payment_mode_domain @@ -2741,6 +2639,11 @@ msgstr "" msgid "Payment Order" msgstr "" +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__payment_type +msgid "Payment Type" +msgstr "" + #. module: l10n_br_account_payment_order #: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py:0 #, python-format @@ -2768,8 +2671,8 @@ msgid "Payments" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_discount_perc #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_discount_perc +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_discount_perc #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move_line__boleto_discount_perc msgid "Percentual de Desconto até a Data de Vencimento" msgstr "" @@ -2780,14 +2683,14 @@ msgid "Percentual de Juros" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_interest_perc #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_interest_perc +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_interest_perc msgid "Percentual de Juros de Mora" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_fee_perc #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_fee_perc +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_fee_perc msgid "Percentual de Multa" msgstr "" @@ -2817,8 +2720,8 @@ msgid "Pix transfer type identification" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_post #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_post +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_post msgid "Posto da Cooperativa de Crédito" msgstr "" @@ -2840,10 +2743,8 @@ msgid "Protest Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_protest_title_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__protest_title_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_protest_title_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__protest_title_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__protest_title_code_id msgid "Protest Tittle Instruction Code" msgstr "" @@ -2858,8 +2759,8 @@ msgid "Quantidade de Registros" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__05 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__05 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__05 msgid "RECIBO" msgstr "" @@ -2910,31 +2811,27 @@ msgid "Segmento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_sending_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__sending_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_sending_code_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__sending_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_sending_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__sending_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_sending_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__sending_code_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__sending_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__sending_code_id msgid "Sending Movement Instruction Code" msgstr "" #. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/account_payment_mode.py:0 +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_config.py:0 #, python-format -msgid "Sequence CNAB Sequence already in use by %(payment_mode)s!" +msgid "Sequence CNAB Sequence already in use by %(cnab_config)s!" msgstr "" #. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/account_payment_mode.py:0 +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_config.py:0 #, python-format -msgid "Sequence Own Number already in use by %(payment_mode)s!" +msgid "Sequence Own Number already in use by %(cnab_config)s!" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_sequence_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cnab_sequence_id msgid "Sequencia do Arquivo CNAB" msgstr "" @@ -2944,8 +2841,8 @@ msgid "Sequencial do Arquivo" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__own_number_sequence_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__own_number_sequence_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__own_number_sequence_id msgid "Sequência do Nosso Número" msgstr "" @@ -2960,8 +2857,8 @@ msgid "Seu Número" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_accept__s #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_accept__s +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_accept__s msgid "Sim" msgstr "" @@ -2986,18 +2883,14 @@ msgid "" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_suspend_protest_keep_wallet_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__suspend_protest_keep_wallet_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_suspend_protest_keep_wallet_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__suspend_protest_keep_wallet_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__suspend_protest_keep_wallet_code_id msgid "Suspend Protest an Keep in Wallet Instruction Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_suspend_protest_write_off_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__suspend_protest_write_off_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_suspend_protest_write_off_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__suspend_protest_write_off_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__suspend_protest_write_off_code_id msgid "Suspend Protest an Writte Off Instruction Code" msgstr "" @@ -3063,13 +2956,6 @@ msgid "" "characters." msgstr "" -#. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_mov_intruction_code.py:0 -#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_return_move_code.py:0 -#, python-format -msgid "The field Code should have two characters." -msgstr "" - #. module: l10n_br_account_payment_order #: code:addons/l10n_br_account_payment_order/models/account_payment_order.py:0 #, python-format @@ -3101,6 +2987,7 @@ msgstr "" #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move_line__payment_method_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__payment_method_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__payment_method_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__payment_method_code msgid "" "This code is used in the code of the Odoo module that handles this payment " "method. Therefore, if you change it, the generation of the payment file may " @@ -3139,8 +3026,8 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__service_type -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__service_type #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__service_type +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__service_type msgid "Tipo de Serviço" msgstr "" @@ -3157,24 +3044,20 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_unread #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_unread -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_unread #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_unread +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_unread #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_unread -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_unread #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_unread -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_unread msgid "Unread Messages" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_unread_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_unread_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_unread_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_unread_counter +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_unread_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_unread_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_unread_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_unread_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_unread_counter msgid "Unread Messages Counter" msgstr "" @@ -3276,8 +3159,8 @@ msgid "Valor do Pagamento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_variation #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_variation +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_variation msgid "Variação" msgstr "" @@ -3294,24 +3177,20 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__website_message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__website_message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__website_message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__website_message_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__website_message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__website_message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__website_message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__website_message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__website_message_ids msgid "Website Messages" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__website_message_ids #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__website_message_ids -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__website_message_ids #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__website_message_ids +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__website_message_ids #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__website_message_ids -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__website_message_ids #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__website_message_ids -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__website_message_ids msgid "Website communication history" msgstr "" @@ -3326,14 +3205,10 @@ msgid "Wizard to create payment lines" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_write_off_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__write_off_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_write_off_code_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__write_off_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_write_off_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__write_off_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_write_off_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__write_off_code_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__write_off_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__write_off_code_id msgid "Write Off Movement Instruction Code" msgstr "" diff --git a/l10n_br_account_payment_order/i18n/pt_BR.po b/l10n_br_account_payment_order/i18n/pt_BR.po index 9cc59cc50d32..b58f8625fb51 100644 --- a/l10n_br_account_payment_order/i18n/pt_BR.po +++ b/l10n_br_account_payment_order/i18n/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-06-10 12:37+0000\n" +"PO-Revision-Date: 2024-09-26 14:06+0000\n" "Last-Translator: Marcel Savegnago \n" "Language-Team: none\n" "Language: pt_BR\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 4.17\n" +"X-Generator: Weblate 5.6.2\n" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__movement_type__0 @@ -23,7 +23,7 @@ msgstr "0 - Indica INCLUSÃO" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__0 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__0 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__0 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__0 #, fuzzy msgid "0 - Não Emite Aviso" @@ -31,23 +31,23 @@ msgstr "0 - Não Emite Aviso" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__01 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__01 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__01 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__01 #, fuzzy msgid "01 - Cobrança" msgstr "01 - Cobrança" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__01 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__01 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__01 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__01 #, fuzzy msgid "01 - Crédito em Conta" msgstr "01 - Crédito em Conta" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__01 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__01 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__01 #, fuzzy msgid "01 - Crédito em Conta Corrente/Salário" msgstr "01 - Crédito em Conta Corrente/Salário" @@ -59,8 +59,8 @@ msgid "01 - Débito em Conta Corrente" msgstr "01 - Débito em Conta Corrente" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__02 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__02 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__02 #, fuzzy msgid "02 - Cheque Pagamento / Administrativo" msgstr "02 - Cheque Pagamento / Administrativo" @@ -72,21 +72,21 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__02 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__02 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__02 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__02 msgid "02 - Pagamento de Aluguel/Condomínio" msgstr "02 - Pagamento de Aluguel/Condomínio" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__03 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__03 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__03 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__03 msgid "03 - Boleto de Pagamento Eletrônico" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__03 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__03 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__03 msgid "03 - DOC/TED (1) (2)" msgstr "" @@ -97,103 +97,103 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__03 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__03 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__03 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__03 msgid "03 - Pagamento de Duplicata/Títulos" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__04 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__04 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__04 msgid "04 - Cartão Salário (somente para Tipo de Serviço = '30')" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__04 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__04 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__04 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__04 msgid "04 - Conciliação Bancária" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__04 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__04 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__04 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__04 msgid "04 - Pagamento de Dividendos" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__05 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__05 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__05 msgid "05 - Crédito em Conta Poupança" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__05 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__05 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__05 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__05 msgid "05 - Débitos" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__05 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__05 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__05 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__05 msgid "05 - Pagamento de Mensalidade Escolar" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__06 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__06 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__06 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__06 msgid "06 - Custódia de Cheques" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__06 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__06 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__06 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__06 msgid "06 - Pagamento de Salários" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__07 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__07 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__07 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__07 msgid "07 - Gestão de Caixa" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__07 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__07 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__07 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__07 msgid "07 - Pagamento a Fornecedores" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__08 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__08 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__08 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__08 msgid "08 - Consulta/Informação Margem" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__08 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__08 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__08 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__08 msgid "08 - Operações de Câmbios/Fundos/Bolsa de Valores" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__09 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__09 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__09 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__09 msgid "09 - Averbação da Consignação/Retenção" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__09 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__09 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__09 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__09 msgid "09 - Repasse de Arrecadação/Pagamento de Tributos" msgstr "" @@ -204,135 +204,135 @@ msgid "1 - Indica CONSULTA" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__10 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__10 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__10 msgid "10 - OP à Disposição" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__10 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__10 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__10 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__10 msgid "10 - Pagamento Dividendos" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__10 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__10 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__10 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__10 msgid "10 - Transferência Internacional em Real" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__11 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__11 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__11 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__11 msgid "11 - DOC para Poupança" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__11 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__11 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__11 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__11 msgid "11 - Manutenção da Consignação" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__11 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__11 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__11 msgid "11 - Pagamento de Contas e Tributos com Código de Barras" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__12 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__12 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__12 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__12 msgid "12 - Consignação de Parcelas" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__12 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__12 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__12 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__12 msgid "12 - DOC para Depósito Judicial" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__13 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__13 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__13 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__13 msgid "13 - Glosa da Consignação (INSS)" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__13 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__13 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__13 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__13 msgid "13 - Outros" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__14 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__14 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__14 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__14 msgid "14 - Consulta de Tributos a pagar" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__16 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__16 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__16 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__16 msgid "16 - Pagamento de bolsa auxílio" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__16 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__16 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__16 msgid "16 - Tributo - DARF Normal" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__17 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__17 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__17 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__17 msgid "17 - Remuneração à cooperado" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__17 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__17 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__17 msgid "17 - Tributo - GPS (Guia da Previdência Social)" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__18 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__18 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__18 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__18 msgid "18 - Pagamento de honorários" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__18 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__18 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__18 msgid "18 - Tributo - DARF Simples" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__doc_finality_code__19 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__doc_finality_code__19 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__doc_finality_code__19 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__doc_finality_code__19 msgid "19 - Pagamento de prebenda (Remuneração a padres e sacerdotes)" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__19 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__19 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__19 msgid "19 - Tributo - IPTU – Prefeituras" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__2 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__2 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__2 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__2 msgid "2 - Emite Aviso Somente para o Remetente" msgstr "" @@ -344,91 +344,91 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__20 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__20 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__20 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__20 msgid "20 - Pagamento Fornecedor" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__20 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__20 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__20 msgid "20 - Pagamento com Autenticação" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__21 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__21 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__21 msgid "21 - Tributo – DARJ" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__22 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__22 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__22 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__22 msgid "22 - Pagamento de Contas, Tributos e Impostos" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__22 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__22 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__22 msgid "22 - Tributo - GARE-SP ICMS" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__23 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__23 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__23 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__23 msgid "23 - Interoperabilidade entre Contas de Instituições de Pagamentos" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__23 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__23 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__23 msgid "23 - Tributo - GARE-SP DR" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__24 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__24 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__24 msgid "24 - Tributo - GARE-SP ITCMD" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__25 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__25 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__25 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__25 msgid "25 - Compror" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__25 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__25 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__25 msgid "25 - Tributo - IPVA" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__26 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__26 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__26 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__26 msgid "26 - Compror Rotativo" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__26 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__26 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__26 msgid "26 - Tributo - Licenciamento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__27 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__27 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__27 msgid "27 - Tributo – DPVAT" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__29 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__29 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__29 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__29 msgid "29 - Alegação do Pagador" msgstr "" @@ -438,42 +438,42 @@ msgid "3 - Indica ESTORNO (somente para retorno)" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__30 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__30 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__30 msgid "30 - Liquidação de Títulos do Próprio Banco" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__30 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__30 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__30 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__30 msgid "30 - Pagamento Salários" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__31 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__31 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__31 msgid "31 - Pagamento de Títulos de Outros Bancos" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__32 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__32 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__32 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__32 msgid "32 - Pagamento de honorários" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__33 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__33 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__33 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__33 msgid "33 - Pagamento de bolsa auxílio" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__34 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__34 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__34 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__34 msgid "34 - Pagamento de prebenda (remuneração a padres e sacerdotes)" msgstr "" @@ -483,46 +483,46 @@ msgid "4 - Indica REATIVAÇÃO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__40 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__40 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__40 msgid "40 - Extrato de Conta Corrente" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__40 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__40 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__40 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__40 msgid "40 - Vendor" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__41 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__41 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__41 msgid "41 - TED – Outra Titularidade (1)" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__41 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__41 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__41 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__41 msgid "41 - Vendor a Termo" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__43 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__43 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__43 msgid "43 - TED – Mesma Titularidade (1)" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__44 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__44 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__44 msgid "44 - TED para Transferência de Conta Investimento" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__5 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__5 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__5 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__5 msgid "5 - Emite Aviso Somente para o Favorecido" msgstr "" @@ -533,35 +533,35 @@ msgid "5 - Indica ALTERAÇÃO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__50 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__50 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__50 msgid "50 - Débito em Conta Corrente" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__50 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__50 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__50 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__50 msgid "50 - Pagamento Sinistros Segurados" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__6 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__6 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__6 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__6 msgid "6 - Emite Aviso para o Remetente e Favorecido" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__60 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__60 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__60 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__60 msgid "60 - Pagamento Despesas Viajante em Trânsito" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__favored_warning__7 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__favored_warning__7 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__favored_warning__7 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__favored_warning__7 msgid "7 - Emite Aviso para o Favorecido e 2 Vias para o Remetente" msgstr "" @@ -572,54 +572,54 @@ msgid "7 - Indica LIQUIDAÇAO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__70 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__70 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__70 msgid "70 - Extrato para Gestão de Caixa" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__70 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__70 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__70 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__70 msgid "70 - Pagamento Autorizado" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__71 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__71 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__71 msgid "71 - Depósito Judicial em Conta Corrente" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__72 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__72 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__72 msgid "72 - Depósito Judicial em Poupança" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__release_form__73 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__release_form__73 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__release_form__73 msgid "73 - Extrato de Conta Investimento" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__75 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__75 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__75 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__75 msgid "75 - Pagamento Credenciados" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__77 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__77 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__77 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__77 msgid "77 - Pagamento de Remuneração" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__80 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__80 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__80 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__80 msgid "80 - Pagamento Representantes / Vendedores Autorizados" msgstr "" @@ -630,15 +630,15 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__90 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__90 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__90 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__90 msgid "90 - Pagamento Benefícios" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__service_type__98 -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__service_type__98 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_order__service_type__98 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__service_type__98 msgid "98 - Pagamentos Diversos" msgstr "" @@ -665,20 +665,18 @@ msgid "Aceita em Homologação" msgstr "Aceita em Homologação" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_accept #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_accept +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_accept msgid "Aceite" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_needaction #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_needaction -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_needaction #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_needaction +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_needaction #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_needaction -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_needaction #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_needaction -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_needaction msgid "Action Needed" msgstr "Ação Necessária" @@ -746,18 +744,16 @@ msgstr "Anexo" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_attachment_count #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_attachment_count -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_attachment_count #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_attachment_count +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_attachment_count #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_attachment_count -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_attachment_count #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_attachment_count -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_attachment_count msgid "Attachment Count" msgstr "Contagem de Anexos" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__favored_warning -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__favored_warning +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__favored_warning #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__favored_warning msgid "Aviso ao Favorecido" msgstr "" @@ -784,49 +780,42 @@ msgid "Baixa por Não Pagamento/Inadimplência" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Banco Bradesco" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Banco Santander" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Banco do Brasil" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__condition_issuing_paper__1 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__condition_issuing_paper__1 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__condition_issuing_paper__1 msgid "Banco emite e Processa" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Bancos SICRED ou SICOOB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__bank_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__bank_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__bank_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__bank_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__bank_id -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_search_view +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__bank_id #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_search_view +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_search_view msgid "Bank" msgstr "Banco" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__bank_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__bank_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__bank_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__bank_ids msgid "Banks" msgstr "Bancos" @@ -847,6 +836,12 @@ msgstr "" msgid "Boleto Accept" msgstr "" +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_discount_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_discount_code_id +msgid "Boleto Discount Code" +msgstr "" + #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_code__code_type__boleto_modality msgid "Boleto Modality" @@ -875,22 +870,22 @@ msgid "Boleto Wallet" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_wallet_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__wallet_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_wallet_code_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__wallet_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__wallet_code_id msgid "Boleto Wallet Code" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_journal__bank_code_bc #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__bank_code_bc +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__bank_code_bc msgid "Brazilian Bank Code" msgstr "Código de Banco Brasileiro" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_journal__bank_code_bc #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__bank_code_bc +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__bank_code_bc msgid "Brazilian Bank Code ex.: 001 is the code of Banco do Brasil" msgstr "Código de Banco Brasileiro ex. 001 é o código do Banco do Brasil" @@ -900,14 +895,14 @@ msgid "Busque CNAB Log" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_byte_idt #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_byte_idt +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_byte_idt msgid "Byte IDT" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_byte_idt #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_byte_idt +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_byte_idt msgid "" "Byte de identificação do cedente do bloqueto utilizado para compor o nosso " "número, usado pelos bancos Sicred/Unicred e Sicoob." @@ -931,14 +926,6 @@ msgstr "CNAB - Campos do Boleto." msgid "CNAB - Payment Fields." msgstr "CNAB -Campos de Pagamento." -#. module: l10n_br_account_payment_order -#: model:ir.actions.act_window,name:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_action -#: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_boleto_wallet_code -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_form_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_search_view -msgid "CNAB Boleto Wallet Code" -msgstr "" - #. module: l10n_br_account_payment_order #: model:ir.actions.act_window,name:l10n_br_account_payment_order.account_move_line_change_act_window msgid "CNAB Change Account Move Line" @@ -950,9 +937,32 @@ msgstr "Linha do Movimento Contábil da Mudança CNAB" #: model:ir.ui.menu,name:l10n_br_account_payment_order.menu_l10n_br_cnab_code #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_form_view #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_search_view +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "CNAB Code" msgstr "" +#. module: l10n_br_account_payment_order +#: model:ir.actions.act_window,name:l10n_br_account_payment_order.l10n_br_cnab_config_action +#: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_config +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_bank_statement_line__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_config_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__cnab_config_id +#: model:ir.ui.menu,name:l10n_br_account_payment_order.menu_l10n_br_cnab_config +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_search_view +msgid "CNAB Config" +msgstr "" + +#. module: l10n_br_account_payment_order +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py:0 +#, python-format +msgid "" +"CNAB Config %(cnab_config_name)s in Payment Mode %(payment_mode_name)s don't " +"has %(missing)s for making CNAB change, check if should have." +msgstr "" + #. module: l10n_br_account_payment_order #: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_data_abstract msgid "CNAB Data Abstract" @@ -984,8 +994,7 @@ msgid "CNAB Informations" msgstr "Informações do CNAB" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_liq_return_move_code_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__liq_return_move_code_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__liq_return_move_code_ids msgid "CNAB Liquidity Return Move Code" msgstr "Código do Movimento do Retorno de Liquidação do CNAB" @@ -995,84 +1004,58 @@ msgid "CNAB Manager" msgstr "Gerente CNAB" #. module: l10n_br_account_payment_order -#: model:ir.actions.act_window,name:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_action -#: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_mov_instruction_code -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_form_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_search_view -msgid "CNAB Movement Instruction Code" -msgstr "Código de Instrução de Movimento CNAB" - -#. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cancel_discount_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_cancel_discount_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cancel_discount_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_cancel_discount_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__cancel_discount_code_id msgid "CNAB Movement Instruction Code for Cancel Discount." msgstr "Código de Instrução de Movimento CNAB para Cancelar Desconto." #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cancel_rebate_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_cancel_rebate_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cancel_rebate_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_cancel_rebate_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__cancel_rebate_code_id msgid "CNAB Movement Instruction Code for Cancel Rebate." msgstr "Código de Instrução de Movimento CNAB Cancelar Abatimento." #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__change_maturity_date_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_change_maturity_date_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__change_maturity_date_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_change_maturity_date_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__change_maturity_date_code_id msgid "CNAB Movement Instruction Code for Change Maturity Date." msgstr "Código de Instrução de Movimento CNAB para Alterar data de Vencimento." #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__change_title_value_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_change_title_value_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__change_title_value_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_change_title_value_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__change_title_value_code_id msgid "CNAB Movement Instruction Code for Change Title Value." msgstr "Código de Instrução de Movimento CNAB para Alterar Valor do Título." #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_grant_discount_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__grant_discount_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_grant_discount_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__grant_discount_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__grant_discount_code_id msgid "CNAB Movement Instruction Code for Grant Discount." msgstr "Código de Instrução de Movimento CNAB para Conceder Desconto." #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_grant_rebate_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__grant_rebate_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_grant_rebate_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__grant_rebate_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__grant_rebate_code_id msgid "CNAB Movement Instruction Code for Grant Rebate." msgstr "Código de Instrução de Movimento CNAB para Conceder Abatimento." #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_protest_title_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__protest_title_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_protest_title_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__protest_title_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__protest_title_code_id msgid "CNAB Movement Instruction Code for Protest Tittle." msgstr "Código de Instrução de Movimento CNAB para Protestar Título." #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_suspend_protest_keep_wallet_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__suspend_protest_keep_wallet_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_suspend_protest_keep_wallet_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__suspend_protest_keep_wallet_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__suspend_protest_keep_wallet_code_id msgid "CNAB Movement Instruction Code for Suspend Protest and Keep in Wallet." msgstr "" "Código de Instrução de Movimento CNAB para Suspender Protesto e Manter em " "Carteira." #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_suspend_protest_write_off_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__suspend_protest_write_off_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_suspend_protest_write_off_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__suspend_protest_write_off_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__suspend_protest_write_off_code_id msgid "CNAB Movement Instruction Code for Suspend Protest and Writte Off." msgstr "" "Código de Instrução de Movimento CNAB para Suspender Proteste e Liquidar." @@ -1119,18 +1102,8 @@ msgid "CNAB Return Lot" msgstr "Lote de Retorno de CNAB" #. module: l10n_br_account_payment_order -#: model:ir.actions.act_window,name:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_action -#: model:ir.model,name:l10n_br_account_payment_order.model_l10n_br_cnab_return_move_code -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_form_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_search_view -msgid "CNAB Return Move Code" -msgstr "Código de Movimento de Retorno CNAB" - -#. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_search_view #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_search_view +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_search_view msgid "CNAB Type" msgstr "Tipo de CNAB" @@ -1140,33 +1113,33 @@ msgid "CNAB User" msgstr "Usuário CNAB" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__17 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__17 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__17 msgid "CONTA DE PRESTAÇÃO DE SERVIÇOS" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__06 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__06 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__06 msgid "CONTRATO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__07 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__07 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__07 msgid "COSSEGUROS" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__service_type -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__service_type #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__service_type +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__service_type msgid "Campo G025 do CNAB" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__release_form #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__release_form +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__release_form msgid "Campo G029 do CNAB" msgstr "" @@ -1197,36 +1170,34 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move_line__instruction_move_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move_line__mov_instruction_code_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__instruction_move_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__mov_instruction_code_id msgid "Campo G061 do CNAB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__doc_finality_code -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__doc_finality_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__doc_finality_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__doc_finality_code msgid "Campo P005 do CNAB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__favored_warning -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__favored_warning +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__favored_warning #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__favored_warning msgid "Campo P006 do CNAB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__ted_finality_code -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__ted_finality_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__ted_finality_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__ted_finality_code msgid "Campo P011 do CNAB" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__complementary_finality_code -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__complementary_finality_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__complementary_finality_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__complementary_finality_code msgid "Campo P013 do CNAB" msgstr "" @@ -1237,9 +1208,9 @@ msgid "Campo P014 do CNAB" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_company_bank_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__cnab_company_bank_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_company_bank_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__cnab_company_bank_code msgid "" "Campo que tem o Código que identifica a Empresa no Banco e que\n" " tem na maioria dos casos o tamanho 20, devido a falta de padrão " @@ -1256,18 +1227,14 @@ msgid "Cancel" msgstr "Cancelar" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cancel_discount_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_cancel_discount_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cancel_discount_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_cancel_discount_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cancel_discount_code_id msgid "Cancel Discount Instruction Code" msgstr "Código de Instrução de Desconto Cancelado" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cancel_rebate_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_cancel_rebate_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cancel_rebate_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_cancel_rebate_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cancel_rebate_code_id msgid "Cancel Rebate Instruction Code" msgstr "" @@ -1282,30 +1249,26 @@ msgid "Cancelar Desconto" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_wallet #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_wallet +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_wallet msgid "Carteira" msgstr "" #. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/account_payment_mode.py:0 +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_config.py:0 #, python-format msgid "Carteira no banco Itaú é obrigatória" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__change_maturity_date_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_change_maturity_date_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__change_maturity_date_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_change_maturity_date_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__change_maturity_date_code_id msgid "Change Maturity Date Movement Instruction Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__change_title_value_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_change_title_value_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__change_title_value_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_change_title_value_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__change_title_value_code_id msgid "Change Title Value Movement Instruction Code" msgstr "" @@ -1325,13 +1288,14 @@ msgid "Cheque" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__condition_issuing_paper__2 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__condition_issuing_paper__2 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__condition_issuing_paper__2 msgid "Cliente emite e banco processa" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_processor +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cnab_processor msgid "Cnab Processor" msgstr "" @@ -1352,7 +1316,7 @@ msgid "Cnab500" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Cobranca" msgstr "" @@ -1444,17 +1408,15 @@ msgid "Cobrança Unicred400" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__code msgid "Code" msgstr "Código" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_bank_statement_line__payment_method_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move__payment_method_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__payment_method_code msgid "Code (Do Not Modify)" msgstr "" @@ -1465,10 +1427,8 @@ msgid "Code Type" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__comment #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__comment -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__comment -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__comment +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__comment msgid "Comment" msgstr "Comentário" @@ -1477,6 +1437,11 @@ msgstr "Comentário" msgid "Communication Type" msgstr "Tipo de Comunicação" +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__company_id +msgid "Company" +msgstr "Empresa" + #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_code__code_type__complementary_finality_code msgid "Complementary Finality Code" @@ -1484,14 +1449,14 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__doc_finality_code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__doc_finality_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__doc_finality_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__doc_finality_code msgid "Complemento do Tipo de Serviço" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__communication_2 #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__communication_2 +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__communication_2 msgid "Comunicação para o sacador avalista" msgstr "" @@ -1511,33 +1476,33 @@ msgid "Concluído" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__condition_issuing_paper #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__condition_issuing_paper +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__condition_issuing_paper msgid "Condição Emissão de Papeleta" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração da Multa" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração de Desconto" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração do Juros Mora" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração do Protesto" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configuração dos Codigos CNAB" msgstr "" @@ -1547,7 +1512,7 @@ msgid "Configurações Brasileiras - CNAB" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Configurações Gerais" msgstr "" @@ -1559,32 +1524,32 @@ msgid "Conta Bancária" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__tariff_charge_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__tariff_charge_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__tariff_charge_account_id msgid "Conta Contabil Tarifa Bancaria" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__rebate_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__rebate_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__rebate_account_id msgid "Conta Contabil de Abatimanto" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__discount_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__discount_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__discount_account_id msgid "Conta Contabil de Desconto" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__interest_fee_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__interest_fee_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__interest_fee_account_id msgid "Conta Contabil de Juros Mora e Multa" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__not_payment_account_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__not_payment_account_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__not_payment_account_id msgid "Conta Contabil para Não Pagamento/Inadimplência" msgstr "" @@ -1594,65 +1559,61 @@ msgid "Conta cedente" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__rebate_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__rebate_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__rebate_account_id msgid "Conta padrão para Abatimento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__discount_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__discount_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__discount_account_id msgid "Conta padrão para Desconto" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__interest_fee_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__interest_fee_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__interest_fee_account_id msgid "Conta padrão para Juros Mora" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__not_payment_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__not_payment_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__not_payment_account_id msgid "Conta padrão para Não Pagamento/Inadimplência" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__tariff_charge_account_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__tariff_charge_account_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__tariff_charge_account_id msgid "Conta padrão para a Tarifa Bancaria" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Contabilidade" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line_cnab_change__create_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__create_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__create_uid +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__create_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__create_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__create_uid msgid "Created by" msgstr "Criado por" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line_cnab_change__create_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__create_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__create_date +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__create_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__create_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__create_date msgid "Created on" msgstr "Criado em" @@ -1663,106 +1624,104 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__ted_finality_code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__ted_finality_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__ted_finality_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__ted_finality_code msgid "Código Finalidade da TED" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_protest_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_protest_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_protest_code msgid "" "Código adotado pela FEBRABAN para identificar o tipo de prazo a ser " "considerado para o protesto." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_interest_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_interest_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_interest_code msgid "" "Código adotado pela FEBRABAN para identificação do tipo de pagamento de mora " "de juros." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_fee_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_fee_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_fee_code msgid "" "Código adotado pela FEBRABAN para identificação do tipo de pagamento de " "multa." msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_company_bank_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__cnab_company_bank_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_company_bank_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cnab_company_bank_code msgid "Código da Empresa no Banco" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__instruction_move_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__mov_instruction_code_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__instruction_move_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__mov_instruction_code_id msgid "Código da Instrução para Movimento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_interest_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_interest_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_interest_code msgid "Código da Mora" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_fee_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_fee_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_fee_code msgid "Código da Multa" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_protest_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_protest_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_protest_code msgid "Código de Protesto" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Código de Transmissão" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__complementary_finality_code -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__complementary_finality_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__complementary_finality_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__complementary_finality_code msgid "Código de finalidade complementar" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Código do Beneficiário" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__convention_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__convention_code #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__convention_code +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__convention_code msgid "Código do Convênio" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Código do Convênio Líder" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Código do Convênio no Banco" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__convention_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__convention_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__convention_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__convention_code msgid "" "Código do Convênio, campo com tamanho 7 usado em alguns casos\n" " onde além do 'Código da Empresa tamanho 20' existe esse segundo " @@ -1774,26 +1733,26 @@ msgid "" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_post #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_post +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_post msgid "" "Código do Posto da Cooperativa de Crédito, usado pelos bancos Sicred/Unicred " "e Sicoob." msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Códigos de Instrução do Movimento" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Códigos de Retorno do Movimento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__99 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__99 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__99 msgid "DIVERSOS" msgstr "" @@ -1810,20 +1769,20 @@ msgid "DOC Finality Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__15 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__15 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__15 msgid "DOCUMENTO DE DÍVIDA" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__08 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__08 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__08 msgid "DUPLICATA DE SERVIÇO" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__01 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__01 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__01 msgid "DUPLICATA MERCANTIL" msgstr "" @@ -1848,8 +1807,8 @@ msgid "Date Maturity" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__generate_own_number #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__generate_own_number +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__generate_own_number msgid "" "Dependendo da carteira, banco, etc. O nosso número pode ser gerado pelo " "banco." @@ -1885,22 +1844,20 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_ir_attachment__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__display_name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__display_name +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__display_name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__display_name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__display_name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__display_name msgid "Display Name" msgstr "Nome Exibido" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__16 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__16 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__16 msgid "ENCARGOS CONDOMINIAIS" msgstr "" @@ -1910,8 +1867,8 @@ msgid "Erro ao exportar" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_species #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_species +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_species msgid "Espécie do Título" msgstr "" @@ -1955,36 +1912,30 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_follower_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_follower_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_follower_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_follower_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_follower_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_follower_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_follower_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_follower_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_follower_ids msgid "Followers" msgstr "Seguidores" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_channel_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_channel_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_channel_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_channel_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_channel_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_channel_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_channel_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_channel_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_channel_ids msgid "Followers (Channels)" msgstr "Seguidores (Canais)" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_partner_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_partner_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_partner_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_partner_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_partner_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_partner_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_partner_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_partner_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_partner_ids msgid "Followers (Partners)" msgstr "Seguidores (Parceiros)" @@ -1994,49 +1945,43 @@ msgid "Font awesome icon e.g. fa-tasks" msgstr "Ícone do font awesome ex. fa-task" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__release_form #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__release_form +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__release_form msgid "Forma Lançamento" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Geral" msgstr "Geral" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__generate_own_number #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__generate_own_number +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__generate_own_number msgid "Gerar nosso número?" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__invoice_print #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__invoice_print +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__invoice_print msgid "Gerar relatorio na conclusão da fatura?" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_grant_discount_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__grant_discount_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_grant_discount_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__grant_discount_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__grant_discount_code_id msgid "Grant Discount Instruction Code" msgstr "Código de Instrução de Desconto Concedido" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_grant_rebate_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__grant_rebate_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_grant_rebate_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__grant_rebate_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__grant_rebate_code_id msgid "Grant Rebate Instruction Code" msgstr "Código de Instrução de Abatimento Concedido" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_boleto_wallet_code_search_view #: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_mov_instruction_code_search_view -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_return_move_code_search_view +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_search_view msgid "Group By..." msgstr "Agrupar Por..." @@ -2058,16 +2003,14 @@ msgstr "Ajuda você lidar com suas necessidades do CNAB." #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_ir_attachment__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__id msgid "ID" msgstr "ID" @@ -2097,30 +2040,24 @@ msgstr "" #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_unread #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_needaction #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_unread -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_needaction -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_unread #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_needaction #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_unread +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_needaction +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_unread #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_needaction #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_unread -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_needaction -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_unread #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_needaction #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_unread -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_needaction -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_unread msgid "If checked, new messages require your attention." msgstr "Se marcado, novas mensagens solicitarão sua atenção." #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_has_error #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_has_error -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_has_error #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_has_error +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_has_error #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_has_error -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_has_error #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_has_error -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_has_error msgid "If checked, some messages have a delivery error." msgstr "Se marcado, algumas mensagens tem erro de entrega." @@ -2164,7 +2101,7 @@ msgstr "" #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_bank_statement_line__eval_payment_mode_instructions #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move__eval_payment_mode_instructions #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment__eval_payment_mode_instructions -msgid "Instruções Ordem de Pagamento configuradas no Modo de pagamento" +msgid "Instruções Ordem de Pagamento configuradas na Configuração do CNAB" msgstr "" #. module: l10n_br_account_payment_order @@ -2179,8 +2116,8 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move__instructions #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__instructions #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment__instructions -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__instructions #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__instructions +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__instructions msgid "Instruções de cobrança" msgstr "" @@ -2205,12 +2142,10 @@ msgstr "É CNAB?" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_is_follower #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_is_follower -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_is_follower #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_is_follower +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_is_follower #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_is_follower -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_is_follower #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_is_follower -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_is_follower msgid "Is Follower" msgstr "É um seguidor" @@ -2253,8 +2188,8 @@ msgid "Justificativa" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__09 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__09 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__09 msgid "LETRA DE CÂMBIO" msgstr "" @@ -2271,44 +2206,38 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_ir_attachment____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields____last_update -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code____last_update +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract____last_update -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_payment_fields____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log____last_update #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot____last_update -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code____last_update msgid "Last Modified on" msgstr "Última Modificação em" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line_cnab_change__write_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__write_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__write_uid +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__write_uid #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__write_uid -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__write_uid msgid "Last Updated by" msgstr "Última Atualização por" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line_cnab_change__write_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_change_methods__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__write_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__write_date +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_event__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__write_date #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_lot__write_date -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__write_date msgid "Last Updated on" msgstr "Última Atualização em" @@ -2339,20 +2268,18 @@ msgid "Lote" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__04 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__04 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__04 msgid "MENSALIDADE ESCOLAR" msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_main_attachment_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_main_attachment_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_main_attachment_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_main_attachment_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_main_attachment_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_main_attachment_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_main_attachment_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_main_attachment_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_main_attachment_id msgid "Main Attachment" msgstr "Anexo Principal" @@ -2364,24 +2291,20 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_has_error #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_has_error -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_has_error #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_has_error +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_has_error #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_has_error -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_has_error #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_has_error -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_has_error msgid "Message Delivery error" msgstr "Erro de Entrega da Mensagem" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_ids msgid "Messages" msgstr "Mensagens" @@ -2408,8 +2331,8 @@ msgid "Ml Maturity Date" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_modality #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_modality +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_modality msgid "Modalidade" msgstr "" @@ -2446,7 +2369,7 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line_cnab_change__account_move_line_ids msgid "Move Line" -msgstr "" +msgstr "Linha de Movimento" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__my_activity_date_deadline @@ -2454,33 +2377,31 @@ msgid "My Activity Deadline" msgstr "Prazo Final das Minhas Atividades" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__13 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__13 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__13 #, fuzzy msgid "NOTA DE DÉBITOS" msgstr "NOTA DE DÉBITOS" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__03 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__03 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__03 #, fuzzy msgid "NOTA DE SEGURO" msgstr "NOTA DE SEGURO" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__02 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__02 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__02 #, fuzzy msgid "NOTA PROMISSÓRIA" msgstr "NOTA PROMISSÓRIA" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__name +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__name #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__name -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__name msgid "Name" msgstr "Nome" @@ -2526,66 +2447,56 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_needaction_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_needaction_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_needaction_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_needaction_counter +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_needaction_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_needaction_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_needaction_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_needaction_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_needaction_counter msgid "Number of Actions" msgstr "Número de Ações" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_has_error_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_has_error_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_has_error_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_has_error_counter +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_has_error_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_has_error_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_has_error_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_has_error_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_has_error_counter msgid "Number of errors" msgstr "Número de erros" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_needaction_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_needaction_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_needaction_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_needaction_counter +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_needaction_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_needaction_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_needaction_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_needaction_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_needaction_counter msgid "Number of messages which requires an action" msgstr "Número de mensagens que requerem uma ação" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_has_error_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_has_error_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_has_error_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_has_error_counter +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_has_error_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_has_error_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_has_error_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_has_error_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_has_error_counter msgid "Number of messages with delivery error" msgstr "Número de mensagens com erro de entrega" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__message_unread_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_unread_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_unread_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_unread_counter +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_unread_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_unread_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_unread_counter #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_unread_counter -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_unread_counter msgid "Number of unread messages" msgstr "Número de mensagens não lidas" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_accept__n #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_accept__n +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_accept__n msgid "Não" msgstr "" @@ -2595,8 +2506,8 @@ msgid "Não aceita pelo banco" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_days_protest #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_days_protest +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_days_protest msgid "Número de Dias para Protesto" msgstr "" @@ -2616,8 +2527,8 @@ msgid "Número de Lotes" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__boleto_days_protest #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_days_protest +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_days_protest msgid "" "Número de dias decorrentes após a data de vencimento para inicialização do " "processo de cobrança via protesto." @@ -2635,7 +2546,7 @@ msgid "Número sequencial do arquivo" msgstr "" #. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/account_payment_mode.py:0 +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_config.py:0 #, python-format msgid "O percentual deve ser um valor entre 0 a 100." msgstr "" @@ -2651,7 +2562,7 @@ msgid "Ocorrências" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Outras Configurações" msgstr "" @@ -2679,7 +2590,7 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_line__ted_finality_code______ -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__ted_finality_code______ +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__ted_finality_code______ #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_payment_fields__ted_finality_code______ msgid "Padrão" msgstr "" @@ -2690,13 +2601,13 @@ msgid "Paga" msgstr "" #. module: l10n_br_account_payment_order -#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_account_payment_mode_form +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br_cnab_config_form_view msgid "Pagamento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__own_number_sequence_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__own_number_sequence_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__own_number_sequence_id msgid "" "Para usar essa Sequencia é preciso definir o campo Tipo do Nosso Número como " "Sequencial Único por Carteira no cadastro da empresa" @@ -2715,10 +2626,8 @@ msgstr "Linhas de Pagamento" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__payment_method_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__payment_method_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__payment_method_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__payment_method_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__payment_method_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__payment_method_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__payment_method_id msgid "Payment Method" msgstr "Método de Pagamento" @@ -2730,10 +2639,7 @@ msgid "Payment Method Code" msgstr "Código do Método de Pagamento" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__payment_method_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__payment_method_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__payment_method_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__payment_method_ids msgid "Payment Methods" msgstr "Métodos de Pagamento" @@ -2743,14 +2649,6 @@ msgstr "Métodos de Pagamento" msgid "Payment Mode" msgstr "Modo de Pagamento" -#. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py:0 -#, python-format -msgid "" -"Payment Mode %(payment_mode_name)s don't has %(missing)s for making " -"CNABchange, check if should have." -msgstr "" - #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__payment_mode_domain #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__payment_mode_domain @@ -2767,6 +2665,11 @@ msgstr "Modos de Pagamento" msgid "Payment Order" msgstr "Ordem de Pagamento" +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__payment_type +msgid "Payment Type" +msgstr "Tipo de Pagamento" + #. module: l10n_br_account_payment_order #: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py:0 #, python-format @@ -2797,8 +2700,8 @@ msgid "Payments" msgstr "Pagamentos" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_discount_perc #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_discount_perc +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_discount_perc #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move_line__boleto_discount_perc msgid "Percentual de Desconto até a Data de Vencimento" msgstr "" @@ -2809,14 +2712,14 @@ msgid "Percentual de Juros" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_interest_perc #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_interest_perc +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_interest_perc msgid "Percentual de Juros de Mora" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_fee_perc #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_fee_perc +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_fee_perc msgid "Percentual de Multa" msgstr "" @@ -2846,8 +2749,8 @@ msgid "Pix transfer type identification" msgstr "identificação do tipo de transferência Pix" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_post #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_post +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_post msgid "Posto da Cooperativa de Crédito" msgstr "" @@ -2869,10 +2772,8 @@ msgid "Protest Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_protest_title_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__protest_title_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_protest_title_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__protest_title_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__protest_title_code_id msgid "Protest Tittle Instruction Code" msgstr "" @@ -2887,8 +2788,8 @@ msgid "Quantidade de Registros" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_species__05 #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_species__05 +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_species__05 msgid "RECIBO" msgstr "" @@ -2940,31 +2841,27 @@ msgid "Segmento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_sending_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__sending_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_sending_code_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__sending_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_sending_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__sending_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_sending_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__sending_code_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__sending_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__sending_code_id msgid "Sending Movement Instruction Code" msgstr "Enviando Código de Instrução de Movimento" #. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/account_payment_mode.py:0 +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_config.py:0 #, python-format -msgid "Sequence CNAB Sequence already in use by %(payment_mode)s!" +msgid "Sequence CNAB Sequence already in use by %(cnab_config)s!" msgstr "" #. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/account_payment_mode.py:0 +#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_config.py:0 #, python-format -msgid "Sequence Own Number already in use by %(payment_mode)s!" +msgid "Sequence Own Number already in use by %(cnab_config)s!" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_sequence_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__cnab_sequence_id msgid "Sequencia do Arquivo CNAB" msgstr "" @@ -2974,8 +2871,8 @@ msgid "Sequencial do Arquivo" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__own_number_sequence_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__own_number_sequence_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__own_number_sequence_id msgid "Sequência do Nosso Número" msgstr "" @@ -2990,8 +2887,8 @@ msgid "Seu Número" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__account_payment_mode__boleto_accept__s #: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_boleto_fields__boleto_accept__s +#: model:ir.model.fields.selection,name:l10n_br_account_payment_order.selection__l10n_br_cnab_config__boleto_accept__s msgid "Sim" msgstr "" @@ -3020,18 +2917,14 @@ msgstr "" "Planejado: Atividades futuras." #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_suspend_protest_keep_wallet_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__suspend_protest_keep_wallet_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_suspend_protest_keep_wallet_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__suspend_protest_keep_wallet_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__suspend_protest_keep_wallet_code_id msgid "Suspend Protest an Keep in Wallet Instruction Code" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_code_suspend_protest_write_off_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__suspend_protest_write_off_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_code_suspend_protest_write_off_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__suspend_protest_write_off_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__suspend_protest_write_off_code_id msgid "Suspend Protest an Writte Off Instruction Code" msgstr "" @@ -3099,13 +2992,6 @@ msgid "" "characters." msgstr "" -#. module: l10n_br_account_payment_order -#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_mov_intruction_code.py:0 -#: code:addons/l10n_br_account_payment_order/models/l10n_br_cnab_return_move_code.py:0 -#, python-format -msgid "The field Code should have two characters." -msgstr "A campo Código deve ter dois caracteres." - #. module: l10n_br_account_payment_order #: code:addons/l10n_br_account_payment_order/models/account_payment_order.py:0 #, python-format @@ -3137,6 +3023,7 @@ msgstr "" #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_move_line__payment_method_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_line__payment_method_code #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_order__payment_method_code +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__payment_method_code msgid "" "This code is used in the code of the Odoo module that handles this payment " "method. Therefore, if you change it, the generation of the payment file may " @@ -3178,8 +3065,8 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__service_type -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__service_type #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_order__service_type +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__service_type msgid "Tipo de Serviço" msgstr "" @@ -3196,24 +3083,20 @@ msgstr "Tipo da atividade de exceção no registro." #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_unread #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_unread -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_unread #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_unread +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_unread #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_unread -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_unread #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_unread -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_unread msgid "Unread Messages" msgstr "Mensagens Não Lidas" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__message_unread_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__message_unread_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__message_unread_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__message_unread_counter +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__message_unread_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__message_unread_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__message_unread_counter #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__message_unread_counter -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__message_unread_counter msgid "Unread Messages Counter" msgstr "Contador de Mensagens Não Lidas" @@ -3315,8 +3198,8 @@ msgid "Valor do Pagamento" msgstr "" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__boleto_variation #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__boleto_variation +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__boleto_variation msgid "Variação" msgstr "" @@ -3333,24 +3216,20 @@ msgstr "" #. module: l10n_br_account_payment_order #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__website_message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__website_message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__website_message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_code__website_message_ids +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__website_message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__website_message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__website_message_ids #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__website_message_ids -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__website_message_ids msgid "Website Messages" msgstr "Mensagens do Website" #. module: l10n_br_account_payment_order #: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__website_message_ids #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__website_message_ids -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_wallet_code__website_message_ids #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_code__website_message_ids +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__website_message_ids #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_data_abstract__website_message_ids -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_mov_instruction_code__website_message_ids #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_log__website_message_ids -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_return_move_code__website_message_ids msgid "Website communication history" msgstr "Histórico de comunicação do website" @@ -3365,14 +3244,10 @@ msgid "Wizard to create payment lines" msgstr "Assistente para criar linhas de pagamento" #. module: l10n_br_account_payment_order -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__cnab_write_off_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__write_off_code_id -#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_write_off_code_id #: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__write_off_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__cnab_write_off_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_account_payment_mode__write_off_code_id -#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__cnab_write_off_code_id +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_l10n_br_cnab_config__write_off_code_id #: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_boleto_fields__write_off_code_id +#: model:ir.model.fields,help:l10n_br_account_payment_order.field_l10n_br_cnab_config__write_off_code_id msgid "Write Off Movement Instruction Code" msgstr "Código de Instrução de Movimento de Liquidação" @@ -3393,6 +3268,16 @@ msgstr "Você não pode excluir ordem CNAB." msgid "manual_test" msgstr "" +#~ msgid "CNAB Movement Instruction Code" +#~ msgstr "Código de Instrução de Movimento CNAB" + +#~ msgid "CNAB Return Move Code" +#~ msgstr "Código de Movimento de Retorno CNAB" + +#, python-format +#~ msgid "The field Code should have two characters." +#~ msgstr "A campo Código deve ter dois caracteres." + #~ msgid "Partner" #~ msgstr "Parceiro" diff --git a/l10n_br_account_payment_order/migrations/14.0.3.0.0/post-migration.py b/l10n_br_account_payment_order/migrations/14.0.3.0.0/post-migration.py index b0e90c7a800f..9ed37ac1730e 100644 --- a/l10n_br_account_payment_order/migrations/14.0.3.0.0/post-migration.py +++ b/l10n_br_account_payment_order/migrations/14.0.3.0.0/post-migration.py @@ -36,7 +36,8 @@ def delete_payments_created_from_payment_orders(env): openupgrade.logged_query( env.cr, """ - DELETE FROM account_payment WHERE payment_order_id IS NOT NULL AND payment_method_id IN + DELETE FROM account_payment + WHERE payment_order_id IS NOT NULL AND payment_method_id IN (SELECT id FROM account_payment_method WHERE code IN ('240', '400', '500')); """, ) diff --git a/l10n_br_account_payment_order/migrations/14.0.4.0.0/pre-migration.py b/l10n_br_account_payment_order/migrations/14.0.4.0.0/pre-migration.py index 90b837d05491..cf05d30b7c56 100644 --- a/l10n_br_account_payment_order/migrations/14.0.4.0.0/pre-migration.py +++ b/l10n_br_account_payment_order/migrations/14.0.4.0.0/pre-migration.py @@ -14,7 +14,6 @@ @openupgrade.migrate(use_env=True) def migrate(env, version): - # Apagando o objeto bank.payment.line openupgrade.logged_query( env.cr, diff --git a/l10n_br_account_payment_order/migrations/14.0.6.0.0/post-migration.py b/l10n_br_account_payment_order/migrations/14.0.6.0.0/post-migration.py index 9c08abdec48f..48620fc3153a 100644 --- a/l10n_br_account_payment_order/migrations/14.0.6.0.0/post-migration.py +++ b/l10n_br_account_payment_order/migrations/14.0.6.0.0/post-migration.py @@ -217,7 +217,6 @@ def update_payment_mode_inbound(env): if payment_mode.cnab_liq_return_move_code_ids: liq_codes = env["l10n_br_cnab.code"] for code in payment_mode.cnab_liq_return_move_code_ids: - liq_code = get_new_code(env, payment_mode, code, "return_move_code") liq_codes |= liq_code diff --git a/l10n_br_account_payment_order/migrations/14.0.7.0.0/post-migration.py b/l10n_br_account_payment_order/migrations/14.0.7.0.0/post-migration.py new file mode 100644 index 000000000000..484bde062dc2 --- /dev/null +++ b/l10n_br_account_payment_order/migrations/14.0.7.0.0/post-migration.py @@ -0,0 +1,174 @@ +# Copyright (C) 2024-Today - Akretion (). +# @author Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +def update_payment_mode_inbound(env): + """Atualiza o Modo de Pagamento""" + env.cr.execute( + """ + SELECT id FROM account_payment_mode WHERE payment_method_id IN + (SELECT id FROM account_payment_method WHERE code IN ('240', '400', '500') + AND payment_type = 'inbound'); + """ + ) + for row in env.cr.fetchall(): + payment_mode = env["account.payment.mode"].browse(row[0]) + + # Criação do CNAB Config + cnab_config = env["l10n_br_cnab.config"].create( + { + "name": ( + payment_mode.fixed_journal_id.bank_id.name + + " - CNAB " + + payment_mode.payment_method_id.code + + " (" + + payment_mode.payment_method_id.payment_type + + ")" + ), + "bank_id": payment_mode.fixed_journal_id.bank_id.id, + "payment_method_id": payment_mode.payment_method_id.id, + } + ) + payment_mode.cnab_config_id = cnab_config + + # Atualizando os Codigos CNAB + # Instrução de Envio + cnab_config.sending_code_id = payment_mode.sending_code_id + + # Solicitação de Baixa + cnab_config.write_off_code_id = payment_mode.write_off_code_id + + # Alteração do Valor do título + cnab_config.change_title_value_code_id = payment_mode.change_title_value_code_id + + # Alteração da Data de Vencimento + cnab_config.change_maturity_date_code_id = ( + payment_mode.change_maturity_date_code_id + ) + + # Protesta o Título + cnab_config.protest_title_code_id = payment_mode.protest_title_code_id + + # Suspende o Protesto e mantem a Carteira + cnab_config.suspend_protest_keep_wallet_code_id = ( + payment_mode.suspend_protest_keep_wallet_code_id + ) + + # Suspende o Protesto e Baixa + cnab_config.suspend_protest_write_off_code_id = ( + payment_mode.suspend_protest_write_off_code_id + ) + + # Concede Abatimento + cnab_config.grant_rebate_code_id = payment_mode.grant_rebate_code_id + + # Cancela Abatimento + cnab_config.cancel_rebate_code_id = payment_mode.cancel_rebate_code_id + + # Concede Desconto + cnab_config.grant_discount_code_id = payment_mode.grant_discount_code_id + + # Cancela Disconto + cnab_config.cancel_discount_code_id = payment_mode.cancel_discount_code_id + + # Codigo da Carteira + cnab_config.wallet_code_id = payment_mode.wallet_code_id + + # Codigos de Return + if payment_mode.cnab_liq_return_move_code_ids: + liq_codes = env["l10n_br_cnab.code"] + for code in payment_mode.liq_return_move_code_ids: + liq_codes |= code + + cnab_config.liq_return_move_code_ids = liq_codes + + # Codigos ainda Char + cnab_config.write( + { + "invoice_print": payment_mode.invoice_print, + "instructions": payment_mode.instructions, + "cnab_company_bank_code": payment_mode.cnab_company_bank_code, + "convention_code": payment_mode.convention_code, + "condition_issuing_paper": payment_mode.condition_issuing_paper, + "communication_2": payment_mode.communication_2, + "boleto_wallet": payment_mode.boleto_wallet, + "boleto_modality": payment_mode.boleto_modality, + "boleto_variation": payment_mode.boleto_variation, + "boleto_accept": payment_mode.boleto_accept, + "boleto_species": payment_mode.boleto_species, + "boleto_protest_code": payment_mode.boleto_protest_code, + "boleto_days_protest": payment_mode.boleto_days_protest, + "generate_own_number": payment_mode.generate_own_number, + "own_number_sequence_id": payment_mode.own_number_sequence_id.id, + "cnab_sequence_id": payment_mode.cnab_sequence_id.id, + "boleto_interest_code": payment_mode.boleto_interest_code, + "boleto_interest_perc": payment_mode.boleto_interest_perc, + "boleto_fee_code": payment_mode.boleto_fee_code, + "boleto_fee_perc": payment_mode.boleto_fee_perc, + "boleto_discount_perc": payment_mode.boleto_discount_perc, + "boleto_byte_idt": payment_mode.boleto_byte_idt, + "boleto_post": payment_mode.boleto_post, + } + ) + + # Contas Contabeis + if payment_mode.interest_fee_account_id: + cnab_config.interest_fee_account_id = payment_mode.interest_fee_account_id + if payment_mode.discount_account_id: + cnab_config.discount_account_id = payment_mode.discount_account_id + if payment_mode.rebate_account_id: + cnab_config.rebate_account_id = payment_mode.rebate_account_id + if payment_mode.tariff_charge_account_id: + cnab_config.tariff_charge_account_id = payment_mode.tariff_charge_account_id + if payment_mode.not_payment_account_id: + cnab_config.not_payment_account_id = payment_mode.not_payment_account_id + + +def update_payment_mode_outbound(env): + """Atualiza o Modo de Pagamento Outbound""" + env.cr.execute( + """ + SELECT id FROM account_payment_mode WHERE payment_method_id IN + (SELECT id FROM account_payment_method WHERE code IN ('240', '400', '500') + AND payment_type = 'outbound'); + """ + ) + for row in env.cr.fetchall(): + payment_mode = env["account.payment.mode"].browse(row[0]) + # Criação do CNAB Config + cnab_config = env["l10n_br_cnab.config"].create( + { + "name": ( + payment_mode.fixed_journal_id.bank_id.name + + " - CNAB " + + payment_mode.payment_method_id.code + + " (" + + payment_mode.payment_method_id.payment_type + + ")" + ), + "bank_id": payment_mode.fixed_journal_id.bank_id.id, + "payment_method_id": payment_mode.payment_method_id.id, + } + ) + payment_mode.cnab_config_id = cnab_config + + # Codigos ainda Char + cnab_config.write( + { + "doc_finality_code": payment_mode.doc_finality_code, + "ted_finality_code": payment_mode.ted_finality_code, + "complementary_finality_code": payment_mode.complementary_finality_code, + "favored_warning": payment_mode.favored_warning, + } + ) + + +@openupgrade.migrate() +def migrate(env, version): + if not version: + return + update_payment_mode_inbound(env) + update_payment_mode_outbound(env) diff --git a/l10n_br_account_payment_order/migrations/14.0.8.0.0/post-migration.py b/l10n_br_account_payment_order/migrations/14.0.8.0.0/post-migration.py new file mode 100644 index 000000000000..bb5be842669d --- /dev/null +++ b/l10n_br_account_payment_order/migrations/14.0.8.0.0/post-migration.py @@ -0,0 +1,41 @@ +# Copyright (C) 2024-Today - Akretion (). +# @author Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +def update_payment_mode_discount_code(env): + """Atualiza o Código de Desconto""" + env.cr.execute( + """ + SELECT id FROM account_payment_mode WHERE payment_method_id IN + (SELECT id FROM account_payment_method WHERE code IN ('240', '400', '500') + AND payment_type = 'inbound'); + """ + ) + for row in env.cr.fetchall(): + payment_mode = env["account.payment.mode"].browse(row[0]) + cnab_config = payment_mode.cnab_config_id + + discount_value = "0" + if cnab_config.boleto_discount_perc > 0.0: + discount_value = "1" + + discount_code = env["l10n_br_cnab.code"].search( + [ + ("bank_ids", "in", payment_mode.bank_id.ids), + ("payment_method_ids", "in", payment_mode.payment_method_id.ids), + ("code_type", "=", "discount_code"), + ("code", "=", discount_value), + ] + ) + if discount_code: + cnab_config.boleto_discount_code_id = discount_code + + +@openupgrade.migrate() +def migrate(env, version): + if not version: + return + update_payment_mode_discount_code(env) diff --git a/l10n_br_account_payment_order/migrations/14.0.9.0.0/pre-migration.py b/l10n_br_account_payment_order/migrations/14.0.9.0.0/pre-migration.py new file mode 100644 index 000000000000..259bc6d8f124 --- /dev/null +++ b/l10n_br_account_payment_order/migrations/14.0.9.0.0/pre-migration.py @@ -0,0 +1,105 @@ +# Copyright (C) 2024-Today - Akretion (). +# @author Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +def update_model_data(env): + openupgrade.logged_query( + env.cr, + """ + UPDATE ir_model_data SET model = 'l10n_br_cnab.code' + WHERE model = 'l10n_br_cnab.mov.instruction.code' + """, + ) + # Codigo de Retorno + openupgrade.logged_query( + env.cr, + """ + UPDATE ir_model_data SET model = 'l10n_br_cnab.code' + WHERE model = 'l10n_br_cnab.return.move.code' + """, + ) + # Codigo Carteira + openupgrade.logged_query( + env.cr, + """ + UPDATE ir_model_data SET model = 'l10n_br_cnab.code' + WHERE model = 'l10n_br_cnab.boleto.wallet.code' + """, + ) + + +def delete_obsolete_models(env): + openupgrade.logged_query( + env.cr, + """ + DELETE FROM ir_model_fields WHERE model = 'l10n_br_cnab.mov.instruction.code' + """, + ) + openupgrade.logged_query( + env.cr, + """ + DELETE FROM ir_model WHERE model = 'l10n_br_cnab.mov.instruction.code' + """, + ) + # Codigo de Retorno + openupgrade.logged_query( + env.cr, + """ + DELETE FROM ir_model_fields WHERE model = 'l10n_br_cnab.return.move.code' + """, + ) + openupgrade.logged_query( + env.cr, + """ + DELETE FROM ir_model WHERE model = 'l10n_br_cnab.return.move.code' + """, + ) + # Codigo Carteira + openupgrade.logged_query( + env.cr, + """ + DELETE FROM ir_model_fields WHERE model = 'l10n_br_cnab.boleto.wallet.code' + """, + ) + openupgrade.logged_query( + env.cr, + """ + DELETE FROM ir_model WHERE model = 'l10n_br_cnab.boleto.wallet.code' + """, + ) + + +def delete_obsolete_data(env): + openupgrade.logged_query( + env.cr, + """ + DELETE FROM l10n_br_cnab_mov_instruction_code + """, + ) + + # Codigo de Retorno + # Data + openupgrade.logged_query( + env.cr, + """ + DELETE FROM l10n_br_cnab_return_move_code + """, + ) + # Codigo Carteira + # Data + openupgrade.logged_query( + env.cr, + """ + DELETE FROM l10n_br_cnab_boleto_wallet_code + """, + ) + + +@openupgrade.migrate(use_env=True) +def migrate(env, version): + update_model_data(env) + delete_obsolete_models(env) + delete_obsolete_data(env) diff --git a/l10n_br_account_payment_order/models/__init__.py b/l10n_br_account_payment_order/models/__init__.py index cad515931773..80556188a51d 100644 --- a/l10n_br_account_payment_order/models/__init__.py +++ b/l10n_br_account_payment_order/models/__init__.py @@ -13,7 +13,5 @@ from . import l10n_br_cnab_return_log from . import ir_attachment from . import l10n_br_cnab_data_abstract -from . import l10n_br_cnab_return_move_code -from . import l10n_br_cnab_mov_intruction_code -from . import l10n_br_cnab_boleto_wallet_code from . import l10n_br_cnab_code +from . import l10n_br_cnab_config diff --git a/l10n_br_account_payment_order/models/account_move.py b/l10n_br_account_payment_order/models/account_move.py index c195c2588c74..cc361b832158 100644 --- a/l10n_br_account_payment_order/models/account_move.py +++ b/l10n_br_account_payment_order/models/account_move.py @@ -21,11 +21,15 @@ class AccountMove(models.Model): # relacionado ao CNAB na visao is_cnab = fields.Boolean(string="Is CNAB?") + cnab_config_id = fields.Many2one( + related="payment_mode_id.cnab_config_id", + ) + eval_payment_mode_instructions = fields.Text( string="Instruções de Cobrança do Modo de Pagamento", - related="payment_mode_id.instructions", + related="cnab_config_id.instructions", readonly=True, - help="Instruções Ordem de Pagamento configuradas" " no Modo de pagamento", + help="Instruções Ordem de Pagamento configuradas na Configuração do CNAB", ) instructions = fields.Text( @@ -56,9 +60,7 @@ def _target_new_tab(self, attachment_id): if attachment_id: return { "type": "ir.actions.act_url", - "url": "/web/content/{id}/{nome}".format( - id=attachment_id.id, nome=attachment_id.name - ), + "url": f"/web/content/{attachment_id.id}/{attachment_id.name}", "target": "new", } @@ -116,12 +118,10 @@ def load_cnab_info(self): for index, interval in enumerate(self.financial_move_line_ids): inv_number = self.get_invoice_fiscal_number().split("/")[-1] numero_documento = inv_number + "/" + str(index + 1).zfill(2) + cnab_config = interval.payment_mode_id.cnab_config_id + sequence = cnab_config.own_number_sequence_id.next_by_id() - sequence = self.payment_mode_id.own_number_sequence_id.next_by_id() - - interval.own_number = ( - sequence if interval.payment_mode_id.generate_own_number else "0" - ) + interval.own_number = sequence if cnab_config.generate_own_number else "0" interval.document_number = numero_documento interval.company_title_identification = hex(interval.id).upper() instructions = "" @@ -132,7 +132,7 @@ def load_cnab_info(self): interval.instructions = instructions # Codigo de Instrução do Movimento pode variar, # mesmo no CNAB 240 - interval.instruction_move_code_id = self.payment_mode_id.sending_code_id + interval.instruction_move_code_id = cnab_config.sending_code_id filtered_invoice_ids = self.filtered( lambda s: ( s.payment_mode_id and s.payment_mode_id.auto_create_payment_order diff --git a/l10n_br_account_payment_order/models/account_move_line.py b/l10n_br_account_payment_order/models/account_move_line.py index df442be835d7..a0e98c7a23e6 100644 --- a/l10n_br_account_payment_order/models/account_move_line.py +++ b/l10n_br_account_payment_order/models/account_move_line.py @@ -75,11 +75,15 @@ class AccountMoveLine(models.Model): copy=False, ) + cnab_config_id = fields.Many2one( + related="payment_mode_id.cnab_config_id", + ) + boleto_discount_perc = fields.Float( string="Desconto de pontualidade", digits="Account", help="Percentual de Desconto até a Data de Vencimento", - related="payment_mode_id.boleto_discount_perc", + related="cnab_config_id.boleto_discount_perc", ) instructions = fields.Text( @@ -98,14 +102,6 @@ class AccountMoveLine(models.Model): copy=False, ) - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - mov_instruction_code_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Código da Instrução para Movimento", - help="Campo G061 do CNAB", - copy=False, - ) instruction_move_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Código da Instrução para Movimento", @@ -171,9 +167,9 @@ def _prepare_payment_line_vals(self, payment_order): # Se for uma solicitação de baixa do título é preciso informar o # campo debit o codigo original coloca o amount_residual if ( - self.payment_mode_id.write_off_code_id + self.cnab_config_id.write_off_code_id and self.instruction_move_code_id - == self.payment_mode_id.write_off_code_id + == self.cnab_config_id.write_off_code_id ): vals["amount_currency"] = self.credit or self.debit diff --git a/l10n_br_account_payment_order/models/account_payment_line.py b/l10n_br_account_payment_order/models/account_payment_line.py index 9b3517e546a1..95fd09f95dfe 100644 --- a/l10n_br_account_payment_order/models/account_payment_line.py +++ b/l10n_br_account_payment_order/models/account_payment_line.py @@ -136,13 +136,6 @@ class AccountPaymentLine(models.Model): default="0", ) - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - mov_instruction_code_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Código da Instrução para Movimento", - help="Campo G061 do CNAB", - ) instruction_move_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Código da Instrução para Movimento", @@ -198,21 +191,21 @@ def _compute_interest(self): @api.model def default_get(self, fields_list): res = super().default_get(fields_list) - mode = ( + cnab_config = ( self.env["account.payment.order"] .browse(self.env.context.get("order_id")) - .payment_mode_id + .payment_mode_id.cnab_config_id ) - if mode.doc_finality_code: - res.update({"doc_finality_code": mode.doc_finality_code}) - if mode.ted_finality_code: - res.update({"ted_finality_code": mode.ted_finality_code}) - if mode.complementary_finality_code: + if cnab_config.doc_finality_code: + res.update({"doc_finality_code": cnab_config.doc_finality_code}) + if cnab_config.ted_finality_code: + res.update({"ted_finality_code": cnab_config.ted_finality_code}) + if cnab_config.complementary_finality_code: res.update( - {"complementary_finality_code": mode.complementary_finality_code} + {"complementary_finality_code": cnab_config.complementary_finality_code} ) - if mode.favored_warning: - res.update({"favored_warning": mode.favored_warning}) + if cnab_config.favored_warning: + res.update({"favored_warning": cnab_config.favored_warning}) return res diff --git a/l10n_br_account_payment_order/models/account_payment_mode.py b/l10n_br_account_payment_order/models/account_payment_mode.py index 0edf0cb4652e..41f96a7438c4 100644 --- a/l10n_br_account_payment_order/models/account_payment_mode.py +++ b/l10n_br_account_payment_order/models/account_payment_mode.py @@ -8,18 +8,22 @@ from odoo import _, api, fields, models from odoo.exceptions import ValidationError -from ..constants import BR_CODES_PAYMENT_ORDER, FORMA_LANCAMENTO, TIPO_SERVICO +from ..constants import BR_CODES_PAYMENT_ORDER class AccountPaymentMode(models.Model): _name = "account.payment.mode" _inherit = [ "account.payment.mode", - "l10n_br_cnab.boleto.fields", - "l10n_br_cnab.payment.fields", "mail.thread", ] + cnab_config_id = fields.Many2one( + comodel_name="l10n_br_cnab.config", + string="CNAB Config", + tracking=True, + ) + PAYMENT_MODE_DOMAIN = [ ("dinheiro", _("Dinheiro")), ("cheque", _("Cheque")), @@ -38,24 +42,6 @@ class AccountPaymentMode(models.Model): help="Cria a ordem de pagamento automaticamente ao confirmar a fatura", ) - service_type = fields.Selection( - selection=TIPO_SERVICO, - string="Tipo de Serviço", - help="Campo G025 do CNAB", - ) - - release_form = fields.Selection( - selection=FORMA_LANCAMENTO, - string="Forma Lançamento", - help="Campo G029 do CNAB", - ) - - cnab_sequence_id = fields.Many2one( - comodel_name="ir.sequence", - string="Sequencia do Arquivo CNAB", - tracking=True, - ) - # Fields used to make invisible banks specifics fields bank_id = fields.Many2one( related="fixed_journal_id.bank_id", @@ -65,6 +51,8 @@ class AccountPaymentMode(models.Model): related="fixed_journal_id.bank_id.code_bc", ) + # TODO: Necessário adaptar o modulo l10n_br_cnab_structure + # para a Separação da Configuração CNAB do Modo de Pagto cnab_processor = fields.Selection( selection="_selection_cnab_processor", ) @@ -74,46 +62,8 @@ def _selection_cnab_processor(self): # Method to be extended by modules that implement CNAB processors. return [] - # Codigos de Retorno do Movimento - - # TODO: Campos many2many não estão sendo registrados pelo track_visibility. - # Debate no Odoo https://github.com/odoo/odoo/issues/10149 - # Modulo na OCA v10 que faria isso - # https://github.com/OCA/social/tree/10.0/mail_improved_tracking_value - # Migração do Modulo para a v12 https://github.com/OCA/social/pull/677 - # Devemos incluir esse modulo nas Dependencias OCA para poder usa-lo aqui - # já que sem ele o campo que armazena os codigos que devem ser usados para - # Baixa/Liquidação está sem a rastreabilidade a outra opção seria usar o - # modulo auditlog https://github.com/OCA/server-tools/tree/12.0/auditlog. - - # TODO: Ligação com o payment_mode_id não permite extrair para o objeto - # l10n_br_cnab.boleto.fields, teria alguma forma de fazer ? - # Podem existir diferentes codigos, mesmo no 240 - - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_liq_return_move_code_ids = fields.Many2many( - comodel_name="l10n_br_cnab.return.move.code", - relation="l10n_br_cnab_return_liquidity_move_code_rel", - column1="cnab_liq_return_move_code_id", - column2="payment_mode_id", - string="CNAB Liquidity Return Move Code", - tracking=True, - ) - liq_return_move_code_ids = fields.Many2many( - comodel_name="l10n_br_cnab.code", - relation="l10n_br_cnab_liq_return_move_code_rel", - column1="liq_return_move_code_id", - column2="payment_mode_id", - string="CNAB Liquidity Return Move Code", - tracking=True, - ) - @api.constrains( - "cnab_company_bank_code", - "cnab_sequence_id", "fixed_journal_id", - "boleto_wallet", "group_lines", ) def _check_cnab_restriction(self): @@ -136,21 +86,6 @@ def _check_cnab_restriction(self): % field ) - if ( - self.bank_code_bc == "341" - and self.payment_type == "inbound" - and not self.boleto_wallet - ): - raise ValidationError(_("Carteira no banco Itaú é obrigatória")) - - @api.constrains("boleto_discount_perc") - def _check_discount_perc(self): - for record in self: - if record.boleto_discount_perc > 100 or record.boleto_discount_perc < 0: - raise ValidationError( - _("O percentual deve ser um valor entre 0 a 100.") - ) - @api.onchange("payment_method_id") def _onchange_payment_method_id(self): for record in self: @@ -159,32 +94,3 @@ def _onchange_payment_method_id(self): record.group_lines = False # Selecionavel na Ordem de Pagamento record.payment_order_ok = True - - @api.constrains("own_number_sequence_id", "cnab_sequence_id") - def _check_sequences(self): - for record in self: - already_in_use = self.search( - [ - ("id", "!=", record.id), - "|", - ("own_number_sequence_id", "=", record.own_number_sequence_id.id), - ("cnab_sequence_id", "=", record.cnab_sequence_id.id), - ], - limit=1, - ) - - if already_in_use.own_number_sequence_id: - raise ValidationError( - _( - "Sequence Own Number already in use by %(payment_mode)s!", - payment_mode=already_in_use.name, - ) - ) - - if already_in_use.cnab_sequence_id: - raise ValidationError( - _( - "Sequence CNAB Sequence already in use by %(payment_mode)s!", - payment_mode=already_in_use.name, - ) - ) diff --git a/l10n_br_account_payment_order/models/account_payment_order.py b/l10n_br_account_payment_order/models/account_payment_order.py index c186d0d0626c..da1226af433b 100644 --- a/l10n_br_account_payment_order/models/account_payment_order.py +++ b/l10n_br_account_payment_order/models/account_payment_order.py @@ -53,11 +53,15 @@ class AccountPaymentOrder(models.Model): help="Campo G029 do CNAB", ) + cnab_config_id = fields.Many2one( + related="payment_mode_id.cnab_config_id", + ) + cnab_company_bank_code = fields.Char( - related="payment_mode_id.cnab_company_bank_code", + related="cnab_config_id.cnab_company_bank_code", ) - convention_code = fields.Char(related="payment_mode_id.convention_code") + convention_code = fields.Char(related="cnab_config_id.convention_code") indicative_form_payment = fields.Selection( selection=INDICATIVO_FORMA_PAGAMENTO, @@ -227,18 +231,11 @@ def generate_payment_file(self): def get_file_name(self, cnab_type): context_today = fields.Date.context_today(self) + date = context_today.strftime("%d%m") + file_number = self.file_number if cnab_type == "240": - return "CB%s%s.REM" % ( - context_today.strftime("%d%m"), - str(self.file_number), - ) + return f"CB{date}{file_number}.REM" elif cnab_type == "400": - return "CB%s%02d.REM" % ( - context_today.strftime("%d%m"), - self.file_number or 1, - ) + return f"CB{date}{file_number:02d}.REM" elif cnab_type == "500": - return "PG%s%s.REM" % ( - context_today.strftime("%d%m"), - str(self.file_number), - ) + return f"PG{date}{file_number}.REM" diff --git a/l10n_br_account_payment_order/models/l10n_br_cnab_boleto_fields.py b/l10n_br_account_payment_order/models/l10n_br_cnab_boleto_fields.py index 0df4d7f001ec..09214195c76b 100644 --- a/l10n_br_account_payment_order/models/l10n_br_cnab_boleto_fields.py +++ b/l10n_br_account_payment_order/models/l10n_br_cnab_boleto_fields.py @@ -179,6 +179,12 @@ class L10nBrCNABBoletoFields(models.AbstractModel): tracking=True, ) + boleto_discount_code_id = fields.Many2one( + comodel_name="l10n_br_cnab.code", + string="Boleto Discount Code", + tracking=True, + ) + boleto_discount_perc = fields.Float( string="Percentual de Desconto até a Data de Vencimento", digits="Account", @@ -228,14 +234,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): # Codigos de Instrução do Movimento # Codigo de Remessa/Inclusão de Registro Detalhe Liberado - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_sending_code_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Sending Movement Instruction Code", - help="Sending Movement Instruction Code", - tracking=True, - ) sending_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Sending Movement Instruction Code", @@ -244,14 +242,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Título/Pagamento Direto ao Fornecedor -Baixar - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_write_off_code_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Write Off Movement Instruction Code", - help="Write Off Movement Instruction Code", - tracking=True, - ) write_off_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Write Off Movement Instruction Code", @@ -260,14 +250,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Alteração do Valor do Titulo - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_code_change_title_value_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Change Title Value Movement Instruction Code", - help="CNAB Movement Instruction Code for Change Title Value.", - tracking=True, - ) change_title_value_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Change Title Value Movement Instruction Code", @@ -276,14 +258,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Alteração da Data de Vencimento - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_code_change_maturity_date_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Change Maturity Date Movement Instruction Code", - help="CNAB Movement Instruction Code for Change Maturity Date.", - tracking=True, - ) change_maturity_date_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Change Maturity Date Movement Instruction Code", @@ -292,14 +266,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Protestar Título - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_code_protest_title_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Protest Tittle Instruction Code", - help="CNAB Movement Instruction Code for Protest Tittle.", - tracking=True, - ) protest_title_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Protest Tittle Instruction Code", @@ -308,15 +274,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Suspender Protesto e Manter em Carteira - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_code_suspend_protest_keep_wallet_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Suspend Protest an Keep in Wallet Instruction Code", - help="CNAB Movement Instruction Code for" - " Suspend Protest and Keep in Wallet.", - tracking=True, - ) suspend_protest_keep_wallet_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Suspend Protest an Keep in Wallet Instruction Code", @@ -326,14 +283,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Suspender Protesto e Baixar Título - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_code_suspend_protest_write_off_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Suspend Protest an Writte Off Instruction Code", - help="CNAB Movement Instruction Code for" " Suspend Protest and Writte Off.", - tracking=True, - ) suspend_protest_write_off_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Suspend Protest an Writte Off Instruction Code", @@ -342,14 +291,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Conceder Abatimento - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_code_grant_rebate_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Grant Rebate Instruction Code", - help="CNAB Movement Instruction Code for" " Grant Rebate.", - tracking=True, - ) grant_rebate_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Grant Rebate Instruction Code", @@ -358,14 +299,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Cancelar Abatimento - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_code_cancel_rebate_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Cancel Rebate Instruction Code", - help="CNAB Movement Instruction Code for" " Cancel Rebate.", - tracking=True, - ) cancel_rebate_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Cancel Rebate Instruction Code", @@ -374,14 +307,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Conceder Desconto - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_code_grant_discount_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Grant Discount Instruction Code", - help="CNAB Movement Instruction Code for" " Grant Discount.", - tracking=True, - ) grant_discount_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Grant Discount Instruction Code", @@ -390,14 +315,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): ) # Codigo para Cancelar Desconto - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - cnab_code_cancel_discount_id = fields.Many2one( - comodel_name="l10n_br_cnab.mov.instruction.code", - string="Cancel Discount Instruction Code", - help="CNAB Movement Instruction Code for Cancel Discount.", - tracking=True, - ) cancel_discount_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Cancel Discount Instruction Code", @@ -428,13 +345,6 @@ class L10nBrCNABBoletoFields(models.AbstractModel): # Código da Carteira ou Tipo de Cobrança usado por # Santanter 400 e 240 # Bradesco 240 - # TODO: Remover o campo na próxima versão, - # usando apenas para migração para o l10n_br_cnab.code - boleto_wallet_code_id = fields.Many2one( - comodel_name="l10n_br_cnab.boleto.wallet.code", - string="Boleto Wallet Code", - tracking=True, - ) wallet_code_id = fields.Many2one( comodel_name="l10n_br_cnab.code", string="Boleto Wallet Code", diff --git a/l10n_br_account_payment_order/models/l10n_br_cnab_boleto_wallet_code.py b/l10n_br_account_payment_order/models/l10n_br_cnab_boleto_wallet_code.py deleted file mode 100644 index 4f0597ea939c..000000000000 --- a/l10n_br_account_payment_order/models/l10n_br_cnab_boleto_wallet_code.py +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright (C) 2024-Today - Akretion (). -# @author Magno Costa -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import api, fields, models - - -class L10nBrCNABBoletoWalletCode(models.Model): - _name = "l10n_br_cnab.boleto.wallet.code" - _inherit = ["l10n_br_cnab.data.abstract", "mail.thread"] - _description = "CNAB Boleto Wallet Code" - - bank_ids = fields.Many2many( - string="Banks", - comodel_name="res.bank", - relation="l10n_br_cnab_boleto_wallet_code_bank_rel", - column1="bank_id", - column2="l10n_br_cnab_boleto_wallet_code_id", - tracking=True, - ) - - payment_method_ids = fields.Many2many( - comodel_name="account.payment.method", - string="Payment Methods", - relation="l10n_br_cnab_boleto_wallet_code_payment_method_rel", - column1="payment_method_id", - column2="l10n_br_cnab_boleto_wallet_code_id", - tracking=True, - ) - - comment = fields.Text() - - # TODO: Forma encontrada para pode fazer o Group By, na v15 - # parece já ser possivel usar campos many2many. - # Também deve ser considerado em apagar o campo many2many e deixar - # apenas o many2one já que, por enquanto, não há bancos diferentes - # usando o mesmo conjunto de codigos apenas diferentes cnab( 240/400 ) - bank_id = fields.Many2one( - comodel_name="res.bank", compute="_compute_bank_id", store=True - ) # it is possible to search only among stored fields - - payment_method_id = fields.Many2one( - comodel_name="account.payment.method", - compute="_compute_payment_method_id", - store=True, - ) # it is possible to search only among stored fields - - @api.depends("bank_ids") - def _compute_bank_id(self): - for record in self: - record.bank_id = record.bank_ids and record.bank_ids[0] or False - - @api.depends("payment_method_ids") - def _compute_payment_method_id(self): - for record in self: - record.payment_method_id = ( - record.payment_method_ids and record.payment_method_ids[0] or False - ) diff --git a/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py b/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py index a34063f51b6a..f747faa63636 100644 --- a/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py +++ b/l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py @@ -152,18 +152,20 @@ def _msg_cnab_payment_order_at_invoice(self, new_payorder, payorder, reason): ) ) - def _msg_error_cnab_missing(self, payment_mode_name, missing): + def _msg_error_cnab_missing(self, payment_mode, missing): """ CNAB - Não é possível fazer a alteração pois falta algo - :param payment_mode_name: Nome do Modo de Pagamento + :param payment_mode: Modo de Pagamento :param missing: descrição do que falta :return: Mensagem de Erro """ raise UserError( _( - "Payment Mode %(payment_mode_name)s don't has %(missing)s for making CNAB" - "change, check if should have.", - payment_mode_name=payment_mode_name, + "CNAB Config %(cnab_config_name)s in Payment Mode" + " %(payment_mode_name)s don't has %(missing)s for" + " making CNAB change, check if should have.", + cnab_config_name=payment_mode.cnab_config.name, + payment_mode_name=payment_mode.name, missing=missing, ) ) @@ -210,15 +212,14 @@ def _get_cnab_date_maturity(self, new_date): ) ) + cnab_config = self.payment_mode_id.cnab_config_id # Modo de Pagto usado precisa ter o codigo de alteração do vencimento - if not self.move_id.payment_mode_id.change_maturity_date_code_id: - self._msg_error_cnab_missing( - self.payment_mode_id.name, "Date Maturity Code" - ) + if not cnab_config.change_maturity_date_code_id: + self._msg_error_cnab_missing(self.payment_mode_id, "Date Maturity Code") self.date_maturity = new_date - return self.payment_mode_id.change_maturity_date_code_id + return cnab_config.change_maturity_date_code_id def _create_cnab_not_payment(self, payorder, new_payorder, reason): """ @@ -228,17 +229,18 @@ def _create_cnab_not_payment(self, payorder, new_payorder, reason): """ # Modo de Pagto usado precisa ter a Conta Contabil de # Não Pagamento/Inadimplencia - if not self.move_id.payment_mode_id.not_payment_account_id: + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.not_payment_account_id: self._msg_error_cnab_missing( - self.payment_mode_id.name, "the Account to Not Payment" + self.payment_mode_id, "the Account to Not Payment" ) - if not self.move_id.payment_mode_id.write_off_code_id: - self._msg_error_cnab_missing(self.payment_mode_id.name, "Writte Off Code") + if not cnab_config.write_off_code_id: + self._msg_error_cnab_missing(self.payment_mode_id, "Writte Off Code") # TODO: O codigo usado seria o mesmo do writte off ? # Em todos os casos? - self.instruction_move_code_id = self.payment_mode_id.write_off_code_id + self.instruction_move_code_id = cnab_config.write_off_code_id # Reconciliação e Baixa do Título move_obj = self.env["account.move"] @@ -269,7 +271,7 @@ def _create_cnab_not_payment(self, payorder, new_payorder, reason): move_not_payment_values = { "debit": self.amount_residual, "credit": 0.0, - "account_id": self.move_id.payment_mode_id.not_payment_account_id.id, + "account_id": cnab_config.not_payment_account_id.id, } commom_move_values = { @@ -339,8 +341,9 @@ def create_cnab_write_off(self, reason, payment_situation): self.remove_payment_line(reason, payment_situation) payment_lines_removed = True - if not self.move_id.payment_mode_id.write_off_code_id: - self._msg_error_cnab_missing(self.payment_mode_id.name, "Write Off Code") + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.write_off_code_id: + self._msg_error_cnab_missing(self.payment_mode_id, "Write Off Code") if not payment_lines_removed: # Checar se existe uma Instrução de CNAB ainda a ser enviada @@ -348,7 +351,7 @@ def create_cnab_write_off(self, reason, payment_situation): payorder, new_payorder = self._get_payment_order(self.move_id) - self.instruction_move_code_id = self.payment_mode_id.write_off_code_id + self.instruction_move_code_id = cnab_config.write_off_code_id self.payment_situation = payment_situation self.create_payment_line_from_move_line(payorder) @@ -361,15 +364,16 @@ def create_cnab_change_tittle_value(self): """ CNAB - Alteração do Valor do Título. """ - if not self.payment_mode_id.change_title_value_code_id: - self._msg_error_cnab_missing(self.payment_mode_id.name, "Tittle Value Code") + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.change_title_value_code_id: + self._msg_error_cnab_missing(self.payment_mode_id, "Tittle Value Code") # Checar se existe uma Instrução de CNAB ainda a ser enviada self._check_cnab_instruction_to_be_send() payorder, new_payorder = self._get_payment_order(self.move_id) - self.instruction_move_code_id = self.payment_mode_id.change_title_value_code_id + self.instruction_move_code_id = cnab_config.change_title_value_code_id reason = ( "Movement Instruction Code Updated for Request to " "Change Title Value, because partial payment " @@ -387,23 +391,23 @@ def _get_cnab_protest_tittle(self): """ CNAB - Protestar Título. """ - if not self.payment_mode_id.protest_title_code_id: - self._msg_error_cnab_missing( - self.payment_mode_id.name, "Protest Tittle Code" - ) + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.protest_title_code_id: + self._msg_error_cnab_missing(self.payment_mode_id, "Protest Tittle Code") - return self.payment_mode_id.protest_title_code_id + return cnab_config.protest_title_code_id def _get_cnab_suspend_protest_keep_wallet(self): """ CNAB - Sustar Protesto e Manter em Carteira. """ - if not self.payment_mode_id.suspend_protest_keep_wallet_code_id: + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.suspend_protest_keep_wallet_code_id: self._msg_error_cnab_missing( - self.payment_mode_id.name, "Suspend Protest and Keep in Wallet Code" + self.payment_mode_id, "Suspend Protest and Keep in Wallet Code" ) - return self.payment_mode_id.suspend_protest_keep_wallet_code_id + return cnab_config.suspend_protest_keep_wallet_code_id def _get_cnab_suspend_protest_writte_off(self): """ @@ -411,13 +415,13 @@ def _get_cnab_suspend_protest_writte_off(self): """ # TODO: Deveria chamar a função de Não # Pagamento( _create_cnab_not_payment ) ? - - if not self.payment_mode_id.suspend_protest_write_off_code_id: + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.suspend_protest_write_off_code_id: self._msg_error_cnab_missing( - self.payment_mode_id.name, "Suspend Protest and Writte Off Code" + self.payment_mode_id, "Suspend Protest and Writte Off Code" ) - return self.payment_mode_id.suspend_protest_write_off_code_id + return cnab_config.suspend_protest_write_off_code_id def _get_cnab_grant_rebate(self): """ @@ -425,22 +429,22 @@ def _get_cnab_grant_rebate(self): :param rebate_value: Valor do Abatimento :param reason: Descrição sobre alteração """ - if not self.payment_mode_id.grant_rebate_code_id: - self._msg_error_cnab_missing(self.payment_mode_id.name, "Grant Rebate Code") + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.grant_rebate_code_id: + self._msg_error_cnab_missing(self.payment_mode_id, "Grant Rebate Code") - return self.payment_mode_id.grant_rebate_code_id + return cnab_config.grant_rebate_code_id def _get_cnab_cancel_rebate(self): """ CNAB - Cancelar Abatimento. :param reason: Descrição sobre alteração """ - if not self.payment_mode_id.cancel_rebate_code_id: - self._msg_error_cnab_missing( - self.payment_mode_id.name, "Cancel Rebate Code" - ) + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.cancel_rebate_code_id: + self._msg_error_cnab_missing(self.payment_mode_id, "Cancel Rebate Code") - return self.payment_mode_id.cancel_rebate_code_id + return cnab_config.cancel_rebate_code_id def _get_cnab_grant_discount(self): """ @@ -448,24 +452,22 @@ def _get_cnab_grant_discount(self): :param discount_value: Valor do Desconto :param reason: Descrição sobre alteração """ - if not self.payment_mode_id.grant_discount_code_id: - self._msg_error_cnab_missing( - self.payment_mode_id.name, "Grant Discount Code" - ) + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.grant_discount_code_id: + self._msg_error_cnab_missing(self.payment_mode_id, "Grant Discount Code") - return self.payment_mode_id.grant_discount_code_id + return cnab_config.grant_discount_code_id def _get_cnab_cancel_discount(self): """ CNAB - Cancelar Desconto. :param reason: Descrição sobre alteração """ - if not self.payment_mode_id.cancel_discount_code_id: - self._msg_error_cnab_missing( - self.payment_mode_id.name, "Cancel Discount Code" - ) + cnab_config = self.payment_mode_id.cnab_config_id + if not cnab_config.cancel_discount_code_id: + self._msg_error_cnab_missing(self.payment_mode_id, "Cancel Discount Code") - return self.payment_mode_id.cancel_discount_code_id + return cnab_config.cancel_discount_code_id def _make_cnab_change(self, cnab_code, new_payorder, payorder, reason): """ diff --git a/l10n_br_account_payment_order/models/l10n_br_cnab_config.py b/l10n_br_account_payment_order/models/l10n_br_cnab_config.py new file mode 100644 index 000000000000..abe3e333e858 --- /dev/null +++ b/l10n_br_account_payment_order/models/l10n_br_cnab_config.py @@ -0,0 +1,151 @@ +# Copyright (C) 2024-Today - Akretion (). +# @author Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError + +from ..constants import BR_CODES_PAYMENT_ORDER, FORMA_LANCAMENTO, TIPO_SERVICO + + +class L10nBRCNABConfig(models.Model): + _name = "l10n_br_cnab.config" + _description = "CNAB Config" + _inherit = [ + "l10n_br_cnab.boleto.fields", + "l10n_br_cnab.payment.fields", + "mail.thread", + ] + + name = fields.Char(index=True, tracking=True, required=True) + + company_id = fields.Many2one( + comodel_name="res.company", + string="Company", + required=True, + ondelete="restrict", + default=lambda self: self.env.company, + ) + + service_type = fields.Selection( + selection=TIPO_SERVICO, + string="Tipo de Serviço", + help="Campo G025 do CNAB", + ) + + release_form = fields.Selection( + selection=FORMA_LANCAMENTO, + string="Forma Lançamento", + help="Campo G029 do CNAB", + ) + + cnab_sequence_id = fields.Many2one( + comodel_name="ir.sequence", + string="Sequencia do Arquivo CNAB", + tracking=True, + ) + + bank_id = fields.Many2one( + comodel_name="res.bank", + tracking=True, + ) + + payment_method_id = fields.Many2one( + comodel_name="account.payment.method", + tracking=True, + ) + + bank_code_bc = fields.Char( + related="bank_id.code_bc", + ) + payment_method_code = fields.Char(related="payment_method_id.code") + payment_type = fields.Selection(related="payment_method_id.payment_type") + + cnab_processor = fields.Selection( + selection="_selection_cnab_processor", + ) + + @api.model + def _selection_cnab_processor(self): + # Method to be extended by modules that implement CNAB processors. + return [] + + # Codigos de Retorno do Movimento + + # TODO: Campos many2many não estão sendo registrados pelo track_visibility. + # Debate no Odoo https://github.com/odoo/odoo/issues/10149 + # Modulo na OCA v10 que faria isso + # https://github.com/OCA/social/tree/10.0/mail_improved_tracking_value + # Migração do Modulo para a v12 https://github.com/OCA/social/pull/677 + # Devemos incluir esse modulo nas Dependencias OCA para poder usa-lo aqui + # já que sem ele o campo que armazena os codigos que devem ser usados para + # Baixa/Liquidação está sem a rastreabilidade a outra opção seria usar o + # modulo auditlog https://github.com/OCA/server-tools/tree/12.0/auditlog. + + # TODO: Ligação com o payment_mode_id não permite extrair para o objeto + # l10n_br_cnab.boleto.fields, teria alguma forma de fazer ? + # Podem existir diferentes codigos, mesmo no 240 + liq_return_move_code_ids = fields.Many2many( + comodel_name="l10n_br_cnab.code", + string="CNAB Liquidity Return Move Code", + tracking=True, + ) + + comment = fields.Text() + + @api.constrains( + "cnab_company_bank_code", + "cnab_sequence_id", + "boleto_wallet", + ) + def _check_cnab_restriction(self): + for record in self: + if ( + record.payment_method_code not in BR_CODES_PAYMENT_ORDER + or self.payment_type == "outbound" + ): + return False + + if ( + self.bank_code_bc == "341" + and self.payment_type == "inbound" + and not self.boleto_wallet + ): + raise ValidationError(_("Carteira no banco Itaú é obrigatória")) + + @api.constrains("boleto_discount_perc") + def _check_discount_perc(self): + for record in self: + if record.boleto_discount_perc > 100 or record.boleto_discount_perc < 0: + raise ValidationError( + _("O percentual deve ser um valor entre 0 a 100.") + ) + + @api.constrains("own_number_sequence_id", "cnab_sequence_id") + def _check_sequences(self): + for record in self: + already_in_use = self.search( + [ + ("id", "!=", record.id), + "|", + ("own_number_sequence_id", "=", record.own_number_sequence_id.id), + ("cnab_sequence_id", "=", record.cnab_sequence_id.id), + ], + limit=1, + ) + + if already_in_use.own_number_sequence_id: + raise ValidationError( + _( + "Sequence Own Number already in use by %(cnab_config)s!", + cnab_config=already_in_use.name, + ) + ) + + if already_in_use.cnab_sequence_id: + raise ValidationError( + _( + "Sequence CNAB Sequence already in use by %(cnab_config)s!", + cnab_config=already_in_use.name, + ) + ) diff --git a/l10n_br_account_payment_order/models/l10n_br_cnab_data_abstract.py b/l10n_br_account_payment_order/models/l10n_br_cnab_data_abstract.py index 6f63e03f6b3e..cc0aa9ec2e61 100644 --- a/l10n_br_account_payment_order/models/l10n_br_cnab_data_abstract.py +++ b/l10n_br_account_payment_order/models/l10n_br_cnab_data_abstract.py @@ -23,7 +23,7 @@ class L10nBrCNABDataAbstract(models.AbstractModel): def name_get(self): result = [] for record in self: - result.append((record.id, "%s - %s" % (record.code, record.name))) + result.append((record.id, f"{record.code} - {record.name}")) return result @api.constrains("code") diff --git a/l10n_br_account_payment_order/models/l10n_br_cnab_mov_intruction_code.py b/l10n_br_account_payment_order/models/l10n_br_cnab_mov_intruction_code.py deleted file mode 100644 index b06bfba8f9f9..000000000000 --- a/l10n_br_account_payment_order/models/l10n_br_cnab_mov_intruction_code.py +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2020 Akretion -# @author Magno Costa -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import _, api, fields, models -from odoo.exceptions import ValidationError - - -class L10nBrCNABMovInstructionCode(models.Model): - _name = "l10n_br_cnab.mov.instruction.code" - _inherit = ["l10n_br_cnab.data.abstract", "mail.thread"] - _description = "CNAB Movement Instruction Code" - - bank_ids = fields.Many2many( - string="Banks", - comodel_name="res.bank", - relation="l10n_br_cnab_mov_instruction_code_bank_rel", - column1="bank_id", - column2="l10n_br_cnab_mov_instruction_code_id", - tracking=True, - ) - - payment_method_ids = fields.Many2many( - comodel_name="account.payment.method", - string="Payment Methods", - relation="l10n_br_cnab_mov_instruction_code_payment_method_rel", - column1="payment_method_id", - column2="l10n_br_cnab_mov_instruction_code_id", - tracking=True, - ) - - comment = fields.Text() - - # TODO: Forma encontrada para pode fazer o Group By, na v15 - # parece já ser possivel usar campos many2many. - # Também deve ser considerado em apagar o campo many2many e deixar - # apenas o many2one já que, por enquanto, não há bancos diferentes - # usando o mesmo conjunto de codigos apenas diferentes cnab( 240/400 - # são iguais no caso Unicred ) - bank_id = fields.Many2one( - comodel_name="res.bank", compute="_compute_bank_id", store=True - ) # it is possible to search only among stored fields - - payment_method_id = fields.Many2one( - comodel_name="account.payment.method", - compute="_compute_payment_method_id", - store=True, - ) # it is possible to search only among stored fields - - @api.depends("bank_ids") - def _compute_bank_id(self): - for record in self: - record.bank_id = record.bank_ids and record.bank_ids[0] or False - - @api.depends("payment_method_ids") - def _compute_payment_method_id(self): - for record in self: - record.payment_method_id = ( - record.payment_method_ids and record.payment_method_ids[0] or False - ) - - @api.constrains("code") - def check_code(self): - for record in self: - # Tamanho do campo é padrão 2 p/ todos - # os codigos de Instrução CNAB ? - if len(record.code) != 2: - raise ValidationError(_("The field Code should have two characters.")) - return super().check_code() diff --git a/l10n_br_account_payment_order/models/l10n_br_cnab_return_move_code.py b/l10n_br_account_payment_order/models/l10n_br_cnab_return_move_code.py deleted file mode 100644 index 81ae5aca491f..000000000000 --- a/l10n_br_account_payment_order/models/l10n_br_cnab_return_move_code.py +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2020 Akretion -# @author Magno Costa -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import _, api, fields, models -from odoo.exceptions import ValidationError - - -class L10nBrCNABReturnMoveCode(models.Model): - _name = "l10n_br_cnab.return.move.code" - _inherit = ["l10n_br_cnab.data.abstract", "mail.thread"] - _description = "CNAB Return Move Code" - - bank_ids = fields.Many2many( - string="Banks", - comodel_name="res.bank", - relation="l10n_br_cnab_return_move_code_bank_rel", - column1="bank_id", - column2="l10n_br_cnab_return_move_code_id", - tracking=True, - ) - - payment_method_ids = fields.Many2many( - comodel_name="account.payment.method", - string="Payment Methods", - relation="l10n_br_cnab_return_move_code_payment_method_rel", - column1="payment_method_id", - column2="l10n_br_cnab_mov_instruction_code_id", - tracking=True, - ) - - comment = fields.Text() - - # TODO: Forma encontrada para pode fazer o Group By, na v15 - # parece já ser possivel usar campos many2many. - # Também deve ser considerado apagar o campo many2many e deixar - # apenas o many2one já que, por enquanto, não há bancos diferentes - # usando o mesmo conjunto de codigos apenas diferentes cnab( 240/400 - # são iguais no caso Unicred ) - bank_id = fields.Many2one( - comodel_name="res.bank", compute="_compute_bank_id", store=True - ) # it is possible to search only among stored fields - - payment_method_id = fields.Many2one( - comodel_name="account.payment.method", - compute="_compute_payment_method_id", - store=True, - ) # it is possible to search only among stored fields - - @api.depends("bank_ids") - def _compute_bank_id(self): - for record in self: - record.bank_id = record.bank_ids and record.bank_ids[0] or False - - @api.depends("payment_method_ids") - def _compute_payment_method_id(self): - for record in self: - record.payment_method_id = ( - record.payment_method_ids and record.payment_method_ids[0] or False - ) - - @api.constrains("code") - def check_code(self): - for record in self: - # Tamanho do campo é padrão 2 p/ todos - # do os codigos de Retorno CNAB ? - if len(record.code) != 2: - raise ValidationError(_("The field Code should have two characters.")) - return super().check_code() diff --git a/l10n_br_account_payment_order/security/ir.model.access.csv b/l10n_br_account_payment_order/security/ir.model.access.csv index fd4912187ee0..9d9a2958428e 100644 --- a/l10n_br_account_payment_order/security/ir.model.access.csv +++ b/l10n_br_account_payment_order/security/ir.model.access.csv @@ -1,14 +1,10 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -access_l10n_br_cnab_return_move_code_user,access_l10n_br_cnab_return_move_code_user,model_l10n_br_cnab_return_move_code,group_cnab_user,1,0,0,0 -access_l10n_br_cnab_return_move_code_manager,access_l10n_br_cnab_return_move_code_manager,model_l10n_br_cnab_return_move_code,group_cnab_manager,1,1,1,1 access_l10n_br_cnab_return_log_user,access_l10n_br_cnab_return_log_user,model_l10n_br_cnab_return_log,group_cnab_user,1,1,1,0 access_l10n_br_cnab_return_log_manager,access_l10n_br_cnab_return_log_manager,model_l10n_br_cnab_return_log,group_cnab_manager,1,1,1,1 access_l10n_br_cnab_return_event_user,access_l10n_br_cnab_return_event_user,model_l10n_br_cnab_return_event,group_cnab_user,1,1,1,0 access_l10n_br_cnab_return_event_manager,access_l10n_br_cnab_return_event_manager,model_l10n_br_cnab_return_event,group_cnab_manager,1,1,1,1 access_l10n_br_cnab_return_lot_user,access_l10n_br_cnab_return_lot_user,model_l10n_br_cnab_return_lot,group_cnab_user,1,1,1,0 access_l10n_br_cnab_return_lot_manager,access_l10n_br_cnab_return_lot_manager,model_l10n_br_cnab_return_lot,group_cnab_manager,1,1,1,1 -access_l10n_br_cnab_mov_instruction_code_user,access_l10n_br_cnab_mov_instruction_code_user,model_l10n_br_cnab_mov_instruction_code,group_cnab_user,1,0,0,0 -access_l10n_br_cnab_mov_instruction_code_manager,access_l10n_br_cnab_mov_instruction_code_manager,model_l10n_br_cnab_mov_instruction_code,group_cnab_manager,1,1,1,1 access_l10n_br_cnab_change_methods_user,access_l10n_br_cnab_change_methods_user,model_l10n_br_cnab_change_methods,group_cnab_user,1,0,0,0 access_l10n_br_cnab_change_methods_manager,access_l10n_br_cnab_change_methods_manager,model_l10n_br_cnab_change_methods,group_cnab_manager,1,1,1,1 access_l10n_br_cnab_boleto_fields_uinvoice,l10n_br_cnab.boleto.fields invoice,model_l10n_br_cnab_boleto_fields,account.group_account_invoice,1,1,1,1 @@ -16,7 +12,7 @@ access_l10n_br_cnab_boleto_fields_manager,l10n_br_cnab.boleto.fields manager,mod access_l10n_br_cnab_payment_fields_uinvoice,l10n_br_cnab.payment.fields invoice,model_l10n_br_cnab_payment_fields,account.group_account_invoice,1,1,1,1 access_l10n_br_cnab_payment_fields_manager,l10n_br_cnab.payment.fields manager,model_l10n_br_cnab_payment_fields,account.group_account_manager,1,0,0,0 access_account_move_line_cnab_change_user,access_account_move_line_cnab_change_user,model_account_move_line_cnab_change,group_cnab_user,1,1,1,1 -access_l10n_br_cnab_boleto_wallet_code_manager,access_l10n_br_cnab_boleto_wallet_code manager,model_l10n_br_cnab_boleto_wallet_code,group_cnab_manager,1,1,1,1 -access_l10n_br_cnab_boleto_wallet_code_user,access_l10n_br_cnab_boleto_wallet_code user,model_l10n_br_cnab_boleto_wallet_code,group_cnab_user,1,0,0,0 access_l10n_br_cnab_code_manager,access_l10n_br_cnab_code manager,model_l10n_br_cnab_code,group_cnab_manager,1,1,1,1 access_l10n_br_cnab_code_user,access_l10n_br_cnab_code user,model_l10n_br_cnab_code,group_cnab_user,1,0,0,0 +access_l10n_br_cnab_config_manager,access_l10n_br_cnab_config manager,model_l10n_br_cnab_config,group_cnab_manager,1,1,1,1 +access_l10n_br_cnab_config_user,access_l10n_br_cnab_config user,model_l10n_br_cnab_config,group_cnab_user,1,0,0,0 diff --git a/l10n_br_account_payment_order/static/description/index.html b/l10n_br_account_payment_order/static/description/index.html index 4623fba3cf52..8fcf276c86ad 100644 --- a/l10n_br_account_payment_order/static/description/index.html +++ b/l10n_br_account_payment_order/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Payment Order

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:074125f8f0a89da5cad7e8bdef1ccd67e8398ff4942388ce2e452c31429aa3b2 +!! source digest: sha256:f0fe52940d9a535a143d7f7f21297460bf87b3b6f664e261375c422b836d3293 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

O modulo implementa a parte comum da infra-estrutura necessária para o uso do CNAB 240 ou 400 localizando o modulo https://github.com/OCA/bank-payment/tree/12.0/account_payment_order onde o Modo de Pagamento é usado para as configurações especificas de cada CNAB e a Ordem de Pagamento para o envio de Instruções CNAB, também é incluído grupos de acesso para permissões de segurança e o registro do LOG de retorno. Porém a implementação foi pensada para permitir que seja possível usar diferentes bibliotecas para gerar e tratar o retorno do CNAB, por isso é preciso instalar um segundo modulo que vai ter essa função, portanto a ideia é que aqui estará tudo que for comum para a implementação mas não irá funcionar sem esse segundo modulo.

diff --git a/l10n_br_account_payment_order/views/account_move_line.xml b/l10n_br_account_payment_order/views/account_move_line.xml index 997421728fd3..c352712eeb9a 100644 --- a/l10n_br_account_payment_order/views/account_move_line.xml +++ b/l10n_br_account_payment_order/views/account_move_line.xml @@ -17,10 +17,6 @@ show - @@ -58,10 +54,6 @@ - @@ -80,10 +72,6 @@ - diff --git a/l10n_br_account_payment_order/views/account_payment_line.xml b/l10n_br_account_payment_order/views/account_payment_line.xml index 4ef6fefdb3b9..a254433ac4f5 100644 --- a/l10n_br_account_payment_order/views/account_payment_line.xml +++ b/l10n_br_account_payment_order/views/account_payment_line.xml @@ -91,10 +91,6 @@ name="movement_type" attrs="{'invisible': [('payment_method_code', '!=', '240')]}" /> - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/l10n_br_account_payment_order/views/l10n_br_cnab_boleto_wallet_code_view.xml b/l10n_br_account_payment_order/views/l10n_br_cnab_boleto_wallet_code_view.xml deleted file mode 100644 index 0cb43661cc26..000000000000 --- a/l10n_br_account_payment_order/views/l10n_br_cnab_boleto_wallet_code_view.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - l10n_br_cnab.boleto.wallet.code.tree - l10n_br_cnab.boleto.wallet.code - - - - - - - - - - - - l10n_br_cnab.boleto.wallet.code.search - l10n_br_cnab.boleto.wallet.code - - - - - - - - - - - - - - - - - - - l10n_br_cnab.boleto.wallet.code.form.view - l10n_br_cnab.boleto.wallet.code - -
- - - - - - - - - -
- -
-
-
-
- - - CNAB Boleto Wallet Code - l10n_br_cnab.boleto.wallet.code - tree,form - {'group_by':['bank_id', 'payment_method_id']} - - - - -
diff --git a/l10n_br_account_payment_order/views/l10n_br_cnab_config_view.xml b/l10n_br_account_payment_order/views/l10n_br_cnab_config_view.xml new file mode 100644 index 000000000000..f899e5ad0f03 --- /dev/null +++ b/l10n_br_account_payment_order/views/l10n_br_cnab_config_view.xml @@ -0,0 +1,331 @@ + + + + + + l10n_br_cnab.config.tree + l10n_br_cnab.config + + + + + + + + + + + l10n_br_cnab.config.search + l10n_br_cnab.config + + + + + + + + + + + + + + + l10n_br_cnab.config.form.view + l10n_br_cnab.config + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+ + + CNAB Config + l10n_br_cnab.config + tree,form + {'group_by':['bank_id', 'payment_method_id']} + + + + +
diff --git a/l10n_br_account_payment_order/views/l10n_br_cnab_mov_instruction_code_view.xml b/l10n_br_account_payment_order/views/l10n_br_cnab_mov_instruction_code_view.xml deleted file mode 100644 index 8c511fbe8615..000000000000 --- a/l10n_br_account_payment_order/views/l10n_br_cnab_mov_instruction_code_view.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - l10n_br_cnab.mov.instruction.code.tree - l10n_br_cnab.mov.instruction.code - - - - - - - - - - - - l10n_br_cnab.mov.instruction.code.search - l10n_br_cnab.mov.instruction.code - - - - - - - - - - - - - - - - - - - l10n_br_cnab.mov.instruction.code.form.view - l10n_br_cnab.mov.instruction.code - -
- - - - - - - - - -
- -
-
-
-
- - - CNAB Movement Instruction Code - l10n_br_cnab.mov.instruction.code - tree,form - {'group_by':['bank_id', 'payment_method_id']} - - - - -
diff --git a/l10n_br_account_payment_order/views/l10n_br_cnab_return_move_code_view.xml b/l10n_br_account_payment_order/views/l10n_br_cnab_return_move_code_view.xml deleted file mode 100644 index 485fa73ad7dd..000000000000 --- a/l10n_br_account_payment_order/views/l10n_br_cnab_return_move_code_view.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - l10n_br_cnab.return.move.code.tree - l10n_br_cnab.return.move.code - - - - - - - - - - - - l10n_br_cnab.return.move.code.search - l10n_br_cnab.return.move.code - - - - - - - - - - - - - - - - - - - l10n_br_cnab.return.move.code.form.view - l10n_br_cnab.return.move.code - -
- - - - - - - -
- -
-
-
-
-
- - - CNAB Return Move Code - l10n_br_cnab.return.move.code - tree,form - {'group_by':['bank_id', 'payment_method_id']} - - - - -
diff --git a/l10n_br_account_withholding/README.rst b/l10n_br_account_withholding/README.rst index e3d3a282eba5..fc69e140dbf5 100644 --- a/l10n_br_account_withholding/README.rst +++ b/l10n_br_account_withholding/README.rst @@ -7,7 +7,7 @@ L10n Br Account Withholding !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ca67496378cebf081c08378c2d709a409dc85826a9e842cd45f99842296e46e2 + !! source digest: sha256:5b829162812b441622cd71bf5043452dc30f90ddfa553078dcb4438d0313ac91 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_account_withholding/__manifest__.py b/l10n_br_account_withholding/__manifest__.py index a84e12d3e499..c9c0560b796a 100644 --- a/l10n_br_account_withholding/__manifest__.py +++ b/l10n_br_account_withholding/__manifest__.py @@ -5,7 +5,7 @@ "name": "L10n Br Account Withholding", "summary": """ Brazilian Withholding Invoice Generator""", - "version": "14.0.1.2.0", + "version": "14.0.1.2.1", "license": "AGPL-3", "author": "Escodoo,Akretion,Odoo Community Association (OCA)", "maintainers": ["marcelsavegnago", "renatonlima"], diff --git a/l10n_br_account_withholding/models/account_move.py b/l10n_br_account_withholding/models/account_move.py index 68918e32b4fa..fec0f58175fd 100644 --- a/l10n_br_account_withholding/models/account_move.py +++ b/l10n_br_account_withholding/models/account_move.py @@ -8,7 +8,6 @@ class AccountMove(models.Model): - _inherit = "account.move" wh_invoice_count = fields.Integer( diff --git a/l10n_br_account_withholding/models/account_move_line.py b/l10n_br_account_withholding/models/account_move_line.py index 50b82d4884f8..c1a302f2bbc5 100644 --- a/l10n_br_account_withholding/models/account_move_line.py +++ b/l10n_br_account_withholding/models/account_move_line.py @@ -10,7 +10,6 @@ class AccountMoveLine(models.Model): - _inherit = "account.move.line" wh_move_line_id = fields.Many2one( diff --git a/l10n_br_account_withholding/models/l10n_br_fiscal_tax_group.py b/l10n_br_account_withholding/models/l10n_br_fiscal_tax_group.py index 0173cf407ed1..83d02bcedd77 100644 --- a/l10n_br_account_withholding/models/l10n_br_fiscal_tax_group.py +++ b/l10n_br_account_withholding/models/l10n_br_fiscal_tax_group.py @@ -5,7 +5,6 @@ class FiscalTaxGroup(models.Model): - _inherit = "l10n_br_fiscal.tax.group" journal_id = fields.Many2one( diff --git a/l10n_br_account_withholding/static/description/index.html b/l10n_br_account_withholding/static/description/index.html index 27bb533a3868..43efee97fcf6 100644 --- a/l10n_br_account_withholding/static/description/index.html +++ b/l10n_br_account_withholding/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -366,7 +367,7 @@

L10n Br Account Withholding

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:ca67496378cebf081c08378c2d709a409dc85826a9e842cd45f99842296e46e2 +!! source digest: sha256:5b829162812b441622cd71bf5043452dc30f90ddfa553078dcb4438d0313ac91 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Automatize a conformidade fiscal brasileira, simplificando a criação de @@ -498,7 +499,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_account_withholding/tests/test_account_wh_invoice.py b/l10n_br_account_withholding/tests/test_account_wh_invoice.py index c26b0841ecf5..5c69d4ac0b99 100644 --- a/l10n_br_account_withholding/tests/test_account_wh_invoice.py +++ b/l10n_br_account_withholding/tests/test_account_wh_invoice.py @@ -74,7 +74,7 @@ def setup_company_data(cls, company_name, chart_template=None, **kwargs): icms_regulation_id=cls.env.ref("l10n_br_fiscal.tax_icms_regulation").id, cnae_main_id=cls.env.ref("l10n_br_fiscal.cnae_3101200").id, document_type_id=cls.env.ref("l10n_br_fiscal.document_55").id, - **kwargs + **kwargs, ) res["company"].partner_id.state_id = cls.env.ref("base.state_br_sp").id chart_template.load_fiscal_taxes() diff --git a/l10n_br_base/README.rst b/l10n_br_base/README.rst index beb2083f38e1..d7aa8511abd4 100644 --- a/l10n_br_base/README.rst +++ b/l10n_br_base/README.rst @@ -7,7 +7,7 @@ Brazilian Localization Base !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:f5470b06ccda3b1c7f614e045d84f5b4cf8d371f05dc550dd60aa7c028e4cd3a + !! source digest: sha256:824c78a6bd3d2e5e6e9eb0b48273e1a0a3681c1aa4d890ce9f1dacaa3f6291dd !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/l10n_br_base/__manifest__.py b/l10n_br_base/__manifest__.py index 8283a8f31442..06a39f1c9854 100644 --- a/l10n_br_base/__manifest__.py +++ b/l10n_br_base/__manifest__.py @@ -9,7 +9,7 @@ "author": "Akretion,Odoo Community Association (OCA)", "maintainers": ["renatonlima", "rvalyi"], "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.3.16.0", + "version": "14.0.3.16.1", "depends": ["base", "base_setup", "base_address_city", "base_address_extended"], "data": [ "security/ir.model.access.csv", diff --git a/l10n_br_base/models/res_partner_bank.py b/l10n_br_base/models/res_partner_bank.py index c44b339b970a..e641849a16d8 100644 --- a/l10n_br_base/models/res_partner_bank.py +++ b/l10n_br_base/models/res_partner_bank.py @@ -107,8 +107,8 @@ def _check_transc_acc_type(self): if not rec.bra_number or not rec.acc_number_dig: raise UserError( _( - "A Checking Account or Saving Account transactional account " - "must contain the branch number and the account verification " - "digit." + "A Checking Account or Saving Account transactional account" + " must contain the branch number and the account" + " verification digit." ) ) diff --git a/l10n_br_base/static/description/index.html b/l10n_br_base/static/description/index.html index e04eb908e2fa..eb2984a93d26 100644 --- a/l10n_br_base/static/description/index.html +++ b/l10n_br_base/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localization Base

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:f5470b06ccda3b1c7f614e045d84f5b4cf8d371f05dc550dd60aa7c028e4cd3a +!! source digest: sha256:824c78a6bd3d2e5e6e9eb0b48273e1a0a3681c1aa4d890ce9f1dacaa3f6291dd !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Mature License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Este é o módulo ‘raiz’ da localização brasileira. Ele traz adaptações nos modelos do módulo base do Odoo como Parceiros, Empresas e Endereços:

diff --git a/l10n_br_base/tests/test_valid_createid.py b/l10n_br_base/tests/test_valid_createid.py index 5b4a79bba896..a340b3e2f9de 100644 --- a/l10n_br_base/tests/test_valid_createid.py +++ b/l10n_br_base/tests/test_valid_createid.py @@ -136,9 +136,7 @@ def test_comp_valid(self): .create(self.company_valid) ) except Exception: - assert ( - company - ), "Error when using .create() even with valid \ + assert company, "Error when using .create() even with valid \ and Inscricao Estadual" def test_comp_invalid_cnpj(self): @@ -168,9 +166,7 @@ def test_part_valid(self): .create(self.partner_valid) ) except Exception: - assert ( - partner - ), "Error when using .create() even with valid CPF \ + assert partner, "Error when using .create() even with valid CPF \ and Inscricao Estadual" def test_part_invalid_cpf(self): diff --git a/l10n_br_base/tools.py b/l10n_br_base/tools.py index 2f11d8345c34..bb971880eca7 100644 --- a/l10n_br_base/tools.py +++ b/l10n_br_base/tools.py @@ -22,25 +22,27 @@ def check_ie(env, inscr_est, state, country): :return: """ if env and inscr_est and state and country: - if country == env.ref("base.br"): - disable_ie_validation = env["ir.config_parameter"].sudo().get_param( - "l10n_br_base.disable_ie_validation", default=False - ) or env.context.get("disable_ie_validation") - - if not disable_ie_validation: - # TODO: em aberto debate sobre: - # Se no caso da empresa ser 'isenta' do IE o campo - # deve estar vazio ou pode ter algum valor como abaixo - if inscr_est not in ("isento", "isenta", "ISENTO", "ISENTA"): + if not country == env.ref("base.br"): + return # skip + disable_ie_validation = env["ir.config_parameter"].sudo().get_param( + "l10n_br_base.disable_ie_validation", default=False + ) or env.context.get("disable_ie_validation") - if not ie.validar(state.code.lower(), inscr_est): - raise ValidationError( - _( - "Estadual Inscription %(inscr)s Invalid for State %(state)s!", - inscr=inscr_est, - state=state.name, - ) - ) + if disable_ie_validation: + return # skip + # TODO: em aberto debate sobre: + # Se no caso da empresa ser 'isenta' do IE o campo + # deve estar vazio ou pode ter algum valor como abaixo + if inscr_est in ("isento", "isenta", "ISENTO", "ISENTA"): + return # skip + if not ie.validar(state.code.lower(), inscr_est): + raise ValidationError( + _( + "Estadual Inscription %(inscr)s Invalid for State %(state)s!", + inscr=inscr_est, + state=state.name, + ) + ) def check_cnpj_cpf(env, cnpj_cpf_value, country): diff --git a/l10n_br_cnab_structure/README.rst b/l10n_br_cnab_structure/README.rst index 90da821f878f..48930d90f6b5 100644 --- a/l10n_br_cnab_structure/README.rst +++ b/l10n_br_cnab_structure/README.rst @@ -7,7 +7,7 @@ CNAB Structure !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:c0209fb88dae6e349ca1cb4500e910d1320770d2d2e744e1f36092789aa55629 + !! source digest: sha256:35a7e8c1ea661aae49802528bcbca15767ee2132fdd7c2d61fda0ae125b80a6e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_cnab_structure/__manifest__.py b/l10n_br_cnab_structure/__manifest__.py index 49692005468a..65bab537f080 100644 --- a/l10n_br_cnab_structure/__manifest__.py +++ b/l10n_br_cnab_structure/__manifest__.py @@ -6,7 +6,7 @@ "summary": """ This module allows defining the structure for generating the CNAB file. Used to exchange information with Brazilian banks.""", - "version": "14.0.1.3.0", + "version": "14.0.1.3.1", "author": "Engenere, Escodoo, Odoo Community Association (OCA)", "maintainers": ["antoniospneto", "felipemotter"], "website": "https://github.com/OCA/l10n-brazil", diff --git a/l10n_br_cnab_structure/i18n/l10n_br_cnab_structure.pot b/l10n_br_cnab_structure/i18n/l10n_br_cnab_structure.pot index 0a43161705f4..c775cadae4d9 100644 --- a/l10n_br_cnab_structure/i18n/l10n_br_cnab_structure.pot +++ b/l10n_br_cnab_structure/i18n/l10n_br_cnab_structure.pot @@ -528,6 +528,36 @@ msgstr "" msgid "Condition" msgstr "" +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_end_pos +msgid "Conf Detail End Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_start_pos +msgid "Conf Detail Start Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_end_pos +msgid "Conf Payment Way End Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_start_pos +msgid "Conf Payment Way Start Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_end_pos +msgid "Conf Segment End Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_start_pos +msgid "Conf Segment Start Pos" +msgstr "" + #. module: l10n_br_cnab_structure #: model_terms:ir.ui.view,arch_db:l10n_br_cnab_structure.cnab_structure_form_view msgid "Configuration Fields" @@ -740,16 +770,16 @@ msgstr "" #. module: l10n_br_cnab_structure #: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line_field__sending_dynamic_content msgid "" -"Expression in Python to define the final value of the content,you can use the following predefined words: \n" +"Expression in Python to define the final value of the content,you can use the following predefined words:\n" "\n" -"'content' returns the value of the mapped content source field. \n" -"'time' class to handle date. \n" -"'seq_batch' returns the batch sequence. \n" -"'seq_record_detail' returns the sequence for detail record in the batch. \n" -"'payment_way_code' return the batch payment way \n" -"'patment_type_code' return the batch payment type \n" -"'qty_batches' returns the number of batches \n" -"'qty_records' returns the number of records \n" +"'content' returns the value of the mapped content source field.\n" +"'time' class to handle date.\n" +"'seq_batch' returns the batch sequence.\n" +"'seq_record_detail' returns the sequence for detail record in the batch.\n" +"'payment_way_code' return the batch payment way\n" +"'patment_type_code' return the batch payment type\n" +"'qty_batches' returns the number of batches\n" +"'qty_records' returns the number of records\n" "'batch_detail_lines' returns a list of batch detail records.'segment_code' returns the code of the segment defined in the header of the line." msgstr "" @@ -1030,12 +1060,12 @@ msgid "Last Updated on" msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_end_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_end_pos msgid "Last position of segment of an detail record. Only for detail records." msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_end_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_end_pos msgid "" "Last position of sequencial identification of Detail Records. Only for " "detail records." @@ -1368,14 +1398,14 @@ msgid "Payment Way" msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_end_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_end_pos msgid "" "Payment Way last position in Header Batch Records. Only for Header Batch " "Records." msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_start_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_start_pos msgid "" "Payment Way start position in Header Batch Records. Only for Header Batch " "Records." @@ -1405,7 +1435,7 @@ msgid "Phone Number" msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_start_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_start_pos msgid "" "Position of sequencial identification of Detail Records. Only for detail " "records." @@ -1492,13 +1522,18 @@ msgid "" msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line__content_source_model_id -#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line_field__content_source_model_id #: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__content_source_model_id msgid "" "Related model that will provide the origin of the contents of CNAB files." msgstr "" +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line__content_source_model_id +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line_field__content_source_model_id +msgid "" +"Related model that will provide the origin of the contents of CNABfiles." +msgstr "" + #. module: l10n_br_cnab_structure #: model_terms:ir.ui.view,arch_db:l10n_br_cnab_structure.field_select_wizard_form msgid "Remove Last Field" @@ -1609,7 +1644,7 @@ msgid "Start Position" msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_start_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_start_pos msgid "" "Start position of segment of an detail record. Only for detail records." msgstr "" diff --git a/l10n_br_cnab_structure/i18n/pt_BR.po b/l10n_br_cnab_structure/i18n/pt_BR.po index 9474170a2683..9636b602d9e9 100644 --- a/l10n_br_cnab_structure/i18n/pt_BR.po +++ b/l10n_br_cnab_structure/i18n/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-09-11 18:06+0000\n" +"PO-Revision-Date: 2024-09-26 14:06+0000\n" "Last-Translator: Marcel Savegnago \n" "Language-Team: none\n" "Language: pt_BR\n" @@ -554,6 +554,36 @@ msgstr "Empresa" msgid "Condition" msgstr "Condição" +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_end_pos +msgid "Conf Detail End Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_start_pos +msgid "Conf Detail Start Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_end_pos +msgid "Conf Payment Way End Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_start_pos +msgid "Conf Payment Way Start Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_end_pos +msgid "Conf Segment End Pos" +msgstr "" + +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_start_pos +msgid "Conf Segment Start Pos" +msgstr "" + #. module: l10n_br_cnab_structure #: model_terms:ir.ui.view,arch_db:l10n_br_cnab_structure.cnab_structure_form_view msgid "Configuration Fields" @@ -767,16 +797,16 @@ msgstr "" #: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line_field__sending_dynamic_content msgid "" "Expression in Python to define the final value of the content,you can use " -"the following predefined words: \n" +"the following predefined words:\n" "\n" -"'content' returns the value of the mapped content source field. \n" -"'time' class to handle date. \n" -"'seq_batch' returns the batch sequence. \n" -"'seq_record_detail' returns the sequence for detail record in the batch. \n" -"'payment_way_code' return the batch payment way \n" -"'patment_type_code' return the batch payment type \n" -"'qty_batches' returns the number of batches \n" -"'qty_records' returns the number of records \n" +"'content' returns the value of the mapped content source field.\n" +"'time' class to handle date.\n" +"'seq_batch' returns the batch sequence.\n" +"'seq_record_detail' returns the sequence for detail record in the batch.\n" +"'payment_way_code' return the batch payment way\n" +"'patment_type_code' return the batch payment type\n" +"'qty_batches' returns the number of batches\n" +"'qty_records' returns the number of records\n" "'batch_detail_lines' returns a list of batch detail records.'segment_code' " "returns the code of the segment defined in the header of the line." msgstr "" @@ -1020,7 +1050,7 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_return_lot____last_update #: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure____last_update msgid "Last Modified on" -msgstr "" +msgstr "Última Modificação em" #. module: l10n_br_cnab_structure #: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_cnab_import_wizard__write_uid @@ -1057,12 +1087,12 @@ msgid "Last Updated on" msgstr "Última Atualização em" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_end_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_end_pos msgid "Last position of segment of an detail record. Only for detail records." msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_end_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_end_pos msgid "" "Last position of sequencial identification of Detail Records. Only for " "detail records." @@ -1186,7 +1216,7 @@ msgstr "" #. module: l10n_br_cnab_structure #: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_line_field__notes msgid "Notes" -msgstr "" +msgstr "Observações" #. module: l10n_br_cnab_structure #: model_terms:ir.ui.view,arch_db:l10n_br_cnab_structure.cnab_line_field_form_view @@ -1395,14 +1425,14 @@ msgid "Payment Way" msgstr "Forma de Pagamento" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_end_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_end_pos msgid "" "Payment Way last position in Header Batch Records. Only for Header Batch " "Records." msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_start_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_payment_way_start_pos msgid "" "Payment Way start position in Header Batch Records. Only for Header Batch " "Records." @@ -1432,7 +1462,7 @@ msgid "Phone Number" msgstr "Número de Telefone" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_start_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_detail_start_pos msgid "" "Position of sequencial identification of Detail Records. Only for detail " "records." @@ -1519,13 +1549,18 @@ msgid "" msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line__content_source_model_id -#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line_field__content_source_model_id #: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__content_source_model_id msgid "" "Related model that will provide the origin of the contents of CNAB files." msgstr "" +#. module: l10n_br_cnab_structure +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line__content_source_model_id +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_line_field__content_source_model_id +msgid "" +"Related model that will provide the origin of the contents of CNABfiles." +msgstr "" + #. module: l10n_br_cnab_structure #: model_terms:ir.ui.view,arch_db:l10n_br_cnab_structure.field_select_wizard_form msgid "Remove Last Field" @@ -1636,7 +1671,7 @@ msgid "Start Position" msgstr "" #. module: l10n_br_cnab_structure -#: model:ir.model.fields,field_description:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_start_pos +#: model:ir.model.fields,help:l10n_br_cnab_structure.field_l10n_br_cnab_structure__conf_segment_start_pos msgid "Start position of segment of an detail record. Only for detail records." msgstr "" diff --git a/l10n_br_cnab_structure/models/account_payment_line.py b/l10n_br_cnab_structure/models/account_payment_line.py index 65b178f298e6..e00b0de69997 100644 --- a/l10n_br_cnab_structure/models/account_payment_line.py +++ b/l10n_br_cnab_structure/models/account_payment_line.py @@ -23,7 +23,8 @@ class AccountPaymentLine(models.Model): cnab_beneficiary_name = fields.Char( compute="_compute_cnab_beneficiary_name", - help="Name of the beneficiary (Nome do Favorecido) that will be informed in the CNAB.", + help="Name of the beneficiary (Nome do Favorecido) that will be informed" + " in the CNAB.", ) cnab_pix_transfer_type_id = fields.Many2one( @@ -85,7 +86,8 @@ def _compute_cnab_payment_way_id(self): mode = bline.order_id.payment_mode_id cnab_structure = bline.order_id.cnab_structure_id result = mode.cnab_payment_way_ids.filtered( - lambda a: a.cnab_structure_id == cnab_structure + lambda a, cnab_structure=cnab_structure: a.cnab_structure_id + == cnab_structure ) if not result: raise UserError( diff --git a/l10n_br_cnab_structure/models/cnab_batch.py b/l10n_br_cnab_structure/models/cnab_batch.py index 7e9e72f7b26f..64e68a329626 100644 --- a/l10n_br_cnab_structure/models/cnab_batch.py +++ b/l10n_br_cnab_structure/models/cnab_batch.py @@ -121,21 +121,24 @@ def check_batch(self): if not segment_lines: raise UserError( _( - f"Batch {self.name}: Every Batch need to have at least one segment line!" + f"Batch {self.name}: Every Batch need to have at least one segment" + " line!" ) ) if len(header_line) != 1: raise UserError( _( - f"Batch {self.name}: One batch need to have one and only one header line!" + f"Batch {self.name}: One batch need to have one and only one" + " header line!" ) ) if len(trailer_line) != 1: raise UserError( _( - f"Batch {self.name}: One batch need to have one and only one trailer line!" + f"Batch {self.name}: One batch need to have one and only one" + " trailer line!" ) ) diff --git a/l10n_br_cnab_structure/models/cnab_line.py b/l10n_br_cnab_structure/models/cnab_line.py index b387adf120e2..f75a66350704 100644 --- a/l10n_br_cnab_structure/models/cnab_line.py +++ b/l10n_br_cnab_structure/models/cnab_line.py @@ -35,7 +35,8 @@ class CNABLine(models.Model): content_source_model_id = fields.Many2one( comodel_name="ir.model", string="Content Source", - help="Related model that will provide the origin of the contents of CNAB files.", + help="Related model that will provide the origin of the contents of CNAB" + "files.", compute="_compute_content_source_model_id", states={"draft": [("readonly", False)]}, ) @@ -248,7 +249,8 @@ def check_line(self): if self.batch_id and self.batch_id.cnab_structure_id != self.cnab_structure_id: raise UserError( _( - f"{self.name}: line cnab structure is different of batch cnab structure." + f"{self.name}: line cnab structure is different of batch cnab" + " structure." ) ) diff --git a/l10n_br_cnab_structure/models/cnab_line_field.py b/l10n_br_cnab_structure/models/cnab_line_field.py index d48f6adb57c9..ac8219ba5c01 100644 --- a/l10n_br_cnab_structure/models/cnab_line_field.py +++ b/l10n_br_cnab_structure/models/cnab_line_field.py @@ -85,7 +85,8 @@ class CNABField(models.Model): comodel_name="ir.model", related="cnab_line_id.content_source_model_id" ) content_source_field = fields.Char( - help="Inform the field with the origin of the content, expressed with dot notation.", + help="Inform the field with the origin of the content, expressed with" + " dot notation.", readonly=True, states={"draft": [("readonly", False)]}, ) @@ -99,17 +100,18 @@ class CNABField(models.Model): sending_dynamic_content = fields.Char( help="Expression in Python to define the final value of the content," - "you can use the following predefined words: \n\n" - "'content' returns the value of the mapped content source field. \n" - "'time' class to handle date. \n" - "'seq_batch' returns the batch sequence. \n" - "'seq_record_detail' returns the sequence for detail record in the batch. \n" - "'payment_way_code' return the batch payment way \n" - "'patment_type_code' return the batch payment type \n" - "'qty_batches' returns the number of batches \n" - "'qty_records' returns the number of records \n" + "you can use the following predefined words:\n\n" + "'content' returns the value of the mapped content source field.\n" + "'time' class to handle date.\n" + "'seq_batch' returns the batch sequence.\n" + "'seq_record_detail' returns the sequence for detail record in the batch.\n" + "'payment_way_code' return the batch payment way\n" + "'patment_type_code' return the batch payment type\n" + "'qty_batches' returns the number of batches\n" + "'qty_records' returns the number of records\n" "'batch_detail_lines' returns a list of batch detail records." - "'segment_code' returns the code of the segment defined in the header of the line.", + "'segment_code' returns the code of the segment defined in the header" + " of the line.", readonly=True, states={"draft": [("readonly", False)]}, ) @@ -119,7 +121,8 @@ class CNABField(models.Model): ) content_dest_field = fields.Char( string="Content Destination Field", - help="Inform the field with the origin of the content, expressed with dot notation.", + help="Inform the field with the origin of the content, expressed with" + " dot notation.", readonly=True, states={"draft": [("readonly", False)]}, ) @@ -266,7 +269,7 @@ def check_field(self): if self.start_pos > self.end_pos: raise UserError( _( - f"{self.name} in {self.cnab_line_id}: Start position is greater than end" - " position." + f"{self.name} in {self.cnab_line_id}: Start position is greater" + " than end position." ) ) diff --git a/l10n_br_cnab_structure/models/cnab_structure.py b/l10n_br_cnab_structure/models/cnab_structure.py index 0f2115c1a114..803ae088ae79 100644 --- a/l10n_br_cnab_structure/models/cnab_structure.py +++ b/l10n_br_cnab_structure/models/cnab_structure.py @@ -62,7 +62,8 @@ class CNABStructure(models.Model): content_source_model_id = fields.Many2one( comodel_name="ir.model", string="Content Source", - help="Related model that will provide the origin of the contents of CNAB files.", + help="Related model that will provide the origin of the contents of CNAB" + " files.", compute="_compute_content_source_model_id", ) @@ -103,41 +104,43 @@ class CNABStructure(models.Model): ) conf_payment_way_start_pos = fields.Integer( - string="Payment Way start position in Header Batch Records." + help="Payment Way start position in Header Batch Records." " Only for Header Batch Records.", readonly=True, states={"draft": [("readonly", False)]}, ) conf_payment_way_end_pos = fields.Integer( - string="Payment Way last position in Header Batch Records." + help="Payment Way last position in Header Batch Records." " Only for Header Batch Records.", readonly=True, states={"draft": [("readonly", False)]}, ) conf_detail_start_pos = fields.Integer( - string="Position of sequencial identification of Detail Records." + help="Position of sequencial identification of Detail Records." " Only for detail records.", readonly=True, states={"draft": [("readonly", False)]}, ) conf_detail_end_pos = fields.Integer( - string="Last position of sequencial identification of Detail Records." + help="Last position of sequencial identification of Detail Records." " Only for detail records.", readonly=True, states={"draft": [("readonly", False)]}, ) conf_segment_start_pos = fields.Integer( - string="Start position of segment of an detail record. Only for detail records.", + help="Start position of segment of an detail record. Only for detail" + " records.", readonly=True, states={"draft": [("readonly", False)]}, ) conf_segment_end_pos = fields.Integer( - string="Last position of segment of an detail record. Only for detail records.", + help="Last position of segment of an detail record. Only for detail" + " records.", readonly=True, states={"draft": [("readonly", False)]}, ) @@ -408,7 +411,8 @@ def check_structure(self): if len(trailer_line) != 1: raise UserError( _( - f"{self.name}: Structures need to have one and only one trailer line!" + f"{self.name}: Structures need to have one and only one trailer" + " line!" ) ) diff --git a/l10n_br_cnab_structure/models/l10n_br_cnab_event.py b/l10n_br_cnab_structure/models/l10n_br_cnab_event.py index 60fc60f01f3a..1bbe90dfc135 100644 --- a/l10n_br_cnab_structure/models/l10n_br_cnab_event.py +++ b/l10n_br_cnab_structure/models/l10n_br_cnab_event.py @@ -93,8 +93,8 @@ def create(self, vals): """Override Create Method""" event = super().create(vals) if not event.cnab_return_log_id.cnab_structure_id: - # if there is no cnab_structure_id it is because the return file is not being - # processed by this module, so there is nothing to do here. + # if there is no cnab_structure_id it is because the return file is not + # being processed by this module, so there is nothing to do here. return event event.load_description_occurrences() event.load_bank_payment_line() @@ -202,7 +202,8 @@ def load_description_occurrences(self): def _get_liq_move_vals(self): return { "name": f"CNAB Return {self.cnab_return_log_id.bank_id.short_name} - " - f"{self.cnab_return_log_id.bank_account_id.acc_number} - REF: {self.your_number}", + f"{self.cnab_return_log_id.bank_account_id.acc_number} - " + f"REF: {self.your_number}", "ref": self.your_number, "is_cnab": True, "journal_id": self.journal_id.id, @@ -223,7 +224,8 @@ def _get_reconciliation_items(self, move_id): move_lines = self.move_line_ids.sorted(key=lambda line: line.date_maturity) for index, move_line in enumerate(move_lines): line_balance = abs(move_line.balance) - # the total value of counterpart move lines must be equal to balance in return event + # the total value of counterpart move lines must be equal to balance in + # return event if index != len(self.move_line_ids) - 1: if balance > line_balance: value = line_balance diff --git a/l10n_br_cnab_structure/static/description/index.html b/l10n_br_cnab_structure/static/description/index.html index b4fa5af61396..3674ec63e924 100644 --- a/l10n_br_cnab_structure/static/description/index.html +++ b/l10n_br_cnab_structure/static/description/index.html @@ -367,7 +367,7 @@

CNAB Structure

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:c0209fb88dae6e349ca1cb4500e910d1320770d2d2e744e1f36092789aa55629 +!! source digest: sha256:35a7e8c1ea661aae49802528bcbca15767ee2132fdd7c2d61fda0ae125b80a6e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module adds functionality for implementing brazilian banking automation by CNAB file exchange.

diff --git a/l10n_br_cnab_structure/wizard/cnab_import_wizard.py b/l10n_br_cnab_structure/wizard/cnab_import_wizard.py index eab491f9fe23..c54ac92c7b90 100644 --- a/l10n_br_cnab_structure/wizard/cnab_import_wizard.py +++ b/l10n_br_cnab_structure/wizard/cnab_import_wizard.py @@ -193,7 +193,8 @@ def _get_unique_batch_list(self, lines): batch_list = [] for line in lines: batch = self._get_content(line, "batch") - # Ignore batches from header and trailer of file, they will always be 0000 and 9999. + # Ignore batches from header and trailer of file, + # they will always be 0000 and 9999. # If there is an exception, it must be handled. if batch not in ["0000", "9999"]: batch_list.append(batch) @@ -211,7 +212,7 @@ def _get_segments(self, segment_lines, batch_template): for s in segment_lines: segment_code = self._get_content(s, "segment") line_template = batch_template.line_ids.filtered( - lambda line: line.type == "segment" + lambda line, segment_code=segment_code: line.type == "segment" and line.segment_code == segment_code ) segment = {"raw_line": s, "line_template": line_template} diff --git a/l10n_br_cnab_structure/wizard/cnab_preview_wizard.py b/l10n_br_cnab_structure/wizard/cnab_preview_wizard.py index 28a60788d0a0..02b1a0c0ec55 100644 --- a/l10n_br_cnab_structure/wizard/cnab_preview_wizard.py +++ b/l10n_br_cnab_structure/wizard/cnab_preview_wizard.py @@ -60,7 +60,7 @@ def load_file(self): return { "name": "CNAB", "type": "ir.actions.act_url", - "url": f"/web/content/?model=cnab.preview.wizard&id={self.id}&field=cnab_file" - "&filename_field=cnab_file_name&download=true", + "url": f"/web/content/?model=cnab.preview.wizard&id={self.id}" + "&field=cnab_file&filename_field=cnab_file_name&download=true", "target": "self", } diff --git a/l10n_br_contract/README.rst b/l10n_br_contract/README.rst index 909986b8c408..2ca866b98b8a 100644 --- a/l10n_br_contract/README.rst +++ b/l10n_br_contract/README.rst @@ -7,7 +7,7 @@ Brazilian Localization Contract !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:2e883b0e0ad0e0b0949b85c13712c41cdba0c2ef61b91590d3083a8bc163a8b4 + !! source digest: sha256:886cf6ddb1b4092a8cf238d5f42f32fc359188cee1dc17502b73dd15085191a5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_contract/__manifest__.py b/l10n_br_contract/__manifest__.py index 1a72b03522dd..d5c4e04e744a 100644 --- a/l10n_br_contract/__manifest__.py +++ b/l10n_br_contract/__manifest__.py @@ -5,7 +5,7 @@ "name": "Brazilian Localization Contract", "summary": """ Customization of Contract module for implementations in Brazil.""", - "version": "14.0.2.4.0", + "version": "14.0.2.4.1", "license": "AGPL-3", "author": "KMEE,Odoo Community Association (OCA)", "maintainers": ["mileo", "marcelsavegnago"], diff --git a/l10n_br_contract/models/contract_contract.py b/l10n_br_contract/models/contract_contract.py index 937efcc2c6e9..6eaa0e10788b 100644 --- a/l10n_br_contract/models/contract_contract.py +++ b/l10n_br_contract/models/contract_contract.py @@ -123,7 +123,7 @@ def _prepare_recurring_invoices_values(self, date_ref=False): for invoice_val in super_inv_vals: # Identify how many Document Types exist for inv_line in invoice_val.get("invoice_line_ids"): - if type(inv_line[2]) is list: + if isinstance(inv_line[2], list): continue operation_line_id = self.env["l10n_br_fiscal.operation.line"].browse( diff --git a/l10n_br_contract/static/description/index.html b/l10n_br_contract/static/description/index.html index e94f34cb9bc1..d0f681450706 100644 --- a/l10n_br_contract/static/description/index.html +++ b/l10n_br_contract/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localization Contract

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:2e883b0e0ad0e0b0949b85c13712c41cdba0c2ef61b91590d3083a8bc163a8b4 +!! source digest: sha256:886cf6ddb1b4092a8cf238d5f42f32fc359188cee1dc17502b73dd15085191a5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module was written to extend the functionality of contract module to support the adequacy of Brazilian contract standards

diff --git a/l10n_br_cte_spec/i18n/pt_BR.po b/l10n_br_cte_spec/i18n/pt_BR.po index 85d22cdf51a7..a8a2a12be943 100644 --- a/l10n_br_cte_spec/i18n/pt_BR.po +++ b/l10n_br_cte_spec/i18n/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-02-19 14:22+0000\n" +"PO-Revision-Date: 2024-09-26 14:06+0000\n" "Last-Translator: Marcel Savegnago \n" "Language-Team: none\n" "Language: pt_BR\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 4.17\n" +"X-Generator: Weblate 5.6.2\n" #. module: l10n_br_cte_spec #: model:ir.model.fields.selection,name:l10n_br_cte_spec.selection__cte_40_semdata__cte40_tpPer__0 @@ -2985,7 +2985,7 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_cte_spec.field_cte_40_veicnovos__id #: model:ir.model.fields,field_description:l10n_br_cte_spec.field_spec_mixin_cte__id msgid "ID" -msgstr "" +msgstr "ID" #. module: l10n_br_cte_spec #: model:ir.model.fields,field_description:l10n_br_cte_spec.field_cte_40_tprocevento__cte40_ipTransmissor diff --git a/l10n_br_currency_rate_update/README.rst b/l10n_br_currency_rate_update/README.rst index 9d11a96921b3..7d9f3a6f26e1 100644 --- a/l10n_br_currency_rate_update/README.rst +++ b/l10n_br_currency_rate_update/README.rst @@ -7,7 +7,7 @@ Currency Rate Update BR !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:aafe67504df256f12ba9ddbeb907993b420378f039161f2491c800fe154fc5b0 + !! source digest: sha256:db3a8894c6293ada79d20fa74227119b1b82dce3b6521e56de2ada414ec53f65 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_currency_rate_update/__manifest__.py b/l10n_br_currency_rate_update/__manifest__.py index 90641ce24b66..587058ed8707 100644 --- a/l10n_br_currency_rate_update/__manifest__.py +++ b/l10n_br_currency_rate_update/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Currency Rate Update BR", "summary": "Update exchange rates using OCA modules for Brazil", - "version": "14.0.1.0.2", + "version": "14.0.1.0.3", "author": "Akretion, " "Odoo Community Association (OCA)", "maintainers": ["renatonlima"], "website": "https://github.com/OCA/l10n-brazil", diff --git a/l10n_br_currency_rate_update/static/description/index.html b/l10n_br_currency_rate_update/static/description/index.html index d31adedc3c2a..2e90dad6c6ed 100644 --- a/l10n_br_currency_rate_update/static/description/index.html +++ b/l10n_br_currency_rate_update/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@

Currency Rate Update BR

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:aafe67504df256f12ba9ddbeb907993b420378f039161f2491c800fe154fc5b0 +!! source digest: sha256:db3a8894c6293ada79d20fa74227119b1b82dce3b6521e56de2ada414ec53f65 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Este módulo implementa a consulta de cotação de moedas consultando o Banco @@ -438,7 +438,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_currency_rate_update/tests/test_currency_rate_update_bcb.py b/l10n_br_currency_rate_update/tests/test_currency_rate_update_bcb.py index 9b67f07969fb..1641ab143c13 100644 --- a/l10n_br_currency_rate_update/tests/test_currency_rate_update_bcb.py +++ b/l10n_br_currency_rate_update/tests/test_currency_rate_update_bcb.py @@ -20,8 +20,7 @@ def _not_every_day_test(method, self, modulo=7, remaining=1): return method(self) else: return lambda: _logger.info( - "Skipping test today because datetime.now().day %% %s != %s" - % (modulo, remaining) + f"Skipping test today because datetime.now().day % {modulo} != {remaining}" ) diff --git a/l10n_br_delivery/README.rst b/l10n_br_delivery/README.rst index f951fe8b7d5e..9294132662ab 100644 --- a/l10n_br_delivery/README.rst +++ b/l10n_br_delivery/README.rst @@ -7,7 +7,7 @@ delivery module Brazilian Localization !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:dcdeeaf9cdd8fdab67769d05a94ccfeed0dc665103dd935b85be6c36c149760e + !! source digest: sha256:b0564c2ed26c303d101f4b85c1de5fe736f4c251e8c2e3deda8d76e870315b4d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_delivery/__manifest__.py b/l10n_br_delivery/__manifest__.py index 6c96a91bd098..77dbf8769c8e 100644 --- a/l10n_br_delivery/__manifest__.py +++ b/l10n_br_delivery/__manifest__.py @@ -7,7 +7,7 @@ "author": "Akretion, Odoo Community Association (OCA)", "maintainers": ["renatonlima", "mbcosta"], "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.2.2.0", + "version": "14.0.2.2.1", "depends": [ "l10n_br_sale_stock", "delivery", diff --git a/l10n_br_delivery/i18n/pt_BR.po b/l10n_br_delivery/i18n/pt_BR.po index 40948035f659..01720900e413 100644 --- a/l10n_br_delivery/i18n/pt_BR.po +++ b/l10n_br_delivery/i18n/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-05-23 13:37+0000\n" +"PO-Revision-Date: 2024-09-26 14:06+0000\n" "Last-Translator: Marcel Savegnago \n" "Language-Team: none\n" "Language: pt_BR\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 4.17\n" +"X-Generator: Weblate 5.6.2\n" #. module: l10n_br_delivery #: model:ir.model.fields.selection,name:l10n_br_delivery.selection__account_incoterms__freight_responsibility__0 @@ -209,7 +209,6 @@ msgstr "Frete por Conta" #: model:ir.model.fields,field_description:l10n_br_delivery.field_l10n_br_fiscal_document_mixin_fields__id #: model:ir.model.fields,field_description:l10n_br_delivery.field_sale_order__id #: model:ir.model.fields,field_description:l10n_br_delivery.field_stock_picking__id -#, fuzzy msgid "ID" msgstr "ID" diff --git a/l10n_br_delivery/static/description/index.html b/l10n_br_delivery/static/description/index.html index 9e6a70d1f2b7..279aef749f83 100644 --- a/l10n_br_delivery/static/description/index.html +++ b/l10n_br_delivery/static/description/index.html @@ -367,7 +367,7 @@

delivery module Brazilian Localization

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:dcdeeaf9cdd8fdab67769d05a94ccfeed0dc665103dd935b85be6c36c149760e +!! source digest: sha256:b0564c2ed26c303d101f4b85c1de5fe736f4c251e8c2e3deda8d76e870315b4d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

(summary: extends the delivery module to comply with the fiscal documents requirements)

diff --git a/l10n_br_delivery/tests/test_delivery_inverse_amount.py b/l10n_br_delivery/tests/test_delivery_inverse_amount.py index a7cbaa66de05..7113ed839e2b 100644 --- a/l10n_br_delivery/tests/test_delivery_inverse_amount.py +++ b/l10n_br_delivery/tests/test_delivery_inverse_amount.py @@ -367,7 +367,7 @@ def test_not_cost_ratio_by_lines(self): ) for line in self.sale_demo.order_line: other_line = self.sale_demo.order_line.filtered( - lambda o_l: o_l.id != line.id + lambda o_l, line=line: o_l.id != line.id ) self.assertNotEqual( line.freight_value, @@ -403,7 +403,7 @@ def test_not_cost_ratio_by_lines(self): self.assertEqual(invoice.state, "posted", "Invoice should be in state Posted") for line in invoice.invoice_line_ids: other_line = invoice.invoice_line_ids.filtered( - lambda o_l: o_l.id != line.id + lambda o_l, line=line: o_l.id != line.id ) self.assertNotEqual( line.freight_value, @@ -426,7 +426,7 @@ def test_not_cost_ratio_by_lines(self): for line in fiscal_document_id.fiscal_line_ids: other_line = fiscal_document_id.fiscal_line_ids.filtered( - lambda o_l: o_l.id != line.id + lambda o_l, line=line: o_l.id != line.id ) self.assertNotEqual( line.freight_value, diff --git a/l10n_br_fiscal/README.rst b/l10n_br_fiscal/README.rst index 1ab48b0d3bd3..b9e9c300f510 100644 --- a/l10n_br_fiscal/README.rst +++ b/l10n_br_fiscal/README.rst @@ -7,7 +7,7 @@ Módulo fiscal brasileiro !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:4e5bcba3949242c8054465328d492bada8650759fbc5c680d334ad183ddc4637 + !! source digest: sha256:73d809af52e3a1ecd1849c468a92ca5cbb0c6636b2309b49a8afbe35bcc7ce4a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/l10n_br_fiscal/__manifest__.py b/l10n_br_fiscal/__manifest__.py index 574be39bad4b..aeb6131ab77a 100644 --- a/l10n_br_fiscal/__manifest__.py +++ b/l10n_br_fiscal/__manifest__.py @@ -10,7 +10,7 @@ "maintainers": ["renatonlima"], "website": "https://github.com/OCA/l10n-brazil", "development_status": "Production/Stable", - "version": "14.0.23.2.0", + "version": "14.0.23.4.0", "depends": [ "product", "l10n_br_base", diff --git a/l10n_br_fiscal/data/l10n_br_fiscal_comment_data.xml b/l10n_br_fiscal/data/l10n_br_fiscal_comment_data.xml index 338e581d84b5..f36815627ab5 100644 --- a/l10n_br_fiscal/data/l10n_br_fiscal_comment_data.xml +++ b/l10n_br_fiscal/data/l10n_br_fiscal_comment_data.xml @@ -7,6 +7,24 @@ l10n_br_fiscal.document.mixin + + Total ICMS FCP + ICMS FCP: ${format_amount(doc.amount_icmsfcp_value)} + fiscal + l10n_br_fiscal.document.mixin + + + + Total ICMS DIFAL Destino + ICMS DIFAL Destino: ${format_amount(doc.amount_icms_destination_value)} + fiscal + l10n_br_fiscal.document.mixin + + Total estimado dos impostos \n" "Language-Team: none\n" "Language: pt_BR\n" @@ -1043,7 +1043,7 @@ msgstr "Ajuste" #: model:ir.model.fields.selection,name:l10n_br_fiscal.selection__l10n_br_fiscal_operation__fiscal_operation_type__all #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal.cfop_search msgid "All" -msgstr "Tudo" +msgstr "Todos" #. module: l10n_br_fiscal #: model_terms:ir.actions.act_window,help:l10n_br_fiscal.document_email_action diff --git a/l10n_br_fiscal/migrations/14.0.11.0.0/post-migration.py b/l10n_br_fiscal/migrations/14.0.11.0.0/post-migration.py index a5c834b88772..610a0465fec2 100644 --- a/l10n_br_fiscal/migrations/14.0.11.0.0/post-migration.py +++ b/l10n_br_fiscal/migrations/14.0.11.0.0/post-migration.py @@ -1,18 +1,55 @@ # Copyright 2022 Engenere - Felipe Motter Pereira # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +import io +import logging +import os + from openupgradelib import openupgrade -from odoo import tools +from odoo import SUPERUSER_ID, api +from odoo.tools import pycompat +from odoo.tools.misc import file_open + +_logger = logging.getLogger(__name__) @openupgrade.migrate() def migrate(env, version): - tools.convert_file( - env.cr, - "l10n_br_fiscal", - "data/l10n_br_fiscal.ncm.csv", - None, - mode="init", - noupdate=True, - kind="init", - ) + module = "l10n_br_fiscal" + pathname = os.path.join(module, "data/l10n_br_fiscal.ncm.csv") + with file_open(pathname, "rb") as fp: + convert_csv_import_by_line( + env.cr, module, pathname, fp.read(), None, mode="init", noupdate=True + ) + + +def convert_csv_import_by_line( + cr, module, fname, csvcontent, idref=None, mode="init", noupdate=False +): + """ + Same as tools.convert_csv_import but try line by line and log instead + of failing on error (exiting NCM) + """ + filename, _ext = os.path.splitext(os.path.basename(fname)) + model = filename.split("-")[0] + reader = pycompat.csv_reader(io.BytesIO(csvcontent), quotechar='"', delimiter=",") + fields = next(reader) + + context = { + "mode": mode, + "module": module, + "install_module": module, + "install_filename": fname, + "noupdate": noupdate, + } + env = api.Environment(cr, SUPERUSER_ID, context) + for line in reader: + try: + result = env[model].load(fields, [line]) + if any(msg["type"] == "error" for msg in result["messages"]): + # Report failed import and abort module install + warning_msg = "\n".join(msg["message"] for msg in result["messages"]) + _logger.warning(warning_msg) + except Exception: + pass diff --git a/l10n_br_fiscal/models/comment.py b/l10n_br_fiscal/models/comment.py index f066feb85f09..4443200d7ac4 100644 --- a/l10n_br_fiscal/models/comment.py +++ b/l10n_br_fiscal/models/comment.py @@ -89,16 +89,16 @@ def _name_search( def name_get(self): def truncate_name(name): if len(name) > 60: - name = "{}...".format(name[:60]) + name = f"{name[:60]}..." return name - return [(r.id, "{}".format(truncate_name(r.name))) for r in self] + return [(r.id, f"{truncate_name(r.name)}") for r in self] # format_amount function for fiscal observation # This way we can format numbers in currency template on fiscal observation # msg We'll call this function when setting the variables env below def format_amount(self, env, amount, currency): - fmt = "%.{}f".format(currency.decimal_places) + fmt = f"%.{currency.decimal_places}f" lang = env.ref("base.lang_pt_BR") formatted_amount = ( @@ -113,7 +113,7 @@ def format_amount(self, env, amount, currency): else: post = "\N{NO-BREAK SPACE}" + "{}".format(currency.symbol or "") - return "{pre}{0}{post}".format(formatted_amount, pre=pre, post=post) + return f"{pre}{formatted_amount}{post}" def compute_message(self, vals, manual_comment=None): if not self.ids and not manual_comment: diff --git a/l10n_br_fiscal/models/data_abstract.py b/l10n_br_fiscal/models/data_abstract.py index 144e6550b904..fc301ae5cd4c 100644 --- a/l10n_br_fiscal/models/data_abstract.py +++ b/l10n_br_fiscal/models/data_abstract.py @@ -94,10 +94,10 @@ def _name_search( def name_get(self): def truncate_name(name): if len(name) > 60: - name = "{}...".format(name[:60]) + name = f"{name[:60]}..." return name if self._context.get("show_code_only"): - return [(r.id, "{}".format(r.code)) for r in self] + return [(r.id, f"{r.code}") for r in self] - return [(r.id, "{} - {}".format(r.code, truncate_name(r.name))) for r in self] + return [(r.id, f"{r.code} - {truncate_name(r.name)}") for r in self] diff --git a/l10n_br_fiscal/models/data_ncm_nbs_abstract.py b/l10n_br_fiscal/models/data_ncm_nbs_abstract.py index 821b8dc5db98..94c558403648 100644 --- a/l10n_br_fiscal/models/data_ncm_nbs_abstract.py +++ b/l10n_br_fiscal/models/data_ncm_nbs_abstract.py @@ -158,9 +158,7 @@ def _scheduled_update(self): SELECT {0}_id FROM {0}_max_date WHERE max < %(create_date)s - """.format( - object_name.lower() - ) + """.format(object_name.lower()) query_params = {"create_date": data_max.strftime("%Y-%m-%d")} diff --git a/l10n_br_fiscal/models/document_line_mixin_methods.py b/l10n_br_fiscal/models/document_line_mixin_methods.py index 368be12add34..47720e6c7a78 100644 --- a/l10n_br_fiscal/models/document_line_mixin_methods.py +++ b/l10n_br_fiscal/models/document_line_mixin_methods.py @@ -223,7 +223,8 @@ def _compute_allow_csll_irpj(self): for line in self: # Determine if 'CSLL' and 'IRPJ' taxes may apply: # 1. When providing services (tax_icms_or_issqn == "issqn") - # 2. When supplying products to public entities (partner_is_public_entity is True) + # 2. When supplying products to public entities (partner_is_public_entity + # is True) if line.tax_icms_or_issqn == "issqn" or line.partner_is_public_entity: line.allow_csll_irpj = True # Tax charges may apply else: @@ -240,7 +241,7 @@ def _prepare_br_fiscal_dict(self, default=False): vals.pop("id", None) if default: # in case you want to use new rather than write later - return {"default_%s" % (k,): vals[k] for k in vals.keys()} + return {f"default_{k}": vals[k] for k in vals.keys()} return vals def _get_all_tax_id_fields(self): @@ -291,7 +292,7 @@ def _update_fiscal_tax_ids(self, taxes): for line in self: taxes_groups = line.fiscal_tax_ids.mapped("tax_domain") fiscal_taxes = line.fiscal_tax_ids.filtered( - lambda ft: ft.tax_domain not in taxes_groups + lambda ft, taxes_groups=taxes_groups: ft.tax_domain not in taxes_groups ) line.fiscal_tax_ids = fiscal_taxes + taxes diff --git a/l10n_br_fiscal/models/document_mixin_fields.py b/l10n_br_fiscal/models/document_mixin_fields.py index f8f791335b96..6821d2450adc 100644 --- a/l10n_br_fiscal/models/document_mixin_fields.py +++ b/l10n_br_fiscal/models/document_mixin_fields.py @@ -29,9 +29,9 @@ def _operation_domain(self): domain = ( "[('state', '=', 'approved')," "'|'," - "('company_id', '=', %s)," + f"('company_id', '=', {self.env.company.id})," "('company_id', '=', False)," - ) % (self.env.company.id,) + ) return domain fiscal_operation_id = fields.Many2one( diff --git a/l10n_br_fiscal/models/document_mixin_methods.py b/l10n_br_fiscal/models/document_mixin_methods.py index 210dbeb66763..cae500ba1a0f 100644 --- a/l10n_br_fiscal/models/document_mixin_methods.py +++ b/l10n_br_fiscal/models/document_mixin_methods.py @@ -21,7 +21,7 @@ def _prepare_br_fiscal_dict(self, default=False): vals.pop("id", None) if default: # in case you want to use new rather than write later - return {"default_%s" % (k,): vals[k] for k in vals.keys()} + return {f"default_{k}": vals[k] for k in vals.keys()} return vals def _get_amount_lines(self): @@ -121,11 +121,12 @@ def _inverse_amount_freight(self): line.freight_value = amount_freight_value * ( line.freight_value / amount_freight_old ) - record._get_product_amount_lines()[ - -1 - ].freight_value = amount_freight_value - sum( - line.freight_value - for line in record._get_product_amount_lines()[:-1] + record._get_product_amount_lines()[-1].freight_value = ( + amount_freight_value + - sum( + line.freight_value + for line in record._get_product_amount_lines()[:-1] + ) ) else: amount_total = sum( @@ -136,11 +137,12 @@ def _inverse_amount_freight(self): line.freight_value = amount_freight_value * ( line.price_gross / amount_total ) - record._get_product_amount_lines()[ - -1 - ].freight_value = amount_freight_value - sum( - line.freight_value - for line in record._get_product_amount_lines()[:-1] + record._get_product_amount_lines()[-1].freight_value = ( + amount_freight_value + - sum( + line.freight_value + for line in record._get_product_amount_lines()[:-1] + ) ) for line in record._get_product_amount_lines(): line._onchange_fiscal_taxes() @@ -169,11 +171,12 @@ def _inverse_amount_insurance(self): line.insurance_value = amount_insurance_value * ( line.insurance_value / amount_insurance_old ) - record._get_product_amount_lines()[ - -1 - ].insurance_value = amount_insurance_value - sum( - line.insurance_value - for line in record._get_product_amount_lines()[:-1] + record._get_product_amount_lines()[-1].insurance_value = ( + amount_insurance_value + - sum( + line.insurance_value + for line in record._get_product_amount_lines()[:-1] + ) ) else: amount_total = sum( @@ -184,11 +187,12 @@ def _inverse_amount_insurance(self): line.insurance_value = amount_insurance_value * ( line.price_gross / amount_total ) - record._get_product_amount_lines()[ - -1 - ].insurance_value = amount_insurance_value - sum( - line.insurance_value - for line in record._get_product_amount_lines()[:-1] + record._get_product_amount_lines()[-1].insurance_value = ( + amount_insurance_value + - sum( + line.insurance_value + for line in record._get_product_amount_lines()[:-1] + ) ) for line in record._get_product_amount_lines(): line._onchange_fiscal_taxes() @@ -217,11 +221,12 @@ def _inverse_amount_other(self): line.other_value = amount_other_value * ( line.other_value / amount_other_old ) - record._get_product_amount_lines()[ - -1 - ].other_value = amount_other_value - sum( - line.other_value - for line in record._get_product_amount_lines()[:-1] + record._get_product_amount_lines()[-1].other_value = ( + amount_other_value + - sum( + line.other_value + for line in record._get_product_amount_lines()[:-1] + ) ) else: amount_total = sum( @@ -232,11 +237,12 @@ def _inverse_amount_other(self): line.other_value = amount_other_value * ( line.price_gross / amount_total ) - record._get_product_amount_lines()[ - -1 - ].other_value = amount_other_value - sum( - line.other_value - for line in record._get_product_amount_lines()[:-1] + record._get_product_amount_lines()[-1].other_value = ( + amount_other_value + - sum( + line.other_value + for line in record._get_product_amount_lines()[:-1] + ) ) for line in record._get_product_amount_lines(): line._onchange_fiscal_taxes() diff --git a/l10n_br_fiscal/models/document_move_mixin.py b/l10n_br_fiscal/models/document_move_mixin.py index 0876b7bfe7d5..cc8c3d5d8188 100644 --- a/l10n_br_fiscal/models/document_move_mixin.py +++ b/l10n_br_fiscal/models/document_move_mixin.py @@ -251,7 +251,9 @@ def _onchange_fiscal_operation_id(self): { "source_document_id": self.id, "subsequent_operation_id": subsequent_id.id, - "fiscal_operation_id": subsequent_id.subsequent_operation_id.id, + "fiscal_operation_id": ( + subsequent_id.subsequent_operation_id.id + ), }, ) ) diff --git a/l10n_br_fiscal/models/document_serie.py b/l10n_br_fiscal/models/document_serie.py index 769b61f775fb..6b6db294d709 100644 --- a/l10n_br_fiscal/models/document_serie.py +++ b/l10n_br_fiscal/models/document_serie.py @@ -79,7 +79,7 @@ def create(self, vals_list): return super().create(vals_list) def name_get(self): - return [(r.id, "{}".format(r.name)) for r in self] + return [(r.id, f"{r.name}") for r in self] def _is_invalid_number(self, document_number): self.ensure_one() diff --git a/l10n_br_fiscal/models/product_template.py b/l10n_br_fiscal/models/product_template.py index b34b972bda59..1214a494aeaf 100644 --- a/l10n_br_fiscal/models/product_template.py +++ b/l10n_br_fiscal/models/product_template.py @@ -26,8 +26,8 @@ def _get_default_ncm_id(self): # demo products of type 'product' (this type is added to product.template # in the stock module). # For some reason when running the tests, some inverse method fields then fail when - # reading 'product' value for the product type. It seems it is because l10n_br_fiscal - # doesn't depend on stock. But we don't want such a dependency. + # reading 'product' value for the product type. It seems it is because + # l10n_br_fiscal doesn't depend on stock. But we don't want such a dependency. # So a workaround to avoid the bug we add the 'product' value to the selection. type = fields.Selection( selection_add=[("product", "Storable Product")], diff --git a/l10n_br_fiscal/models/subsequent_document.py b/l10n_br_fiscal/models/subsequent_document.py index 58b7c6dd3515..9b93b03d351a 100644 --- a/l10n_br_fiscal/models/subsequent_document.py +++ b/l10n_br_fiscal/models/subsequent_document.py @@ -3,7 +3,6 @@ # License AGPL-3 or later (http://www.gnu.org/licenses/agpl) # -from __future__ import division, print_function, unicode_literals from odoo import api, fields, models diff --git a/l10n_br_fiscal/models/subsequent_operation.py b/l10n_br_fiscal/models/subsequent_operation.py index c4864d6a1f6d..4e3835f9232e 100644 --- a/l10n_br_fiscal/models/subsequent_operation.py +++ b/l10n_br_fiscal/models/subsequent_operation.py @@ -2,8 +2,6 @@ # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html -from __future__ import division, print_function, unicode_literals - from odoo import fields, models from ..constants.fiscal import SITUACAO_EDOC diff --git a/l10n_br_fiscal/models/tax_definition.py b/l10n_br_fiscal/models/tax_definition.py index 054837acedb8..c64fe1ce36e1 100644 --- a/l10n_br_fiscal/models/tax_definition.py +++ b/l10n_br_fiscal/models/tax_definition.py @@ -21,11 +21,7 @@ class TaxDefinition(models.Model): _description = "Tax Definition" def _get_complete_name(self): - return "{tax_group}-{tax}-{cst_code}".format( - tax_group=self.tax_group_id.name, - tax=self.tax_id.name, - cst_code=self.cst_code, - ) + return f"{self.tax_group_id.name}-{self.tax_id.name}-{self.cst_code}" @api.depends("tax_group_id", "tax_id", "cst_code") def _compute_display_name(self): diff --git a/l10n_br_fiscal/static/description/index.html b/l10n_br_fiscal/static/description/index.html index 5fb55dba45b8..a55e54817ddd 100644 --- a/l10n_br_fiscal/static/description/index.html +++ b/l10n_br_fiscal/static/description/index.html @@ -367,7 +367,7 @@

Módulo fiscal brasileiro

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:4e5bcba3949242c8054465328d492bada8650759fbc5c680d334ad183ddc4637 +!! source digest: sha256:73d809af52e3a1ecd1849c468a92ca5cbb0c6636b2309b49a8afbe35bcc7ce4a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Production/Stable License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

https://raw.githubusercontent.com/OCA/l10n-brazil/14.0/l10n_br_fiscal/static/img/fiscal_dashboard.png diff --git a/l10n_br_fiscal/tests/test_fiscal_document_generic.py b/l10n_br_fiscal/tests/test_fiscal_document_generic.py index 74022f97227c..281ecbd945f4 100644 --- a/l10n_br_fiscal/tests/test_fiscal_document_generic.py +++ b/l10n_br_fiscal/tests/test_fiscal_document_generic.py @@ -1053,7 +1053,7 @@ def test_nfe_comments(self): additional_data = self.nfe_not_taxpayer.fiscal_line_ids[0].additional_data self.assertEqual( additional_data, - "manual comment test - Valor Aprox. dos Tributos: R$ 0,00" + "manual comment test - Valor Aprox. dos Tributos: R$ 0,00", # TODO FIXME changed 0.00 to 0,00 to get tests pass on v13, but not # correct ) diff --git a/l10n_br_fiscal/tests/test_ibpt.py b/l10n_br_fiscal/tests/test_ibpt.py index e9c75b8f16da..67c4ccba1b95 100644 --- a/l10n_br_fiscal/tests/test_ibpt.py +++ b/l10n_br_fiscal/tests/test_ibpt.py @@ -25,8 +25,7 @@ def _not_every_day_test(method, self, modulo=7, remaining=0): return method(self) else: return lambda: _logger.info( - "Skipping test today because datetime.now().day %% %s != %s" - % (modulo, remaining) + f"Skipping test today because datetime.now().day % {modulo} != {remaining}" ) diff --git a/l10n_br_fiscal/tools.py b/l10n_br_fiscal/tools.py index 18a36395cade..0065af3e646c 100644 --- a/l10n_br_fiscal/tools.py +++ b/l10n_br_fiscal/tools.py @@ -72,13 +72,13 @@ def build_edoc_path( try: os.makedirs(caminho, exist_ok=True) except Exception as e: - _logger.error("Falha de permissão ao acessar diretorio do e-doc {}".format(e)) + _logger.error(f"Falha de permissão ao acessar diretorio do e-doc {e}") return caminho def remove_non_ascii_characters(value): result = "" - if value and type(value) is str: + if value and isinstance(value, str): result = ( normalize("NFKD", value) .encode("ASCII", "ignore") diff --git a/l10n_br_fiscal/views/tax_definition_view.xml b/l10n_br_fiscal/views/tax_definition_view.xml index 0af203314321..7ca10767e100 100644 --- a/l10n_br_fiscal/views/tax_definition_view.xml +++ b/l10n_br_fiscal/views/tax_definition_view.xml @@ -122,14 +122,11 @@ /> - + diff --git a/l10n_br_fiscal_closing/README.rst b/l10n_br_fiscal_closing/README.rst index 0de7a108b807..7d23262caa32 100644 --- a/l10n_br_fiscal_closing/README.rst +++ b/l10n_br_fiscal_closing/README.rst @@ -7,7 +7,7 @@ Fechamento fiscal do período !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:5ad0f57d08b94ec66769c244069e87b8e1222e7dcb9a67a1df3a1c8370318546 + !! source digest: sha256:cb7695d4bed5db1dbd749abc2fa91bf9b7cc4ebcae43faeeabfd312e1390a75a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_fiscal_closing/__manifest__.py b/l10n_br_fiscal_closing/__manifest__.py index 1589134e9aca..a5f6993d19a0 100644 --- a/l10n_br_fiscal_closing/__manifest__.py +++ b/l10n_br_fiscal_closing/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Fechamento fiscal do período", "summary": "Period fiscal closing", - "version": "14.0.2.0.0", + "version": "14.0.2.0.1", "license": "AGPL-3", "author": "KMEE,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", diff --git a/l10n_br_fiscal_closing/models/closing.py b/l10n_br_fiscal_closing/models/closing.py index cad1308b7375..b21bbdf58463 100644 --- a/l10n_br_fiscal_closing/models/closing.py +++ b/l10n_br_fiscal_closing/models/closing.py @@ -61,7 +61,7 @@ class FiscalClosing(models.Model): def _compute_name(self): for record in self: if record.export_type == "period": - record.name = "{}/{}".format(record.month, record.year) + record.name = f"{record.month}/{record.year}" record.file_name = "{}-{}.{}".format(record.month, record.year, "zip") else: now = fields.Datetime.now().strftime("%d/%m/%Y") diff --git a/l10n_br_fiscal_closing/static/description/index.html b/l10n_br_fiscal_closing/static/description/index.html index f263c7a89a96..278335ac085a 100644 --- a/l10n_br_fiscal_closing/static/description/index.html +++ b/l10n_br_fiscal_closing/static/description/index.html @@ -367,7 +367,7 @@

Fechamento fiscal do período

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:5ad0f57d08b94ec66769c244069e87b8e1222e7dcb9a67a1df3a1c8370318546 +!! source digest: sha256:cb7695d4bed5db1dbd749abc2fa91bf9b7cc4ebcae43faeeabfd312e1390a75a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Este módulo permite a exportação dos documentos fiscais por período.

diff --git a/l10n_br_fiscal_dfe/README.rst b/l10n_br_fiscal_dfe/README.rst index 461e1a631a7d..79c8f69fa123 100644 --- a/l10n_br_fiscal_dfe/README.rst +++ b/l10n_br_fiscal_dfe/README.rst @@ -7,7 +7,7 @@ L10n BR Fiscal Dfe !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ac3fc1b95c379ae5a4de79291cd898cf2d5748fcc8240ef8ad31355d59cb20ed + !! source digest: sha256:7bd4c3270dff66dc2d4e2bad9344c5518463e4e2ae8def6f9639ab0deda78904 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_fiscal_dfe/__manifest__.py b/l10n_br_fiscal_dfe/__manifest__.py index cd8be24440cb..4f386441a625 100644 --- a/l10n_br_fiscal_dfe/__manifest__.py +++ b/l10n_br_fiscal_dfe/__manifest__.py @@ -4,7 +4,7 @@ "name": "L10n BR Fiscal Dfe", "summary": """ Distribuição de documentos fiscais""", - "version": "14.0.2.4.0", + "version": "14.0.2.4.1", "license": "AGPL-3", "author": "KMEE,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", diff --git a/l10n_br_fiscal_dfe/static/description/index.html b/l10n_br_fiscal_dfe/static/description/index.html index a0232783197a..20efdf1c048e 100644 --- a/l10n_br_fiscal_dfe/static/description/index.html +++ b/l10n_br_fiscal_dfe/static/description/index.html @@ -367,7 +367,7 @@

L10n BR Fiscal Dfe

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:ac3fc1b95c379ae5a4de79291cd898cf2d5748fcc8240ef8ad31355d59cb20ed +!! source digest: sha256:7bd4c3270dff66dc2d4e2bad9344c5518463e4e2ae8def6f9639ab0deda78904 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Distribuição de documentos fiscais

diff --git a/l10n_br_fiscal_dfe/tests/test_dfe.py b/l10n_br_fiscal_dfe/tests/test_dfe.py index 6c5e27351455..b5ee7442be1c 100644 --- a/l10n_br_fiscal_dfe/tests/test_dfe.py +++ b/l10n_br_fiscal_dfe/tests/test_dfe.py @@ -12,15 +12,14 @@ from ..tools import utils -# flake8: noqa: B950 -response_sucesso_multiplos = """11.4.0138Documento(s) localizado(s)2022-04-04T11:54:49-03:00000000000000201000000000000201H4sIAAAAAAAEAIVS22qDQBD9FfFdd9Z7ZLKQphosqQ3mQuibMZto8RJcifn8rjG9PZUdZg7DOWeGYbHlIg65cqvKWvg3cZyqedddfEL6vtd7U2/aMzEAKNm/LtdZzqtU/SYX/5O1ohZdWmdcVa68FWkzVakO8PD4o780bZeWp0JkaakX9Uk/tKQ+cZVhlssVmUkNoPLZnjcAGKBtDwVMzzIodak3AIO6HpJRg/N49cL+apDcm3iLm4qz99lKWSSzMJrPlEAJnqPNWyJRlATLCMnIwShgUkqpNLEAHBOJ7OAxD6qCGWCARkEDZwPg30MDU2YkIwG7SxwyiuRe8SqTN3H1iXQZMB6L8y4t2W73sXdtJ+6TUDhGveaLbc9DsXyyt1NpNZLkzIRnh675PZZOfMP2LfNn7IOD9aptOkaHy5meDS44FnWRjG3M1kU3HEmu9gWRjP+BfQI6BY33GAIAAA==H4sIAAAAAAAAA51WzXKjRhC+5ykoX1MWMyAssTWeiozQhpSFKEu7dwxjmwQYLUJYldfJOS+QY/bF0t0DWF5nt7JRqejub3q6p3/mR9QPKml0ZnWqOaT6+mI6YezCOlVlfbi+eGrb/Tvbfn5+nux106blQ3HI0nJS1A+T+8aGuRdSxCv1Xfog4JTXDqP8+gJQ13MY457v+VOXewz5mQeUs/7HHXblzGYzfsXRVK6kyD6spOsJG6nI4pUcNAACSdRpu9nLj6rOU2EbQVQ6lx7MQSoOqimU5MI2jKhhFkhIRP4UVoV0mMMuGYf/jjvvGIP/j4zDV9hGAfS2aRHW7bdVex3R7o0LohDFUh1alHtOZOtjvXoPUTHOPQfiMDLMi6q9mYgMyOD8YADiRLb8iCISGF1U99LBQWTEQwEhUaA9B6XIV0WdluR74BFNGnWQjEBixR56BAMFbGAFVBBbR25yra2bJj0UpbUJFlbHp8IeBjEo8KSqAuIK4uQX+bq6wiZQnGJdKbkLt7vQurS2RbUv1cGK06zQsChhm3FxWqWQwG+o0biAYqsmJJ+n28dG3h1TK0mPpbaWRXoANQRF3WjpzaFPkKGkv045TMbvojxWn/+sCw3zCIVG2ybCxn4LwkTyOXcwGggFJJElKdaEeXOwQrw4ETEpAiMGfNC1kg53obl9/wqakQBhn609CiW0v+vOwT53XWEDIIK7HdYLCSiTXk5dQ4mc86nv+jMfszv3X2c3Xl2GVriOdtFyAdRarG+iMIZMLkPr5816c7t5vwgWG0wsjH5c3G7urFW0DRa3Y/5pcaZJx8Ru0+qoSmutm4M6Ty3HXUmpPQX7EnbG339ZKezCBhwEuv71WLfa4h7EQuPidJMWDajfNFr/VhY14D0y1MZjLpu/qs328x/aVPYrxWFTb3bFrv5XcTyPc3c6mzvQrK/LYzIAuyMKx707Cli26RWbOj6cQq47NWVTVVqUMisLVbeK/zQwk0xXcDZiJXEcTgkykavWqqNWVdcXeNDBnstx8UjCy2Cz5rjJE4OGi1hiwd7vohhQFCEoHAvS+6IGS89F+2QtNRQIA6RZcbCW/pS5LjUuSiJYbRLpcQbdT6w4BrqSH+JoKWxixSf88gmjOSSI7kNN4HTCxh/sfoOKjpzRIIAv6901xf0XayZIHIn0Pg30icjo1YDgwMBv/JpxqMZOD3VBjs4t8A4nhj600FJRsN6a7zbmjEuhm+IRzzeiIthutjE0Cu40YsU+aFQOjDOZka9BFh0yxpBkExc66xyB6r/4sHuvSYR5qD9J3/cxfOAQjHfoeCc9F73i/u5Bm2Yk0ZY+m2PbGMWp3yt2NwH4phQAJ/aoyvqUkQCl6CEsBAL2aMkmOdisonik/8FHP2F0MxjozgYwFz1snxu2R3QsCHQ+Xo26xTsI80Rl+8JpRwnsAZNMIrDxdH2OG0B0qyAZYGTRHsQyWqS4XgASQe8FMUIP3sEKz3GU/7XHu1WjWjXqkgB+1OPoCFjRwSKzASEegonGKCIUkxc56YGl6nR5hhr5bYG/UocOK6AH1AiiwwdJHwK+SeyxAHZfkbZJ64N5Opl4fHo+9bHZw/A+faTTK0GKz4f0cXhIIEI4biqj0OF3TB0i9jDX3hsLD4u8yHpmBc9JLZc6O1YKLw+8/YpcW/DYfGet0yazlqrS6G1U7oUiMxw9e2z6wnnQvnmIkiOoYUsv0iiHO8xx+NxxvKnD5t7F21dV9oTWvufhChue5ogaHckvXMCVSbDItm0Ko5gaw8KNp9ui03JxbOGQ+j2FyLV1PGgrTy242/Hy7TUoVmPG7uMErn/ryx/+AZs2W+n2CwAA""" +response_sucesso_multiplos = """11.4.0138Documento(s) localizado(s)2022-04-04T11:54:49-03:00000000000000201000000000000201H4sIAAAAAAAEAIVS22qDQBD9FfFdd9Z7ZLKQphosqQ3mQuibMZto8RJcifn8rjG9PZUdZg7DOWeGYbHlIg65cqvKWvg3cZyqedddfEL6vtd7U2/aMzEAKNm/LtdZzqtU/SYX/5O1ohZdWmdcVa68FWkzVakO8PD4o780bZeWp0JkaakX9Uk/tKQ+cZVhlssVmUkNoPLZnjcAGKBtDwVMzzIodak3AIO6HpJRg/N49cL+apDcm3iLm4qz99lKWSSzMJrPlEAJnqPNWyJRlATLCMnIwShgUkqpNLEAHBOJ7OAxD6qCGWCARkEDZwPg30MDU2YkIwG7SxwyiuRe8SqTN3H1iXQZMB6L8y4t2W73sXdtJ+6TUDhGveaLbc9DsXyyt1NpNZLkzIRnh675PZZOfMP2LfNn7IOD9aptOkaHy5meDS44FnWRjG3M1kU3HEmu9gWRjP+BfQI6BY33GAIAAA==H4sIAAAAAAAAA51WzXKjRhC+5ykoX1MWMyAssTWeiozQhpSFKEu7dwxjmwQYLUJYldfJOS+QY/bF0t0DWF5nt7JRqejub3q6p3/mR9QPKml0ZnWqOaT6+mI6YezCOlVlfbi+eGrb/Tvbfn5+nux106blQ3HI0nJS1A+T+8aGuRdSxCv1Xfog4JTXDqP8+gJQ13MY457v+VOXewz5mQeUs/7HHXblzGYzfsXRVK6kyD6spOsJG6nI4pUcNAACSdRpu9nLj6rOU2EbQVQ6lx7MQSoOqimU5MI2jKhhFkhIRP4UVoV0mMMuGYf/jjvvGIP/j4zDV9hGAfS2aRHW7bdVex3R7o0LohDFUh1alHtOZOtjvXoPUTHOPQfiMDLMi6q9mYgMyOD8YADiRLb8iCISGF1U99LBQWTEQwEhUaA9B6XIV0WdluR74BFNGnWQjEBixR56BAMFbGAFVBBbR25yra2bJj0UpbUJFlbHp8IeBjEo8KSqAuIK4uQX+bq6wiZQnGJdKbkLt7vQurS2RbUv1cGK06zQsChhm3FxWqWQwG+o0biAYqsmJJ+n28dG3h1TK0mPpbaWRXoANQRF3WjpzaFPkKGkv045TMbvojxWn/+sCw3zCIVG2ybCxn4LwkTyOXcwGggFJJElKdaEeXOwQrw4ETEpAiMGfNC1kg53obl9/wqakQBhn609CiW0v+vOwT53XWEDIIK7HdYLCSiTXk5dQ4mc86nv+jMfszv3X2c3Xl2GVriOdtFyAdRarG+iMIZMLkPr5816c7t5vwgWG0wsjH5c3G7urFW0DRa3Y/5pcaZJx8Ru0+qoSmutm4M6Ty3HXUmpPQX7EnbG339ZKezCBhwEuv71WLfa4h7EQuPidJMWDajfNFr/VhY14D0y1MZjLpu/qs328x/aVPYrxWFTb3bFrv5XcTyPc3c6mzvQrK/LYzIAuyMKx707Cli26RWbOj6cQq47NWVTVVqUMisLVbeK/zQwk0xXcDZiJXEcTgkykavWqqNWVdcXeNDBnstx8UjCy2Cz5rjJE4OGi1hiwd7vohhQFCEoHAvS+6IGS89F+2QtNRQIA6RZcbCW/pS5LjUuSiJYbRLpcQbdT6w4BrqSH+JoKWxixSf88gmjOSSI7kNN4HTCxh/sfoOKjpzRIIAv6901xf0XayZIHIn0Pg30icjo1YDgwMBv/JpxqMZOD3VBjs4t8A4nhj600FJRsN6a7zbmjEuhm+IRzzeiIthutjE0Cu40YsU+aFQOjDOZka9BFh0yxpBkExc66xyB6r/4sHuvSYR5qD9J3/cxfOAQjHfoeCc9F73i/u5Bm2Yk0ZY+m2PbGMWp3yt2NwH4phQAJ/aoyvqUkQCl6CEsBAL2aMkmOdisonik/8FHP2F0MxjozgYwFz1snxu2R3QsCHQ+Xo26xTsI80Rl+8JpRwnsAZNMIrDxdH2OG0B0qyAZYGTRHsQyWqS4XgASQe8FMUIP3sEKz3GU/7XHu1WjWjXqkgB+1OPoCFjRwSKzASEegonGKCIUkxc56YGl6nR5hhr5bYG/UocOK6AH1AiiwwdJHwK+SeyxAHZfkbZJ64N5Opl4fHo+9bHZw/A+faTTK0GKz4f0cXhIIEI4biqj0OF3TB0i9jDX3hsLD4u8yHpmBc9JLZc6O1YKLw+8/YpcW/DYfGet0yazlqrS6G1U7oUiMxw9e2z6wnnQvnmIkiOoYUsv0iiHO8xx+NxxvKnD5t7F21dV9oTWvufhChue5ogaHckvXMCVSbDItm0Ko5gaw8KNp9ui03JxbOGQ+j2FyLV1PGgrTy242/Hy7TUoVmPG7uMErn/ryx/+AZs2W+n2CwAA""" # noqa: E501 -response_sucesso_individual = """11.4.0138Documento(s) localizado(s)2022-04-04T11:54:49-03:00000000000000201000000000000201H4sIAAAAAAAAA51WzXKjRhC+5ykoX1MWMyAssTWeiozQhpSFKEu7dwxjmwQYLUJYldfJOS+QY/bF0t0DWF5nt7JRqejub3q6p3/mR9QPKml0ZnWqOaT6+mI6YezCOlVlfbi+eGrb/Tvbfn5+nux106blQ3HI0nJS1A+T+8aGuRdSxCv1Xfog4JTXDqP8+gJQ13MY457v+VOXewz5mQeUs/7HHXblzGYzfsXRVK6kyD6spOsJG6nI4pUcNAACSdRpu9nLj6rOU2EbQVQ6lx7MQSoOqimU5MI2jKhhFkhIRP4UVoV0mMMuGYf/jjvvGIP/j4zDV9hGAfS2aRHW7bdVex3R7o0LohDFUh1alHtOZOtjvXoPUTHOPQfiMDLMi6q9mYgMyOD8YADiRLb8iCISGF1U99LBQWTEQwEhUaA9B6XIV0WdluR74BFNGnWQjEBixR56BAMFbGAFVBBbR25yra2bJj0UpbUJFlbHp8IeBjEo8KSqAuIK4uQX+bq6wiZQnGJdKbkLt7vQurS2RbUv1cGK06zQsChhm3FxWqWQwG+o0biAYqsmJJ+n28dG3h1TK0mPpbaWRXoANQRF3WjpzaFPkKGkv045TMbvojxWn/+sCw3zCIVG2ybCxn4LwkTyOXcwGggFJJElKdaEeXOwQrw4ETEpAiMGfNC1kg53obl9/wqakQBhn609CiW0v+vOwT53XWEDIIK7HdYLCSiTXk5dQ4mc86nv+jMfszv3X2c3Xl2GVriOdtFyAdRarG+iMIZMLkPr5816c7t5vwgWG0wsjH5c3G7urFW0DRa3Y/5pcaZJx8Ru0+qoSmutm4M6Ty3HXUmpPQX7EnbG339ZKezCBhwEuv71WLfa4h7EQuPidJMWDajfNFr/VhY14D0y1MZjLpu/qs328x/aVPYrxWFTb3bFrv5XcTyPc3c6mzvQrK/LYzIAuyMKx707Cli26RWbOj6cQq47NWVTVVqUMisLVbeK/zQwk0xXcDZiJXEcTgkykavWqqNWVdcXeNDBnstx8UjCy2Cz5rjJE4OGi1hiwd7vohhQFCEoHAvS+6IGS89F+2QtNRQIA6RZcbCW/pS5LjUuSiJYbRLpcQbdT6w4BrqSH+JoKWxixSf88gmjOSSI7kNN4HTCxh/sfoOKjpzRIIAv6901xf0XayZIHIn0Pg30icjo1YDgwMBv/JpxqMZOD3VBjs4t8A4nhj600FJRsN6a7zbmjEuhm+IRzzeiIthutjE0Cu40YsU+aFQOjDOZka9BFh0yxpBkExc66xyB6r/4sHuvSYR5qD9J3/cxfOAQjHfoeCc9F73i/u5Bm2Yk0ZY+m2PbGMWp3yt2NwH4phQAJ/aoyvqUkQCl6CEsBAL2aMkmOdisonik/8FHP2F0MxjozgYwFz1snxu2R3QsCHQ+Xo26xTsI80Rl+8JpRwnsAZNMIrDxdH2OG0B0qyAZYGTRHsQyWqS4XgASQe8FMUIP3sEKz3GU/7XHu1WjWjXqkgB+1OPoCFjRwSKzASEegonGKCIUkxc56YGl6nR5hhr5bYG/UocOK6AH1AiiwwdJHwK+SeyxAHZfkbZJ64N5Opl4fHo+9bHZw/A+faTTK0GKz4f0cXhIIEI4biqj0OF3TB0i9jDX3hsLD4u8yHpmBc9JLZc6O1YKLw+8/YpcW/DYfGet0yazlqrS6G1U7oUiMxw9e2z6wnnQvnmIkiOoYUsv0iiHO8xx+NxxvKnD5t7F21dV9oTWvufhChue5ogaHckvXMCVSbDItm0Ko5gaw8KNp9ui03JxbOGQ+j2FyLV1PGgrTy242/Hy7TUoVmPG7uMErn/ryx/+AZs2W+n2CwAA""" +response_sucesso_individual = """11.4.0138Documento(s) localizado(s)2022-04-04T11:54:49-03:00000000000000201000000000000201H4sIAAAAAAAAA51WzXKjRhC+5ykoX1MWMyAssTWeiozQhpSFKEu7dwxjmwQYLUJYldfJOS+QY/bF0t0DWF5nt7JRqejub3q6p3/mR9QPKml0ZnWqOaT6+mI6YezCOlVlfbi+eGrb/Tvbfn5+nux106blQ3HI0nJS1A+T+8aGuRdSxCv1Xfog4JTXDqP8+gJQ13MY457v+VOXewz5mQeUs/7HHXblzGYzfsXRVK6kyD6spOsJG6nI4pUcNAACSdRpu9nLj6rOU2EbQVQ6lx7MQSoOqimU5MI2jKhhFkhIRP4UVoV0mMMuGYf/jjvvGIP/j4zDV9hGAfS2aRHW7bdVex3R7o0LohDFUh1alHtOZOtjvXoPUTHOPQfiMDLMi6q9mYgMyOD8YADiRLb8iCISGF1U99LBQWTEQwEhUaA9B6XIV0WdluR74BFNGnWQjEBixR56BAMFbGAFVBBbR25yra2bJj0UpbUJFlbHp8IeBjEo8KSqAuIK4uQX+bq6wiZQnGJdKbkLt7vQurS2RbUv1cGK06zQsChhm3FxWqWQwG+o0biAYqsmJJ+n28dG3h1TK0mPpbaWRXoANQRF3WjpzaFPkKGkv045TMbvojxWn/+sCw3zCIVG2ybCxn4LwkTyOXcwGggFJJElKdaEeXOwQrw4ETEpAiMGfNC1kg53obl9/wqakQBhn609CiW0v+vOwT53XWEDIIK7HdYLCSiTXk5dQ4mc86nv+jMfszv3X2c3Xl2GVriOdtFyAdRarG+iMIZMLkPr5816c7t5vwgWG0wsjH5c3G7urFW0DRa3Y/5pcaZJx8Ru0+qoSmutm4M6Ty3HXUmpPQX7EnbG339ZKezCBhwEuv71WLfa4h7EQuPidJMWDajfNFr/VhY14D0y1MZjLpu/qs328x/aVPYrxWFTb3bFrv5XcTyPc3c6mzvQrK/LYzIAuyMKx707Cli26RWbOj6cQq47NWVTVVqUMisLVbeK/zQwk0xXcDZiJXEcTgkykavWqqNWVdcXeNDBnstx8UjCy2Cz5rjJE4OGi1hiwd7vohhQFCEoHAvS+6IGS89F+2QtNRQIA6RZcbCW/pS5LjUuSiJYbRLpcQbdT6w4BrqSH+JoKWxixSf88gmjOSSI7kNN4HTCxh/sfoOKjpzRIIAv6901xf0XayZIHIn0Pg30icjo1YDgwMBv/JpxqMZOD3VBjs4t8A4nhj600FJRsN6a7zbmjEuhm+IRzzeiIthutjE0Cu40YsU+aFQOjDOZka9BFh0yxpBkExc66xyB6r/4sHuvSYR5qD9J3/cxfOAQjHfoeCc9F73i/u5Bm2Yk0ZY+m2PbGMWp3yt2NwH4phQAJ/aoyvqUkQCl6CEsBAL2aMkmOdisonik/8FHP2F0MxjozgYwFz1snxu2R3QsCHQ+Xo26xTsI80Rl+8JpRwnsAZNMIrDxdH2OG0B0qyAZYGTRHsQyWqS4XgASQe8FMUIP3sEKz3GU/7XHu1WjWjXqkgB+1OPoCFjRwSKzASEegonGKCIUkxc56YGl6nR5hhr5bYG/UocOK6AH1AiiwwdJHwK+SeyxAHZfkbZJ64N5Opl4fHo+9bHZw/A+faTTK0GKz4f0cXhIIEI4biqj0OF3TB0i9jDX3hsLD4u8yHpmBc9JLZc6O1YKLw+8/YpcW/DYfGet0yazlqrS6G1U7oUiMxw9e2z6wnnQvnmIkiOoYUsv0iiHO8xx+NxxvKnD5t7F21dV9oTWvufhChue5ogaHckvXMCVSbDItm0Ko5gaw8KNp9ui03JxbOGQ+j2FyLV1PGgrTy242/Hy7TUoVmPG7uMErn/ryx/+AZs2W+n2CwAA""" # noqa: E501 -response_rejeicao = """21.4.0589Rejeicao: Numero do NSU informado superior ao maior NSU da base de dados doAmbiente Nacional2022-04-04T11:54:49-03:00000000000000000000000000000000""" +response_rejeicao = """21.4.0589Rejeicao: Numero do NSU informado superior ao maior NSU da base de dados doAmbiente Nacional2022-04-04T11:54:49-03:00000000000000000000000000000000""" # noqa: E501 -class FakeRetorno(object): +class FakeRetorno: def __init__(self, text, status_code=200): self.text = text self.content = text.encode("utf-8") @@ -83,7 +82,7 @@ def setUpClass(cls): DocumentoElectronicoAdapter, "_post", side_effect=mocked_post_success_multiple ) def test_search_dfe_success(self, _mock_post): - self.assertEqual(self.dfe_id.display_name, f"Empresa Lucro Presumido - NSU: 0") + self.assertEqual(self.dfe_id.display_name, "Empresa Lucro Presumido - NSU: 0") self.dfe_id.search_documents() self.assertEqual(self.dfe_id.last_nsu, utils.format_nsu("201")) diff --git a/l10n_br_fiscal_dfe/tools/utils.py b/l10n_br_fiscal_dfe/tools/utils.py index e099bcd5a3ed..4bca122078de 100644 --- a/l10n_br_fiscal_dfe/tools/utils.py +++ b/l10n_br_fiscal_dfe/tools/utils.py @@ -15,13 +15,7 @@ def mask_cnpj(cnpj): if len(val) != 14: return cnpj - return "%s.%s.%s/%s-%s" % ( - val[0:2], - val[2:5], - val[5:8], - val[8:12], - val[12:14], - ) + return f"{val[0:2]}.{val[2:5]}.{val[5:8]}/{val[8:12]}-{val[12:14]}" def format_nsu(nsu): diff --git a/l10n_br_fiscal_edi/README.rst b/l10n_br_fiscal_edi/README.rst index 9dc4a438f1a3..f4186718a30c 100644 --- a/l10n_br_fiscal_edi/README.rst +++ b/l10n_br_fiscal_edi/README.rst @@ -7,7 +7,7 @@ Common EDI fiscal features !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:40775df1903d605c25b533cbb06ed498af77c7c1a90f00bf15089a2bcd8ef275 + !! source digest: sha256:489c8f7779f2bf2f6f72a9ddc4cbc9de66ea4086d04ea62fb692b32d4409ce86 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_fiscal_edi/__manifest__.py b/l10n_br_fiscal_edi/__manifest__.py index aa7a9e021758..b2d29814bacb 100644 --- a/l10n_br_fiscal_edi/__manifest__.py +++ b/l10n_br_fiscal_edi/__manifest__.py @@ -9,7 +9,7 @@ "maintainers": ["renatonlima", "rvalyi", "mileo"], "website": "https://github.com/OCA/l10n-brazil", "development_status": "Beta", - "version": "14.0.1.0.1", + "version": "14.0.1.1.0", "depends": [ "l10n_br_fiscal", ], diff --git a/l10n_br_fiscal_edi/i18n/l10n_br_fiscal_edi.pot b/l10n_br_fiscal_edi/i18n/l10n_br_fiscal_edi.pot index 73a75f75725e..7e656d11ec61 100644 --- a/l10n_br_fiscal_edi/i18n/l10n_br_fiscal_edi.pot +++ b/l10n_br_fiscal_edi/i18n/l10n_br_fiscal_edi.pot @@ -545,7 +545,7 @@ msgstr "" #. module: l10n_br_fiscal_edi #: code:addons/l10n_br_fiscal_edi/wizards/document_import_wizard_mixin.py:0 #, python-format -msgid "Invalid file: %s" +msgid "Invalid file!" msgstr "" #. module: l10n_br_fiscal_edi diff --git a/l10n_br_fiscal_edi/i18n/pt_BR.po b/l10n_br_fiscal_edi/i18n/pt_BR.po index 1a239585b7da..525f4651f881 100644 --- a/l10n_br_fiscal_edi/i18n/pt_BR.po +++ b/l10n_br_fiscal_edi/i18n/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-09-11 18:06+0000\n" +"PO-Revision-Date: 2024-09-26 14:06+0000\n" "Last-Translator: Marcel Savegnago \n" "Language-Team: none\n" "Language: pt_BR\n" @@ -19,7 +19,7 @@ msgstr "" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.report_document_event msgid "CNPJ:" -msgstr "" +msgstr "CNPJ:" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.report_document_event @@ -44,25 +44,31 @@ msgstr "Ambiente:" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.report_document_event msgid "Justification:" -msgstr "" +msgstr "Justificação:" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.report_document_event msgid "Protocol Date:" -msgstr "" +msgstr "Data do Protocolo:" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.report_document_event msgid "Protocol Number:" -msgstr "" +msgstr "Número Protocolo:" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.report_document_event msgid "" -"A Carta de Correção é disciplinada pelo parágrafo 1o-A do artigo 7o do Convênio S/N, de 15 de dezembro de 1970 e pode ser utilizada para regularização de erro ocorrido na emissão de documento fiscal, desde que o erro não seja relacionado com:
\n" +"A Carta de Correção é disciplinada pelo parágrafo 1o-A do artigo 7o do " +"Convênio S/N, de 15 de dezembro de 1970 e pode ser utilizada para " +"regularização de erro ocorrido na emissão de documento fiscal, desde que o " +"erro não seja relacionado com:
\n" "
\n" -" I - as variáveis que determinam o valor do imposto tais como: base de cálculo, alíquota, diferença de preço, quantidade, valor da operação ou da prestação;
\n" -" II - a correção de dados cadastrais que impliquem mudança do remetente ou do destinatário;
\n" +" I - as variáveis que determinam o valor do imposto tais " +"como: base de cálculo, alíquota, diferença de preço, quantidade, valor da " +"operação ou da prestação;
\n" +" II - a correção de dados cadastrais que impliquem mudança " +"do remetente ou do destinatário;
\n" " III - a data de emissão ou de saída.
" msgstr "" @@ -70,12 +76,12 @@ msgstr "" #: model:ir.model.fields.selection,name:l10n_br_fiscal_edi.selection__l10n_br_fiscal_document_import_wizard_mixin__fiscal_operation_type__all #: model:ir.model.fields.selection,name:l10n_br_fiscal_edi.selection__l10n_br_nfe_import_xml__fiscal_operation_type__all msgid "All" -msgstr "" +msgstr "Todos" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.document_form msgid "Authorization" -msgstr "" +msgstr "Autorização" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_invalidate_number__authorization_date @@ -86,13 +92,13 @@ msgstr "Data da Autorização" #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__authorization_event_id #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_invalidate_number__authorization_event_id msgid "Authorization Event" -msgstr "" +msgstr "Evento de Autorização" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__authorization_file_id #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_invalidate_number__authorization_file_id msgid "Authorization File XML" -msgstr "" +msgstr "Aquivo XML de Autorização" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_invalidate_number__authorization_protocol @@ -102,17 +108,17 @@ msgstr "Protocolo de Autorização" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__authorization_date msgid "Authorization Protocol Date" -msgstr "" +msgstr "Data do Protocolo de Autorização" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__authorization_protocol msgid "Authorization Protocol Number" -msgstr "" +msgstr "Número do Protocolo de Autorização" #. module: l10n_br_fiscal_edi #: model:ir.model.fields.selection,name:l10n_br_fiscal_edi.selection__l10n_br_fiscal_event__type__0 msgid "Autorização de Uso" -msgstr "" +msgstr "Autorização de Uso" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.document_cancel_wizard_form @@ -125,17 +131,17 @@ msgstr "Cancelar" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__cancel_event_id msgid "Cancel Event" -msgstr "" +msgstr "Evento de Cancelamento" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__cancel_file_id msgid "Cancel File XML" -msgstr "" +msgstr "Arquivo XML do Cancelamento" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__cancel_date msgid "Cancel Protocol Date" -msgstr "" +msgstr "Data do Protocolo de Cancelamento" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__cancel_protocol_number @@ -146,7 +152,7 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__cancel_reason #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document_workflow__cancel_reason msgid "Cancel Reason" -msgstr "" +msgstr "Motivo do Cancelamento" #. module: l10n_br_fiscal_edi #: model:ir.model.fields.selection,name:l10n_br_fiscal_edi.selection__l10n_br_fiscal_event__type__2 @@ -162,7 +168,7 @@ msgstr "" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.document_form msgid "Cancellation" -msgstr "" +msgstr "Cancelamento" #. module: l10n_br_fiscal_edi #: model:ir.actions.act_window,name:l10n_br_fiscal_edi.document_correction_wizard_action @@ -219,33 +225,33 @@ msgstr "" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__correction_event_ids msgid "Correction Events" -msgstr "" +msgstr "Eventos de Correção" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document__correction_reason #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document_workflow__correction_reason msgid "Correction Reason" -msgstr "" +msgstr "Motivo da Correção" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.document_form msgid "Corrections" -msgstr "" +msgstr "Correções" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_event__create_date msgid "Create Date" -msgstr "" +msgstr "Data de Criação" #. module: l10n_br_fiscal_edi #: model_terms:ir.actions.act_window,help:l10n_br_fiscal_edi.event_action msgid "Create a new Event" -msgstr "" +msgstr "Criar um novo Evento" #. module: l10n_br_fiscal_edi #: model_terms:ir.actions.act_window,help:l10n_br_fiscal_edi.invalidate_number_action msgid "Create a new Invalidation" -msgstr "" +msgstr "Criar uma nova invalidação" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document_cancel_wizard__create_uid @@ -254,7 +260,7 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_event__create_uid #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_invalidate_number_wizard__create_uid msgid "Created by" -msgstr "" +msgstr "Criado por" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document_cancel_wizard__create_date @@ -262,7 +268,7 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_document_import_wizard_mixin__create_date #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_invalidate_number_wizard__create_date msgid "Created on" -msgstr "" +msgstr "Criado em" #. module: l10n_br_fiscal_edi #: model:ir.model.fields.selection,name:l10n_br_fiscal_edi.selection__l10n_br_fiscal_event__type__8 @@ -284,7 +290,7 @@ msgstr "" #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_invalidate_number__display_name #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_invalidate_number_wizard__display_name msgid "Display Name" -msgstr "" +msgstr "Nome Exibido" #. module: l10n_br_fiscal_edi #: model:ir.model.fields.selection,name:l10n_br_fiscal_edi.selection__l10n_br_fiscal_event__type__12 @@ -485,12 +491,12 @@ msgstr "Tipo de Operação Fiscal" #. module: l10n_br_fiscal_edi #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal_edi.wizard_document_status_form msgid "Get Status" -msgstr "" +msgstr "Obter Status" #. module: l10n_br_fiscal_edi #: model:ir.model.fields.selection,name:l10n_br_fiscal_edi.selection__l10n_br_fiscal_event__environment__hml msgid "Homologation" -msgstr "" +msgstr "Homologação" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_base_wizard_mixin__id @@ -530,9 +536,11 @@ msgstr "Entrada" #. module: l10n_br_fiscal_edi #: model:ir.model.fields,help:l10n_br_fiscal_edi.field_l10n_br_fiscal_event__lot_receipt_number msgid "" -"In asynchronous processing, a lot receipt number is generated, which is used" -" for later consultation." +"In asynchronous processing, a lot receipt number is generated, which is used " +"for later consultation." msgstr "" +"No processamento assíncrono, é gerado um número de recebimento de lote, que " +"é utilizado para consulta posterior." #. module: l10n_br_fiscal_edi #: model:ir.model.fields.selection,name:l10n_br_fiscal_edi.selection__l10n_br_fiscal_event__type__3 @@ -548,7 +556,7 @@ msgstr "" #. module: l10n_br_fiscal_edi #: code:addons/l10n_br_fiscal_edi/wizards/document_import_wizard_mixin.py:0 #, python-format -msgid "Invalid file: %s" +msgid "Invalid file!" msgstr "" #. module: l10n_br_fiscal_edi @@ -609,7 +617,7 @@ msgstr "Justificativa" #: code:addons/l10n_br_fiscal_edi/models/document_event.py:0 #, python-format msgid "Justification must be at least 15 characters." -msgstr "" +msgstr "A justificativa deve ter pelo menos 15 caracteres." #. module: l10n_br_fiscal_edi #: model:ir.model.fields,field_description:l10n_br_fiscal_edi.field_l10n_br_fiscal_base_wizard_mixin____last_update diff --git a/l10n_br_fiscal_edi/models/document.py b/l10n_br_fiscal_edi/models/document.py index fd0329dab1e0..d10e74231db9 100644 --- a/l10n_br_fiscal_edi/models/document.py +++ b/l10n_br_fiscal_edi/models/document.py @@ -249,9 +249,7 @@ def _target_new_tab(self, attachment_id): if attachment_id: return { "type": "ir.actions.act_url", - "url": "/web/content/{id}/{nome}".format( - id=attachment_id.id, nome=attachment_id.name - ), + "url": f"/web/content/{attachment_id.id}/{attachment_id.name}", "target": "new", } @@ -289,6 +287,7 @@ def _check_issuer(self): if not record.issuer: raise ValidationError( _( - "The field 'Issuer' is required for brazilian electronic documents!" + "The field 'Issuer' is required for brazilian electronic " + "documents!" ) ) diff --git a/l10n_br_fiscal_edi/models/document_event.py b/l10n_br_fiscal_edi/models/document_event.py index 9d5b907ae04f..6e167372425d 100644 --- a/l10n_br_fiscal_edi/models/document_event.py +++ b/l10n_br_fiscal_edi/models/document_event.py @@ -242,7 +242,7 @@ def _save_event_2disk(self, arquivo, file_name): if not os.path.exists(save_dir): os.makedirs(save_dir) f = open(file_path, "w") - except IOError as e: + except OSError as e: raise UserError( _("Erro!"), _( @@ -388,5 +388,5 @@ def create_event_save_xml( def print_document_event(self): return self.env.ref( - "l10n_br_fiscal.action_report_document_event" + "l10n_br_fiscal_edi.action_report_document_event" ).report_action(self) diff --git a/l10n_br_fiscal_edi/static/description/index.html b/l10n_br_fiscal_edi/static/description/index.html index 8b973131f982..a72ad147eae4 100644 --- a/l10n_br_fiscal_edi/static/description/index.html +++ b/l10n_br_fiscal_edi/static/description/index.html @@ -367,7 +367,7 @@

Common EDI fiscal features

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:40775df1903d605c25b533cbb06ed498af77c7c1a90f00bf15089a2bcd8ef275 +!! source digest: sha256:489c8f7779f2bf2f6f72a9ddc4cbc9de66ea4086d04ea62fb692b32d4409ce86 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Este módulo estende o módulo l10n_br_fiscal e cuida da parte de EDI (Electronic Data Interchange) que é comum entre os vários documentos fiscais no Brasil. Ele introduz os modelos de eventos de transmissão, de correções… Alem disso ele cuida das possíveis transições de estado do documento fiscal em função dos retornos dos webservices (campo state_edoc).

diff --git a/l10n_br_fiscal_edi/tests/test_fiscal_document_generic.py b/l10n_br_fiscal_edi/tests/test_fiscal_document_generic.py index 27f561d258c7..9f2c6bbc9b38 100644 --- a/l10n_br_fiscal_edi/tests/test_fiscal_document_generic.py +++ b/l10n_br_fiscal_edi/tests/test_fiscal_document_generic.py @@ -1076,7 +1076,7 @@ def test_nfe_comments(self): additional_data = self.nfe_not_taxpayer.fiscal_line_ids[0].additional_data self.assertEqual( additional_data, - "manual comment test - Valor Aprox. dos Tributos: R$ 0,00" + "manual comment test - Valor Aprox. dos Tributos: R$ 0,00", # TODO FIXME changed 0.00 to 0,00 to get tests pass on v13, but not # correct ) diff --git a/l10n_br_fiscal_edi/views/document_event_report.xml b/l10n_br_fiscal_edi/views/document_event_report.xml index 2dee234cf5fa..970b678b5717 100644 --- a/l10n_br_fiscal_edi/views/document_event_report.xml +++ b/l10n_br_fiscal_edi/views/document_event_report.xml @@ -4,8 +4,8 @@ Document Event l10n_br_fiscal.event qweb-pdf - l10n_br_fiscal.main_report_document_event - l10n_br_fiscal.report_document_event + l10n_br_fiscal_edi.main_report_document_event + l10n_br_fiscal_edi.report_document_event dict(object.fields_get(allfields=['type'])['type']['selection'])[object.type] diff --git a/l10n_br_fiscal_edi/views/document_event_template.xml b/l10n_br_fiscal_edi/views/document_event_template.xml index 4a688dba47c6..65516c06d2ed 100644 --- a/l10n_br_fiscal_edi/views/document_event_template.xml +++ b/l10n_br_fiscal_edi/views/document_event_template.xml @@ -103,7 +103,7 @@ row {
diff --git a/l10n_br_fiscal_edi/wizards/document_import_wizard_mixin.py b/l10n_br_fiscal_edi/wizards/document_import_wizard_mixin.py index a7839b4637e6..969232917ab1 100644 --- a/l10n_br_fiscal_edi/wizards/document_import_wizard_mixin.py +++ b/l10n_br_fiscal_edi/wizards/document_import_wizard_mixin.py @@ -114,7 +114,7 @@ def _parse_file_data(self, file_data): try: binding = XmlParser().from_bytes(base64.b64decode(file_data)) except Exception as e: - raise UserError(_("Invalid file: %s" % e)) + raise UserError(_("Invalid file!")) from e return binding @api.model diff --git a/l10n_br_hr/README.rst b/l10n_br_hr/README.rst index ea0a2c16f50c..1bb257879b8d 100644 --- a/l10n_br_hr/README.rst +++ b/l10n_br_hr/README.rst @@ -7,7 +7,7 @@ Brazilian Localization HR !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:6c54b6bb07a1a1237f27a7d8445bf5f0aaf3e70852721057cd69355afd0bc58c + !! source digest: sha256:4947308e199934fa640037991dbf426b753eb17f093624713b4fe0f19eaa9438 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_hr/__manifest__.py b/l10n_br_hr/__manifest__.py index 2158f60cbcf7..6e70607d91a5 100644 --- a/l10n_br_hr/__manifest__.py +++ b/l10n_br_hr/__manifest__.py @@ -7,7 +7,7 @@ "category": "Localization", "author": "KMEE, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.1.5.0", + "version": "14.0.1.5.1", "depends": ["hr", "l10n_br_base"], "data": [ "data/l10n_br_hr.cbo.csv", diff --git a/l10n_br_hr/models/data_abstract.py b/l10n_br_hr/models/data_abstract.py index 7fad0f50e083..f4f7a194f184 100644 --- a/l10n_br_hr/models/data_abstract.py +++ b/l10n_br_hr/models/data_abstract.py @@ -15,7 +15,7 @@ class DataAbstract(models.AbstractModel): name = fields.Text(required=True, index=True) def name_get(self): - return [(r.id, "{} - {}".format(r.code, r.name)) for r in self] + return [(r.id, f"{r.code} - {r.name}") for r in self] @api.model def _name_search( diff --git a/l10n_br_hr/static/description/index.html b/l10n_br_hr/static/description/index.html index 53bbf4619459..b8fa7eda7216 100644 --- a/l10n_br_hr/static/description/index.html +++ b/l10n_br_hr/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@

Brazilian Localization HR

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:6c54b6bb07a1a1237f27a7d8445bf5f0aaf3e70852721057cd69355afd0bc58c +!! source digest: sha256:4947308e199934fa640037991dbf426b753eb17f093624713b4fe0f19eaa9438 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Este é o módulo base dos recursos humanos brasileiro e implementa adaptações nos modelos básicos do cadastro de Empregados e suas dependências:

@@ -441,7 +441,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_hr_expense_invoice/README.rst b/l10n_br_hr_expense_invoice/README.rst index ba5cb328a728..3d3b350a870b 100644 --- a/l10n_br_hr_expense_invoice/README.rst +++ b/l10n_br_hr_expense_invoice/README.rst @@ -7,7 +7,7 @@ Brazilian Localization Expense Invoice !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:4a25ad991b743e275d87423392ae46e6c9fc1342594992dab6c3190dcaf4cacf + !! source digest: sha256:a621083c16eab68f1e1a2566db6d3063a946f4dd058abf419a3ef183f90859fe !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_hr_expense_invoice/__manifest__.py b/l10n_br_hr_expense_invoice/__manifest__.py index 8752514ff510..f7b7a1411259 100644 --- a/l10n_br_hr_expense_invoice/__manifest__.py +++ b/l10n_br_hr_expense_invoice/__manifest__.py @@ -5,7 +5,7 @@ "name": "Brazilian Localization Expense Invoice", "summary": """ Customization of HR Expense Invoice module for implementations in Brazil.""", - "version": "14.0.1.0.0", + "version": "14.0.1.0.1", "license": "AGPL-3", "author": "Escodoo,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", diff --git a/l10n_br_hr_expense_invoice/models/hr_expense.py b/l10n_br_hr_expense_invoice/models/hr_expense.py index dd91ec050ea8..ce0e5f10d3f8 100644 --- a/l10n_br_hr_expense_invoice/models/hr_expense.py +++ b/l10n_br_hr_expense_invoice/models/hr_expense.py @@ -5,7 +5,6 @@ class HrExpense(models.Model): - _inherit = ["hr.expense"] fiscal_operation_id = fields.Many2one( diff --git a/l10n_br_hr_expense_invoice/models/res_company.py b/l10n_br_hr_expense_invoice/models/res_company.py index 63025e355132..0be5164f6752 100644 --- a/l10n_br_hr_expense_invoice/models/res_company.py +++ b/l10n_br_hr_expense_invoice/models/res_company.py @@ -5,7 +5,6 @@ class ResCompany(models.Model): - _inherit = "res.company" expense_invoice_fiscal_operation_id = fields.Many2one( diff --git a/l10n_br_hr_expense_invoice/static/description/index.html b/l10n_br_hr_expense_invoice/static/description/index.html index fe5bd6ed1267..631a8d2b9785 100644 --- a/l10n_br_hr_expense_invoice/static/description/index.html +++ b/l10n_br_hr_expense_invoice/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localization Expense Invoice

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:4a25ad991b743e275d87423392ae46e6c9fc1342594992dab6c3190dcaf4cacf +!! source digest: sha256:a621083c16eab68f1e1a2566db6d3063a946f4dd058abf419a3ef183f90859fe !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module was written to extend the functionality of Expense Invoice module to support the adequacy of Brazilian standards

diff --git a/l10n_br_hr_expense_invoice/tests/test_l10n_br_hr_expense_invoice.py b/l10n_br_hr_expense_invoice/tests/test_l10n_br_hr_expense_invoice.py index f688399e2d73..2a3db869165c 100644 --- a/l10n_br_hr_expense_invoice/tests/test_l10n_br_hr_expense_invoice.py +++ b/l10n_br_hr_expense_invoice/tests/test_l10n_br_hr_expense_invoice.py @@ -56,10 +56,10 @@ def test_created_invoices(self): len(invoices), 2, "The number of created invoices is not as expected." ) invoice_1 = self.sheet_id.expense_line_ids.filtered( - lambda l: l.name == "expense_1" + lambda line: line.name == "expense_1" ).invoice_id invoice_2 = self.sheet_id.expense_line_ids.filtered( - lambda l: l.name == "expense_2" + lambda line: line.name == "expense_2" ).invoice_id self.assertFalse( invoice_1.fiscal_operation_id, diff --git a/l10n_br_ie_search/README.rst b/l10n_br_ie_search/README.rst index 3a01ba8b69b9..32011d700678 100644 --- a/l10n_br_ie_search/README.rst +++ b/l10n_br_ie_search/README.rst @@ -7,7 +7,7 @@ Brazilian Localization IE Search !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:2c856c235f943fbf3fad2917673b008a9a9f98c483e7ac17da32bce307e42079 + !! source digest: sha256:259234d48b8bc4cea4828ed1c37295cfe2a9aa7364145184a1ad9fdd2fcd3e60 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_ie_search/__manifest__.py b/l10n_br_ie_search/__manifest__.py index 5c5f28b9e9f5..ae4f89872952 100644 --- a/l10n_br_ie_search/__manifest__.py +++ b/l10n_br_ie_search/__manifest__.py @@ -5,7 +5,7 @@ "name": "Brazilian Localization IE Search", "summary": """ Integração com a API SintegraWS e SEFAZ""", - "version": "14.0.1.3.0", + "version": "14.0.1.3.1", "license": "AGPL-3", "author": "KMEE,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", diff --git a/l10n_br_ie_search/static/description/index.html b/l10n_br_ie_search/static/description/index.html index 983376106fe4..4657a1c00093 100644 --- a/l10n_br_ie_search/static/description/index.html +++ b/l10n_br_ie_search/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localization IE Search

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:2c856c235f943fbf3fad2917673b008a9a9f98c483e7ac17da32bce307e42079 +!! source digest: sha256:259234d48b8bc4cea4828ed1c37295cfe2a9aa7364145184a1ad9fdd2fcd3e60 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Módulo que busca a inscrição estadual referente ao CNPJ pesquisado ao clicar no botão de busca de cnpj do módulo l10n_br_cnpj_search, assim preenchendo o campo State Tax Number.

diff --git a/l10n_br_ie_search/tests/test_sefaz.py b/l10n_br_ie_search/tests/test_sefaz.py index e4976751b004..bddca7a901b9 100644 --- a/l10n_br_ie_search/tests/test_sefaz.py +++ b/l10n_br_ie_search/tests/test_sefaz.py @@ -15,7 +15,7 @@ from odoo.tools.misc import format_date -class FakeRetorno(object): +class FakeRetorno: __slots__ = "text", "ok" diff --git a/l10n_br_ie_search/tests/test_sintegra.py b/l10n_br_ie_search/tests/test_sintegra.py index d54f426e33c1..f3b1efa6a699 100644 --- a/l10n_br_ie_search/tests/test_sintegra.py +++ b/l10n_br_ie_search/tests/test_sintegra.py @@ -12,7 +12,7 @@ _logger = logging.getLogger(__name__) -class FakeRetorno(object): +class FakeRetorno: __slots__ = "text", "status_code" def json(self): diff --git a/l10n_br_mdfe_spec/i18n/pt_BR.po b/l10n_br_mdfe_spec/i18n/pt_BR.po index c718e696edd8..44ec02f302d5 100644 --- a/l10n_br_mdfe_spec/i18n/pt_BR.po +++ b/l10n_br_mdfe_spec/i18n/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-07-29 17:58+0000\n" +"PO-Revision-Date: 2024-09-26 14:06+0000\n" "Last-Translator: Marcel Savegnago \n" "Language-Team: none\n" "Language: pt_BR\n" @@ -1596,7 +1596,7 @@ msgstr "" #. module: l10n_br_mdfe_spec #: model:ir.model.fields,field_description:l10n_br_mdfe_spec.field_mdfe_30_infprot__mdfe30_Id msgid "Id" -msgstr "" +msgstr "Id" #. module: l10n_br_mdfe_spec #: model:ir.model.fields,field_description:l10n_br_mdfe_spec.field_mdfe_30_infembcomb__mdfe30_xBalsa diff --git a/l10n_br_nfe/README.rst b/l10n_br_nfe/README.rst index 991d64bd776e..e1a54f0cdaa3 100644 --- a/l10n_br_nfe/README.rst +++ b/l10n_br_nfe/README.rst @@ -7,7 +7,7 @@ NF-e !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:40ae796072adbc2a3fa7212c5e1a1dbb795d7a562fb77d28be03d73092ca3f5a + !! source digest: sha256:3f6366d2aecb6bee3d7feedbb56a2cd2799dde16f07846051ca82774f3dd2df0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_nfe/__manifest__.py b/l10n_br_nfe/__manifest__.py index 7613edf2fd59..57cef9bbe755 100644 --- a/l10n_br_nfe/__manifest__.py +++ b/l10n_br_nfe/__manifest__.py @@ -11,7 +11,7 @@ "maintainers": ["rvalyi", "renatonlima"], "website": "https://github.com/OCA/l10n-brazil", "development_status": "Beta", - "version": "14.0.17.1.0", + "version": "14.0.17.1.2", "depends": [ "l10n_br_fiscal_edi", "l10n_br_fiscal_certificate", diff --git a/l10n_br_nfe/hooks.py b/l10n_br_nfe/hooks.py index 549504601e50..b6e8745b0167 100644 --- a/l10n_br_nfe/hooks.py +++ b/l10n_br_nfe/hooks.py @@ -41,4 +41,4 @@ def post_init_hook(cr, registry): ) _logger.info(nfe.nfe40_emit.nfe40_CNPJ) except ValidationError: - _logger.info("NF-e already %s imported by hooks" % (document_number,)) + _logger.info(f"NF-e already {document_number} imported by hooks") diff --git a/l10n_br_nfe/models/document.py b/l10n_br_nfe/models/document.py index b0dbd137e8e6..9fdd0248eb33 100644 --- a/l10n_br_nfe/models/document.py +++ b/l10n_br_nfe/models/document.py @@ -15,7 +15,8 @@ from lxml import etree from nfelib.nfe.bindings.v4_0.leiaute_nfe_v4_00 import TnfeProc from nfelib.nfe.bindings.v4_0.nfe_v4_00 import Nfe -from nfelib.nfe.ws.edoc_legacy import NFCeAdapter as edoc_nfce, NFeAdapter as edoc_nfe +from nfelib.nfe.ws.edoc_legacy import NFCeAdapter as edoc_nfce +from nfelib.nfe.ws.edoc_legacy import NFeAdapter as edoc_nfe from requests import Session from xsdata.formats.dataclass.parsers import XmlParser from xsdata.models.datatype import XmlDateTime @@ -399,6 +400,19 @@ def _compute_emit_data(self): for doc in self: # TODO if out doc.nfe40_emit = doc.company_id + def _set_nfe40_IEST(self): + self.ensure_one() + iest = "" + if self.partner_id: + dest_state_id = self.partner_id.state_id + if dest_state_id in self.company_id.state_tax_number_ids.mapped("state_id"): + stn_id = self.company_id.state_tax_number_ids.filtered( + lambda stn: stn.state_id == dest_state_id + ) + iest = stn_id.inscr_est + iest = re.sub("[^0-9]+", "", iest) + self.company_inscr_est_st = iest + ########################## # NF-e tag: dest ########################## @@ -431,19 +445,6 @@ def _compute_dest_data(self): doc.nfe40_dest = None else: doc.nfe40_dest = doc.partner_id - doc._set_nfe40_IEST() - - def _set_nfe40_IEST(self): - self.ensure_one() - iest = "" - if self.partner_id: - dest_state_id = self.partner_id.state_id - if dest_state_id in self.company_id.state_tax_number_ids.mapped("state_id"): - stn_id = self.company_id.state_tax_number_ids.filtered( - lambda stn: stn.state_id == dest_state_id - ) - iest = stn_id.inscr_est - self.company_inscr_est_st = iest ########################## # NF-e tag: entrega @@ -701,6 +702,17 @@ def _export_many2one(self, field_name, xsd_required, class_obj=None): ): return False + if ( + field_name == "nfe40_emit" + and self.fiscal_operation_type == "out" + and self.issuer == "company" + ): + self._set_nfe40_IEST() + res = super()._export_many2one(field_name, xsd_required, class_obj) + if self.company_inscr_est_st: + res.IEST = self.company_inscr_est_st + return res + return super()._export_many2one(field_name, xsd_required, class_obj) def _export_one2many(self, field_name, class_obj=None): @@ -722,7 +734,7 @@ def _prepare_import_dict( } def _build_attr(self, node, fields, vals, path, attr): - key = "nfe40_%s" % (attr[0],) # TODO schema wise + key = f"nfe40_{attr[0]}" # TODO schema wise value = getattr(node, attr[0]) if key == "nfe40_mod": @@ -855,7 +867,8 @@ def _check_document_date_key(self): ): raise ValidationError( _( - "The document date does not match the date in the document key." + "The document date does not match the date in the document " + "key." ) ) @@ -1055,7 +1068,7 @@ def _exec_after_SITUACAO_EDOC_AUTORIZADA(self, old_state, new_state): # autorizado, podendo perder dados. # Se der problema que apareça quando # o usuário clicar no gerar PDF novamente. - _logger.error("DANFE Error \n {}".format(e)) + _logger.error(f"DANFE Error \n {e}") return super()._exec_after_SITUACAO_EDOC_AUTORIZADA(old_state, new_state) def _generate_key(self): @@ -1351,7 +1364,8 @@ def _document_cancel(self, justificative): if not justificative or len(justificative) < 15: raise ValidationError( _( - "Please enter a justification that is at least 15 characters long." + "Please enter a justification that is at least 15 characters " + "long." ) ) result = super()._document_cancel(justificative) diff --git a/l10n_br_nfe/models/document_line.py b/l10n_br_nfe/models/document_line.py index 95ef91dc3c05..ca880bf2dbec 100644 --- a/l10n_br_nfe/models/document_line.py +++ b/l10n_br_nfe/models/document_line.py @@ -38,7 +38,7 @@ "ICMSSN900", ] -ICMS_SELECTION = list(map(lambda tag: ("nfe40_%s" % (tag,), tag), ICMS_SUB_TAGS)) +ICMS_SELECTION = list(map(lambda tag: (f"nfe40_{tag}", tag), ICMS_SUB_TAGS)) PIS_SUB_TAGS = [ "PISAliq", @@ -47,7 +47,7 @@ "PISOutr", ] -PIS_SELECTION = list(map(lambda tag: ("nfe40_%s" % (tag,), tag), PIS_SUB_TAGS)) +PIS_SELECTION = list(map(lambda tag: (f"nfe40_{tag}", tag), PIS_SUB_TAGS)) COFINS_SUB_TAGS = [ "COFINSAliq", @@ -56,7 +56,7 @@ "COFINSOutr", ] -COFINS_SELECTION = list(map(lambda tag: ("nfe40_%s" % (tag,), tag), COFINS_SUB_TAGS)) +COFINS_SELECTION = list(map(lambda tag: (f"nfe40_{tag}", tag), COFINS_SUB_TAGS)) class NFeLine(spec_models.StackedModel): @@ -1189,27 +1189,21 @@ def map_binding_attr(attr, odoo_attr=None): # common attributes CST, VBC, p*, v*: cst = map_binding_attr("CST") if cst: - cst_id = self.env.ref( - "l10n_br_fiscal.cst_%s_%s" - % ( - kind, - cst, - ) - ).id - odoo_attrs["%s_cst_id" % (kind,)] = cst_id + cst_id = self.env.ref(f"l10n_br_fiscal.cst_{kind}_{cst}").id + odoo_attrs[f"{kind}_cst_id"] = cst_id else: cst_id = None - map_binding_attr("vBC", "%s_base" % (kind,)) + map_binding_attr("vBC", f"{kind}_base") percent = map_binding_attr( - "p%s" % (kind.upper().replace("ST", ""),), "%s_percent" % (kind,) + f"p{kind.upper().replace('ST', '')}", f"{kind}_percent" ) if kind in ("icms", "icmsufdest"): map_binding_attr("modBC", "icms_base_type") icms_percent_red = map_binding_attr("pRedBC", "icms_reduction") else: - map_binding_attr("modBC", "%s_base_type" % (kind,)) + map_binding_attr("modBC", f"{kind}_base_type") icms_percent_red = None if "ICMSSN" in key: @@ -1220,15 +1214,13 @@ def map_binding_attr(attr, odoo_attr=None): tax_group_kind = "icms" else: tax_group_kind = kind - tax_group_id = self.env.ref( - "l10n_br_fiscal.tax_group_%s" % (tax_group_kind,) - ).id + tax_group_id = self.env.ref(f"l10n_br_fiscal.tax_group_{tax_group_kind}").id tax_domain = [("tax_group_id", "=", tax_group_id)] if percent: tax_domain.append(("percent_amount", "=", percent)) tax_domain_with_cst = None if cst_id: - cst_kind = "cst_%s_id" % (self.env.context.get("edoc_type", "in"),) + cst_kind = "cst_{}_id".format(self.env.context.get("edoc_type", "in")) tax_domain_with_cst = tax_domain + [(cst_kind, "=", cst_id)] fiscal_tax_id = None @@ -1256,24 +1248,24 @@ def map_binding_attr(attr, odoo_attr=None): ) if fiscal_tax_id: - odoo_attrs["%s_tax_id" % (kind,)] = fiscal_tax_id.id + odoo_attrs[f"{kind}_tax_id"] = fiscal_tax_id.id if not odoo_attrs.get("fiscal_tax_ids"): odoo_attrs["fiscal_tax_ids"] = [] odoo_attrs["fiscal_tax_ids"].append(fiscal_tax_id.id) - elif not odoo_attrs.get("%s_tax_id" % (kind,)): - nt_tax_ref = "l10n_br_fiscal.tax_%s_nt" % (kind,) + elif not odoo_attrs.get(f"{kind}_tax_id"): + nt_tax_ref = f"l10n_br_fiscal.tax_{kind}_nt" nt_tax = self.env.ref(nt_tax_ref, raise_if_not_found=False) if nt_tax: # NOTE, can it be isento or something else? - odoo_attrs["%s_tax_id" % (kind,)] = nt_tax.id + odoo_attrs[f"{kind}_tax_id"] = nt_tax.id - map_binding_attr("v%s" % (kind.upper(),), "%s_value" % (kind,)) + map_binding_attr(f"v{kind.upper()}", f"{kind}_value") if kind in ("icms", "icmsufdest"): map_binding_attr("orig", "icms_origin") mot_des_icms = map_binding_attr("motDesICMS") if mot_des_icms: odoo_attrs["icms_relief_id"] = self.env.ref( - "l10n_br_fiscal.icms_relief_%s" % (mot_des_icms,) + f"l10n_br_fiscal.icms_relief_{mot_des_icms}" ).id map_binding_attr("vICMSDeson", "icms_relief_value") map_binding_attr("vICMSSubstituto", "icms_substitute") @@ -1314,7 +1306,7 @@ def map_binding_attr(attr, odoo_attr=None): csosn = map_binding_attr("CSOSN") if csosn: odoo_attrs["icms_cst_id"] = self.env.ref( - "l10n_br_fiscal.cst_icmssn_%s" % (csosn,) + f"l10n_br_fiscal.cst_icmssn_{csosn}" ).id map_binding_attr("pCredSN", "icmssn_percent") map_binding_attr("vCredICMSSN", "icmssn_credit_value") diff --git a/l10n_br_nfe/models/invalidate_number.py b/l10n_br_nfe/models/invalidate_number.py index 2aef652f3634..e4f55023a759 100644 --- a/l10n_br_nfe/models/invalidate_number.py +++ b/l10n_br_nfe/models/invalidate_number.py @@ -5,7 +5,8 @@ from erpbrasil.base.misc import punctuation_rm from erpbrasil.transmissao import TransmissaoSOAP -from nfelib.nfe.ws.edoc_legacy import NFCeAdapter as edoc_nfce, NFeAdapter as edoc_nfe +from nfelib.nfe.ws.edoc_legacy import NFCeAdapter as edoc_nfce +from nfelib.nfe.ws.edoc_legacy import NFeAdapter as edoc_nfe from requests import Session from odoo import fields, models diff --git a/l10n_br_nfe/models/mde.py b/l10n_br_nfe/models/mde.py index 58236a5bfaf6..ccf637ac73d7 100644 --- a/l10n_br_nfe/models/mde.py +++ b/l10n_br_nfe/models/mde.py @@ -112,9 +112,7 @@ def name_get(self): return [ ( rec.id, - "NFº: {} ({}): {}".format( - rec.number, rec.cnpj_cpf, rec.company_id.legal_name - ), + f"NFº: {rec.number} ({rec.cnpj_cpf}): {rec.company_id.legal_name}", ) for rec in self ] @@ -244,8 +242,9 @@ def action_download_xml(self): def download_attachment(self, attachment_id): return { "type": "ir.actions.act_url", - "url": "/web/content/{id}/{nome}?download=true".format( - id=attachment_id.id, nome=attachment_id.name + "url": ( + f"/web/content/{attachment_id.id}" + f"/{attachment_id.name}?download=true" ), "target": "self", } diff --git a/l10n_br_nfe/static/description/index.html b/l10n_br_nfe/static/description/index.html index 027880de5c02..ac92427d3a2f 100644 --- a/l10n_br_nfe/static/description/index.html +++ b/l10n_br_nfe/static/description/index.html @@ -367,7 +367,7 @@

NF-e

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:40ae796072adbc2a3fa7212c5e1a1dbb795d7a562fb77d28be03d73092ca3f5a +!! source digest: sha256:3f6366d2aecb6bee3d7feedbb56a2cd2799dde16f07846051ca82774f3dd2df0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Este módulo permite a emissão de NF-e.

diff --git a/l10n_br_nfe/tests/test_nfe_import_wizard.py b/l10n_br_nfe/tests/test_nfe_import_wizard.py index c84e43ea9c20..febb7b1fe463 100644 --- a/l10n_br_nfe/tests/test_nfe_import_wizard.py +++ b/l10n_br_nfe/tests/test_nfe_import_wizard.py @@ -13,7 +13,7 @@ class NFeImportWizardTest(SavepointCase): def setUp(self): - super(NFeImportWizardTest, self).setUp() + super().setUp() def test_xml_path(filename): return os.path.join( diff --git a/l10n_br_nfe/tests/test_nfe_mde.py b/l10n_br_nfe/tests/test_nfe_mde.py index 822873c651a5..af852ca3dae0 100644 --- a/l10n_br_nfe/tests/test_nfe_mde.py +++ b/l10n_br_nfe/tests/test_nfe_mde.py @@ -15,19 +15,18 @@ from ..models.mde import MDe -# flake8: noqa: B950 -response_confirmacao_operacao = """2SVRS2023052515551352SVRS202305251555135Teste Confirmação da Operação.31201010588201000105550010038421171838422178210200Confirmacao de Operacao registrada1815830540001292023-07-10T10:00:00-03:00""" +response_confirmacao_operacao = """2SVRS2023052515551352SVRS202305251555135Teste Confirmação da Operação.31201010588201000105550010038421171838422178210200Confirmacao de Operacao registrada1815830540001292023-07-10T10:00:00-03:00""" # noqa: E501 -response_confirmacao_operacao_rejeicao = """2SVRS2023052515554942SVRS202305251555494Rejeição: Chave de Acesso inexistente31201010588201000105550010038421171838422178210200Confirmacao de Operacao registrada1815830540001292023-07-10T10:00:00-03:00""" +response_confirmacao_operacao_rejeicao = """2SVRS2023052515554942SVRS202305251555494Rejeição: Chave de Acesso inexistente31201010588201000105550010038421171838422178210200Confirmacao de Operacao registrada1815830540001292023-07-10T10:00:00-03:00""" # noqa: E501 -response_ciencia_operacao = """2SVRS2023052515551352SVRS202305251555135Teste Ciência da Operação.31201010588201000105550010038421171838422178210210Ciencia da Operacao registrada1815830540001292023-07-10T10:00:00-03:00""" +response_ciencia_operacao = """2SVRS2023052515551352SVRS202305251555135Teste Ciência da Operação.31201010588201000105550010038421171838422178210210Ciencia da Operacao registrada1815830540001292023-07-10T10:00:00-03:00""" # noqa: E501 -response_desconhecimento_operacao = """2SVRS2023052515551352SVRS202305251555135Teste Desconhecimento da Operação.31201010588201000105550010038421171838422178210220Desconhecimento da Operacao registrada1815830540001292023-07-10T10:00:00-03:00""" +response_desconhecimento_operacao = """2SVRS2023052515551352SVRS202305251555135Teste Desconhecimento da Operação.31201010588201000105550010038421171838422178210220Desconhecimento da Operacao registrada1815830540001292023-07-10T10:00:00-03:00""" # noqa: E501 -response_operacao_nao_realizada = """2SVRS2023052515551352SVRS202305251555135Teste Operação não Realizada.31201010588201000105550010038421171838422178210240Operacao nao Realizada registrada1815830540001292023-07-10T10:00:00-03:00""" +response_operacao_nao_realizada = """2SVRS2023052515551352SVRS202305251555135Teste Operação não Realizada.31201010588201000105550010038421171838422178210240Operacao nao Realizada registrada1815830540001292023-07-10T10:00:00-03:00""" # noqa: E501 -class FakeRetorno(object): +class FakeRetorno: def __init__(self, text, status_code=200): self.text = text self.content = text.encode("utf-8") @@ -182,7 +181,7 @@ def test_download_documents(self, _mock_post, _mock_ciencia): self.assertEqual(attachment_single, self.mde_id.attachment_id) self.assertTrue(attachment_multiple) - self.assertEqual(attachment_multiple.name, f"attachments.tar.gz") + self.assertEqual(attachment_multiple.name, "attachments.tar.gz") def get_attachment_from_result(self, result): _, _, _, att_id, _ = result["url"].split("/") diff --git a/l10n_br_nfe/tests/test_nfe_serialize.py b/l10n_br_nfe/tests/test_nfe_serialize.py index c0011bf661b8..874aca8d86a8 100644 --- a/l10n_br_nfe/tests/test_nfe_serialize.py +++ b/l10n_br_nfe/tests/test_nfe_serialize.py @@ -72,6 +72,6 @@ def serialize_xml(self, nfe_data): self.cr.dbname, nfe.send_file_id.store_fname, ) - _logger.info("XML file saved at %s" % (output,)) + _logger.info(f"XML file saved at {output}") diff = main.diff_files(output, xml_path) return diff diff --git a/l10n_br_nfe/tests/test_nfe_serialize_lc.py b/l10n_br_nfe/tests/test_nfe_serialize_lc.py index 93a80266f8c5..8611784c0b05 100644 --- a/l10n_br_nfe/tests/test_nfe_serialize_lc.py +++ b/l10n_br_nfe/tests/test_nfe_serialize_lc.py @@ -24,5 +24,5 @@ def setUp(self): def test_serialize_xml(self): for nfe_data in self.nfe_list: diff = self.serialize_xml(nfe_data) - _logger.info("Diff with expected XML (if any): %s" % (diff,)) + _logger.info(f"Diff with expected XML (if any): {diff}") assert len(diff) == 0 diff --git a/l10n_br_nfe/tests/test_nfe_serialize_sn.py b/l10n_br_nfe/tests/test_nfe_serialize_sn.py index 425e5f0f6e36..6d7aa0e3ad2d 100644 --- a/l10n_br_nfe/tests/test_nfe_serialize_sn.py +++ b/l10n_br_nfe/tests/test_nfe_serialize_sn.py @@ -20,5 +20,5 @@ def setUp(self): def test_serialize_xml(self): for nfe_data in self.nfe_list: diff = self.serialize_xml(nfe_data) - _logger.info("Diff with expected XML (if any): %s" % (diff,)) + _logger.info(f"Diff with expected XML (if any): {diff}") assert len(diff) == 0 diff --git a/l10n_br_nfe/tests/test_nfe_structure.py b/l10n_br_nfe/tests/test_nfe_structure.py index 4e623fc1eac9..0482449c351a 100644 --- a/l10n_br_nfe/tests/test_nfe_structure.py +++ b/l10n_br_nfe/tests/test_nfe_structure.py @@ -36,15 +36,17 @@ def get_stacked_tree(cls, klass): path_items = path.split(".") indent = " ".join(["" for i in range(0, len(path_items))]) if kind == "stacked": - line = "\n%s> <%s>" % (indent, path.split(".")[-1]) + line = "\n{}> <{}>".format(indent, path.split(".")[-1]) elif kind == "one2many": - line = "\n%s \u2261 <%s> %s" % ( + line = "\n{} \u2261 <{}> {}".format( indent, field_path, child_concrete or "", ) elif kind == "many2one": - line = "\n%s - <%s> %s" % (indent, field_path, child_concrete or "") + line = "\n{} - <{}> {}".format( + indent, field_path, child_concrete or "" + ) tree.write(line.rstrip()) tree_txt = tree.getvalue() # print(tree_txt) diff --git a/l10n_br_nfe/wizards/import_document.py b/l10n_br_nfe/wizards/import_document.py index 463fba2926ac..850927897ae2 100644 --- a/l10n_br_nfe/wizards/import_document.py +++ b/l10n_br_nfe/wizards/import_document.py @@ -233,7 +233,7 @@ def _set_fiscal_operation_type(self): def _attach_original_nfe_xml_to_document(self, edoc): return self.env["ir.attachment"].create( { - "name": "NFe-Importada-{}.xml".format(edoc.document_key), + "name": f"NFe-Importada-{edoc.document_key}.xml", "datas": base64.b64decode(self.file), "description": "XML NFe - Importada por XML", "res_model": "l10n_br_fiscal.document", diff --git a/l10n_br_nfe/wizards/l10n_br_account_nfe_export_invoice.py b/l10n_br_nfe/wizards/l10n_br_account_nfe_export_invoice.py index 7e3dd7983e8a..84310e44f721 100644 --- a/l10n_br_nfe/wizards/l10n_br_account_nfe_export_invoice.py +++ b/l10n_br_nfe/wizards/l10n_br_account_nfe_export_invoice.py @@ -119,7 +119,7 @@ def nfe_export(self): data.file_type, ) else: - name = "nfe{}.{}".format(export_inv_numbers[0], data.file_type) + name = f"nfe{export_inv_numbers[0]}.{data.file_type}" mod_serializer = __import__( ("openerp.addons.l10n_br_account_product" ".sped.nfe.serializer.") diff --git a/l10n_br_nfse_barueri/README.rst b/l10n_br_nfse_barueri/README.rst index f1378f7e8e2f..f9418319ec2e 100644 --- a/l10n_br_nfse_barueri/README.rst +++ b/l10n_br_nfse_barueri/README.rst @@ -7,7 +7,7 @@ NFS-e (Barueri) !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:88d3b98ac9f9feb7358d5f7f1509e8307d3f05fdf4c43e810dbc788bc11cbf60 + !! source digest: sha256:1b08a2ad9562bfa0ba64a4875caefc0e3a02e4a5a64c0542b969bdda87bfb17a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_nfse_barueri/__manifest__.py b/l10n_br_nfse_barueri/__manifest__.py index 33afcf9929f0..c5455dff3ced 100644 --- a/l10n_br_nfse_barueri/__manifest__.py +++ b/l10n_br_nfse_barueri/__manifest__.py @@ -5,7 +5,7 @@ "name": "NFS-e (Barueri)", "summary": """ NFS-e (Barueri)""", - "version": "14.0.1.0.1", + "version": "14.0.1.0.2", "license": "AGPL-3", "author": "KMEE, Odoo Community Association (OCA)", "maintainers": ["AndreMarcos", "mileo", "ygcarvalh"], diff --git a/l10n_br_nfse_barueri/models/document.py b/l10n_br_nfse_barueri/models/document.py index 0d48544b99e0..321ab7f5820f 100644 --- a/l10n_br_nfse_barueri/models/document.py +++ b/l10n_br_nfse_barueri/models/document.py @@ -82,7 +82,8 @@ def _serialize_barueri_lote_rps(self): rps = rps.encode("utf-8") if not isinstance(rps, bytes): raise ValueError( - "O conteúdo fornecido para a codificação base64 não está em formato de bytes." + "O conteúdo fornecido para a codificação base64 não está em formato" + " de bytes." ) rps = base64.b64encode(rps) diff --git a/l10n_br_nfse_barueri/static/description/index.html b/l10n_br_nfse_barueri/static/description/index.html index be6d540fe82a..e7b2fe4aa590 100644 --- a/l10n_br_nfse_barueri/static/description/index.html +++ b/l10n_br_nfse_barueri/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -366,7 +367,7 @@

NFS-e (Barueri)

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:88d3b98ac9f9feb7358d5f7f1509e8307d3f05fdf4c43e810dbc788bc11cbf60 +!! source digest: sha256:1b08a2ad9562bfa0ba64a4875caefc0e3a02e4a5a64c0542b969bdda87bfb17a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Esse módulo completa o documento criado pelo l10n_br_nfse para permite a criação e transmissão de Notas Fiscais de Serviço Eletrônicas (NFS-e) pela prefeitura de Barueri.

@@ -428,7 +429,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_nfse_focus/README.rst b/l10n_br_nfse_focus/README.rst index 5d9385294e5f..3fb4ae2f59dc 100644 --- a/l10n_br_nfse_focus/README.rst +++ b/l10n_br_nfse_focus/README.rst @@ -7,7 +7,7 @@ NFS-e (FocusNFE) !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:f5c30db20396f3e1be65fb1add4a8cf0f44250586a70c10e3bcef857b38b1b8b + !! source digest: sha256:ce3915bc0a98211bf16ff1bd676aec104c8872071972980fa7b44f1c1eb6aad4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_nfse_focus/__manifest__.py b/l10n_br_nfse_focus/__manifest__.py index 97f18a128434..3d72e52c9d4b 100644 --- a/l10n_br_nfse_focus/__manifest__.py +++ b/l10n_br_nfse_focus/__manifest__.py @@ -5,7 +5,7 @@ "name": "NFS-e (FocusNFE)", "summary": """ NFS-e (FocusNFE)""", - "version": "14.0.1.2.0", + "version": "14.0.1.2.1", "license": "AGPL-3", "author": "KMEE, Escodoo, Odoo Community Association (OCA)", "maintainers": [ diff --git a/l10n_br_nfse_focus/models/document.py b/l10n_br_nfse_focus/models/document.py index 56d14e9deec8..3316f99fa989 100644 --- a/l10n_br_nfse_focus/models/document.py +++ b/l10n_br_nfse_focus/models/document.py @@ -56,8 +56,10 @@ def _make_focus_nfse_http_request(self, method, url, token, data=None, params=No method (str): The HTTP method to use (e.g., 'GET', 'POST'). url (str): The URL to which the request is sent. token (str): The authentication token for the service. - data (dict, optional): The payload to send in the request body. Defaults to None. - params (dict, optional): The URL parameters to append to the URL. Defaults to None. + data (dict, optional): The payload to send in the request body. + Defaults to None. + params (dict, optional): The URL parameters to append to the URL. + Defaults to None. Returns: requests.Response: The response object from the requests library. @@ -600,7 +602,8 @@ def _cron_document_status_focus(self): None. Returns: - None. Updates the status of each document based on the NFSe provider's response. + None. Updates the status of each document based on the NFSe provider's + response. """ records = ( self.search([("state", "in", ["enviada"])], limit=25) diff --git a/l10n_br_nfse_focus/static/description/index.html b/l10n_br_nfse_focus/static/description/index.html index a510dfa0a370..77b43cab2144 100644 --- a/l10n_br_nfse_focus/static/description/index.html +++ b/l10n_br_nfse_focus/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -366,7 +367,7 @@

NFS-e (FocusNFE)

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:f5c30db20396f3e1be65fb1add4a8cf0f44250586a70c10e3bcef857b38b1b8b +!! source digest: sha256:ce3915bc0a98211bf16ff1bd676aec104c8872071972980fa7b44f1c1eb6aad4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Esse módulo integra a emissão de Notas Fiscais de Serviços(NFSe) com a API da FocusNFE permitindo assim, a criação, transmissão, consulta e cancelamento de documentos fiscais do tipo NFSe.

@@ -458,7 +459,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_nfse_focus/tests/test_l10n_br_nfse_focus.py b/l10n_br_nfse_focus/tests/test_l10n_br_nfse_focus.py index c721c71dac42..e0346143eeda 100644 --- a/l10n_br_nfse_focus/tests/test_l10n_br_nfse_focus.py +++ b/l10n_br_nfse_focus/tests/test_l10n_br_nfse_focus.py @@ -175,7 +175,8 @@ def test_filter_processador_edoc_nfse(self): self.assertEqual(result, True) # Asserting filter result is True record.processador_edoc = None # Resetting document processor - record.document_type_id.code = MODELO_FISCAL_NFE # Setting document type to NFe + # Setting document type to NFe + record.document_type_id.code = MODELO_FISCAL_NFE result = filter_processador_edoc_nfse(record) # Applying filter again @@ -215,7 +216,9 @@ def test_processar_documento(self, mock_post): @patch("odoo.addons.l10n_br_nfse_focus.models.document.requests.request") def test_make_focus_nfse_http_request_generic(self, mock_request): - """Tests generic HTTP request for Focus NFSe operations with mocked responses.""" + """ + Tests generic HTTP request for Focus NFSe operations with mocked responses. + """ # Configuring mock to simulate different HTTP responses based on the method mock_request.side_effect = ( lambda method, url, data, params, auth: mock_response_based_on_method( @@ -333,7 +336,8 @@ def test_make_focus_nfse_pdf(self): self.assertEqual( record.file_report_id.res_model, record._name ) # Asserting model name - self.assertEqual(record.file_report_id.res_id, record.id) # Asserting record ID + # Asserting record ID + self.assertEqual(record.file_report_id.res_id, record.id) self.assertEqual( record.file_report_id.mimetype, "application/pdf" ) # Asserting MIME type @@ -350,7 +354,8 @@ def test_make_focus_nfse_pdf(self): # Testing with non-filtered conditions record.processador_edoc = "" - record.document_type_id.code = MODELO_FISCAL_NFE # Setting document type to NFe + # Setting document type to NFe + record.document_type_id.code = MODELO_FISCAL_NFE with open(pdf_path, "rb") as file: content = file.read() # Reading PDF content again @@ -360,7 +365,8 @@ def test_make_focus_nfse_pdf(self): ) as mock_super_make_pdf: record.make_focus_nfse_pdf(content) # Attempting to generate PDF - mock_super_make_pdf.assert_called_once() # Asserting superclass method called once + # Asserting superclass method called once + mock_super_make_pdf.assert_called_once() def test_serialize(self): """Tests serialization of document data.""" @@ -436,7 +442,8 @@ def test_document_status(self, mock_query): ) def test_cancel_document_focus_with_error(self, mock_request): """Tests document cancellation with simulated error.""" - # Configuring mock to raise a UserError in response to a simulated HTTP 400 error + # Configuring mock to raise a UserError in response to a simulated + # HTTP 400 error mock_request.side_effect = UserError( "Error communicating with NFSe service: 400 Bad Request" ) @@ -530,7 +537,8 @@ def test_eletronic_document_send(self, mock_process_focus_nfse_document): "after processing with status 500", ) - # Checking if the processing method was called three times, once for each test scenario + # Checking if the processing method was called three times, + # once for each test scenario self.assertEqual( mock_process_focus_nfse_document.call_count, 3, @@ -549,7 +557,8 @@ def test_cron_document_status_focus(self): "odoo.addons.l10n_br_nfse_focus.models.document.Document.filtered" ) as mock_filtered: with patch( - "odoo.addons.l10n_br_nfse_focus.models.document.Document._document_status" + "odoo.addons.l10n_br_nfse_focus.models.document." + "Document._document_status" ) as mock_document_status: mock_search.return_value = record # Mocking search return mock_filtered.return_value = record # Mocking filtered return @@ -560,7 +569,8 @@ def test_cron_document_status_focus(self): mock_search.assert_called_once_with( [("state", "in", ["enviada"])], limit=25 ) # Asserting search criteria - mock_document_status.assert_called_once() # Asserting document status check + # Asserting document status check + mock_document_status.assert_called_once() @patch( "odoo.addons.l10n_br_nfse_focus.models.document.Document.cancel_document_focus" @@ -574,7 +584,8 @@ def test_exec_before_SITUACAO_EDOC_CANCELADA(self, mock_cancel_document_focus): result = record._exec_before_SITUACAO_EDOC_CANCELADA( SITUACAO_EDOC_EM_DIGITACAO, SITUACAO_EDOC_A_ENVIAR ) # Executing before status change - mock_cancel_document_focus.assert_called_once() # Asserting cancellation was attempted + # Asserting cancellation was attempted + mock_cancel_document_focus.assert_called_once() self.assertEqual( result, mock_cancel_document_focus.return_value ) # Asserting expected result diff --git a/l10n_br_pos/README.rst b/l10n_br_pos/README.rst index ed067cfa6821..6e160ccdf362 100644 --- a/l10n_br_pos/README.rst +++ b/l10n_br_pos/README.rst @@ -7,7 +7,7 @@ Ponto de venda adaptado a legislação Brasileira !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a96d6975f0622da1ca1c99dbbe5879f8f87f9f4a7bf6780befb9d33cce085182 + !! source digest: sha256:f61e08b03caefed7eac4e7ce7a62f0211ab6d5b180370fa611654bcf0b119f47 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png diff --git a/l10n_br_pos/__manifest__.py b/l10n_br_pos/__manifest__.py index 1c60571c6336..e3503dabff09 100644 --- a/l10n_br_pos/__manifest__.py +++ b/l10n_br_pos/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Ponto de venda adaptado a legislação Brasileira", - "version": "14.0.1.5.2", + "version": "14.0.1.5.3", "author": "KMEE, Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", "license": "AGPL-3", diff --git a/l10n_br_pos/i18n/pt_BR.po b/l10n_br_pos/i18n/pt_BR.po index da384eccb998..b0fb33a137ab 100644 --- a/l10n_br_pos/i18n/pt_BR.po +++ b/l10n_br_pos/i18n/pt_BR.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-02-23 14:30+0000\n" -"PO-Revision-Date: 2024-09-11 18:06+0000\n" +"PO-Revision-Date: 2024-09-26 14:06+0000\n" "Last-Translator: Marcel Savegnago \n" "Language-Team: \n" "Language: pt_BR\n" @@ -631,7 +631,7 @@ msgstr "" #. module: l10n_br_pos #: model_terms:ir.ui.view,arch_db:l10n_br_pos.view_pos_pos_form msgid "Cancellation" -msgstr "" +msgstr "Cancelamento" #. module: l10n_br_pos #: model:ir.model.fields,field_description:l10n_br_pos.field_pos_config__cashier_number diff --git a/l10n_br_pos/models/cfop.py b/l10n_br_pos/models/cfop.py index ca557b33ccc0..0fbb24282965 100644 --- a/l10n_br_pos/models/cfop.py +++ b/l10n_br_pos/models/cfop.py @@ -9,5 +9,5 @@ class CFOP(models.Model): is_pos = fields.Boolean( string="Allowed at the POS", - help="""Check this selection so that the CFOP can be used at the Point of Sale.""", + help="Check this selection so that the CFOP can be used at the Point of Sale.", ) diff --git a/l10n_br_pos/models/pos_config.py b/l10n_br_pos/models/pos_config.py index f8b2b21e955d..1f58a50e199a 100644 --- a/l10n_br_pos/models/pos_config.py +++ b/l10n_br_pos/models/pos_config.py @@ -27,7 +27,7 @@ def _compute_allowed_tax(self): if record.cfop_ids and record.out_pos_fiscal_operation_id: record.out_pos_fiscal_operation_line_ids = ( record.out_pos_fiscal_operation_id.line_ids.filtered( - lambda x: x.cfop_internal_id in record.cfop_ids + lambda x, record=record: x.cfop_internal_id in record.cfop_ids ) ) else: @@ -66,7 +66,8 @@ def _compute_allowed_tax(self): anonymous_simplified_limit = fields.Float( digits="Account", - help="Over this amount is not legally posible to create a Anonymous NFC-E / CF-e", + help="Over this amount is not legally posible to create a Anonymous " + "NFC-E / CF-e", default=10000, ) diff --git a/l10n_br_pos/static/description/index.html b/l10n_br_pos/static/description/index.html index a39561d83bff..0156eed560dd 100644 --- a/l10n_br_pos/static/description/index.html +++ b/l10n_br_pos/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@

Ponto de venda adaptado a legislação Brasileira

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:a96d6975f0622da1ca1c99dbbe5879f8f87f9f4a7bf6780befb9d33cce085182 +!! source digest: sha256:f61e08b03caefed7eac4e7ce7a62f0211ab6d5b180370fa611654bcf0b119f47 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Alpha License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module adds brazilian fields, validations and tax calc to point of sale.

@@ -479,7 +479,9 @@

Other credits

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_pos_cfe/README.rst b/l10n_br_pos_cfe/README.rst index cd7248c8cc42..679adaf8d98e 100644 --- a/l10n_br_pos_cfe/README.rst +++ b/l10n_br_pos_cfe/README.rst @@ -7,7 +7,7 @@ L10n Br Pos Cfe !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:9d1aa174788e7dc5223310ef0bcf5fecab504735950b246b11a1bb8a8520db7a + !! source digest: sha256:3173ba7d05c06161e523677cb83abd7ba9e88104858646c25fac1b217a17540f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png diff --git a/l10n_br_pos_cfe/__manifest__.py b/l10n_br_pos_cfe/__manifest__.py index 4696c9e64e10..f37785640e05 100644 --- a/l10n_br_pos_cfe/__manifest__.py +++ b/l10n_br_pos_cfe/__manifest__.py @@ -4,7 +4,7 @@ { "name": "L10n Br Pos Cfe", "summary": """CF-e""", - "version": "14.0.1.4.0", + "version": "14.0.1.4.1", "license": "AGPL-3", "author": "KMEE,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", diff --git a/l10n_br_pos_cfe/static/description/index.html b/l10n_br_pos_cfe/static/description/index.html index 6675c6a9a224..ec69d038feaf 100644 --- a/l10n_br_pos_cfe/static/description/index.html +++ b/l10n_br_pos_cfe/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@

L10n Br Pos Cfe

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:9d1aa174788e7dc5223310ef0bcf5fecab504735950b246b11a1bb8a8520db7a +!! source digest: sha256:3173ba7d05c06161e523677cb83abd7ba9e88104858646c25fac1b217a17540f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Alpha License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Integração e emissão da CF-e através do Ponto de Venda para @@ -478,7 +478,9 @@

Other credits

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_pos_cfe/static/src/js/ChromeWidgets/ProxyStatus.js b/l10n_br_pos_cfe/static/src/js/ChromeWidgets/ProxyStatus.js index c0aa22b314fc..7a349c4f7a34 100644 --- a/l10n_br_pos_cfe/static/src/js/ChromeWidgets/ProxyStatus.js +++ b/l10n_br_pos_cfe/static/src/js/ChromeWidgets/ProxyStatus.js @@ -9,7 +9,7 @@ odoo.define("l10n_br_pos_cfe.ProxyStatus", function (require) { var Registries = require("point_of_sale.Registries"); var ProxyStatus = require("point_of_sale.ProxyStatus"); - const CFeProxyStatus = (ProxyStatus_status = ProxyStatus) => + const CustomCFeProxyStatus = (ProxyStatus_status = ProxyStatus) => class CFeProxyStatus extends ProxyStatus_status { _setStatus(newStatus) { super._setStatus(newStatus); @@ -31,5 +31,5 @@ odoo.define("l10n_br_pos_cfe.ProxyStatus", function (require) { } } }; - Registries.Component.extend(ProxyStatus, CFeProxyStatus); + Registries.Component.extend(ProxyStatus, CustomCFeProxyStatus); }); diff --git a/l10n_br_purchase/README.rst b/l10n_br_purchase/README.rst index 0d60085f4a90..5e4cadd75bf2 100644 --- a/l10n_br_purchase/README.rst +++ b/l10n_br_purchase/README.rst @@ -7,7 +7,7 @@ Brazilian Localization Purchase !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:b3c9e73afaded6b91c3b959908eeeb4d2e63a221cd5adaddf923661211bc1710 + !! source digest: sha256:2cd0805c4cc4a431266299ee5d9d683ab4a713f312e20e4edbc705bf5a45e438 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_purchase/__manifest__.py b/l10n_br_purchase/__manifest__.py index 009aaf7a5390..bf43032f4e12 100644 --- a/l10n_br_purchase/__manifest__.py +++ b/l10n_br_purchase/__manifest__.py @@ -8,7 +8,7 @@ "author": "Akretion, Odoo Community Association (OCA)", "maintainers": ["renatonlima", "rvalyi"], "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.3.10.0", + "version": "14.0.3.10.1", "depends": ["purchase", "l10n_br_account"], "data": [ # Security diff --git a/l10n_br_purchase/reports/purchase_report.py b/l10n_br_purchase/reports/purchase_report.py index dd941dc756c4..f70a830bc5f5 100644 --- a/l10n_br_purchase/reports/purchase_report.py +++ b/l10n_br_purchase/reports/purchase_report.py @@ -103,8 +103,8 @@ def _select(self): , SUM(l.freight_value) as freight_value , SUM(l.insurance_value) as insurance_value , SUM(l.other_value) as other_value - , SUM(l.price_unit / COALESCE(NULLIF(po.currency_rate, 0), 1.0) * l.product_qty - )::decimal(16,2) + , SUM(l.price_unit / COALESCE(NULLIF(po.currency_rate, 0), 1.0) + * l.product_qty )::decimal(16,2) + SUM(CASE WHEN l.ipi_value IS NULL THEN 0.00 ELSE l.ipi_value END) + SUM(CASE WHEN l.icmsst_value IS NULL THEN diff --git a/l10n_br_purchase/static/description/index.html b/l10n_br_purchase/static/description/index.html index 3b0c5d99fa89..091e0f668265 100644 --- a/l10n_br_purchase/static/description/index.html +++ b/l10n_br_purchase/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localization Purchase

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:b3c9e73afaded6b91c3b959908eeeb4d2e63a221cd5adaddf923661211bc1710 +!! source digest: sha256:2cd0805c4cc4a431266299ee5d9d683ab4a713f312e20e4edbc705bf5a45e438 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Este módulo integra a parte fiscal do módulo l10n_br_fiscal com o módulo de compra purchase do Odoo. O módulo permite o cálculo dos impostos brasileiros já no pedido de compra e propaga a operação fiscal até a nota fiscal de compra, deixando ela com a tributação mais correta possível para seu financeiro (sendo que vocẽ poderia também importar o XML da nota depois).

diff --git a/l10n_br_purchase/tests/test_l10n_br_purchase.py b/l10n_br_purchase/tests/test_l10n_br_purchase.py index fddd5f00ef3f..ad0e63d26cfc 100644 --- a/l10n_br_purchase/tests/test_l10n_br_purchase.py +++ b/l10n_br_purchase/tests/test_l10n_br_purchase.py @@ -262,17 +262,20 @@ def _invoice_purchase_order(self, order): self.assertEqual( order.amount_freight_value, invoice.amount_freight_value, - "Error field Amount Freight in Invoice are different from Purchase Order.", + "Error field Amount Freight in Invoice are different from " + "Purchase Order.", ) self.assertEqual( order.amount_insurance_value, invoice.amount_insurance_value, - "Error field Amount Insurance in Invoice are different from Purchase Order.", + "Error field Amount Insurance in Invoice are different from " + "Purchase Order.", ) self.assertEqual( order.amount_other_value, invoice.amount_other_value, - "Error field Amount Other Values in Invoice are different from Purchase Order.", + "Error field Amount Other Values in Invoice are different from " + "Purchase Order.", ) for line in invoice.invoice_line_ids: @@ -590,7 +593,9 @@ def test_purchase_service_and_products(self): ) def test_compatible_with_international_case(self): - """Test of compatible with international case, create Invoice but not for Brazil.""" + """ + Test of compatible with international case, create Invoice but not for Brazil. + """ po_international = self.env.ref("purchase.purchase_order_1") self._run_purchase_order_onchanges(po_international) for line in po_international.order_line: diff --git a/l10n_br_purchase_stock/README.rst b/l10n_br_purchase_stock/README.rst index ba2932dd7969..786aa25afe93 100644 --- a/l10n_br_purchase_stock/README.rst +++ b/l10n_br_purchase_stock/README.rst @@ -7,7 +7,7 @@ Brazilian Localization Purchase Stock !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:c10afb315333d9bef7dd84a7a419fa8e7a2546a1c3c579aae018458cbc5e0e1e + !! source digest: sha256:4950e1e8aba612b75efd06a73991fce24e58be8bf07b4354fdf22afff43d1430 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_purchase_stock/__manifest__.py b/l10n_br_purchase_stock/__manifest__.py index 3d45d726d7b6..004154677c97 100644 --- a/l10n_br_purchase_stock/__manifest__.py +++ b/l10n_br_purchase_stock/__manifest__.py @@ -8,7 +8,7 @@ "author": "Akretion, Odoo Community Association (OCA)", "maintainers": ["renatonlima", "mbcosta"], "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.3.0.0", + "version": "14.0.3.0.1", "depends": [ "l10n_br_purchase", "l10n_br_stock_account", diff --git a/l10n_br_purchase_stock/static/description/index.html b/l10n_br_purchase_stock/static/description/index.html index 7ede1718c2b5..ca2d898b7066 100644 --- a/l10n_br_purchase_stock/static/description/index.html +++ b/l10n_br_purchase_stock/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localization Purchase Stock

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:c10afb315333d9bef7dd84a7a419fa8e7a2546a1c3c579aae018458cbc5e0e1e +!! source digest: sha256:4950e1e8aba612b75efd06a73991fce24e58be8bf07b4354fdf22afff43d1430 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module extends the standard Odoo purchase module for Brazil, diff --git a/l10n_br_purchase_stock/tests/test_l10n_br_purchase_stock.py b/l10n_br_purchase_stock/tests/test_l10n_br_purchase_stock.py index fce9ffbb07ea..ac3e2a4a2ba4 100644 --- a/l10n_br_purchase_stock/tests/test_l10n_br_purchase_stock.py +++ b/l10n_br_purchase_stock/tests/test_l10n_br_purchase_stock.py @@ -183,7 +183,8 @@ def test_purchase_order_lucro_presumido(self): # self.assertEqual(inv_line.price_unit, # inv_line.purchase_line_id.price_unit) # AssertionError: 82.53 != 100.0 - # self.assertEqual(inv_line.price_unit, inv_line.purchase_line_id.price_unit) + # self.assertEqual(inv_line.price_unit, + # inv_line.purchase_line_id.price_unit) # Valida presença dos campos principais para o mapeamento Fiscal self.assertTrue(inv_line.fiscal_operation_id, "Missing Fiscal Operation.") self.assertTrue( diff --git a/l10n_br_repair/README.rst b/l10n_br_repair/README.rst index 8ca371ef9ceb..27ac10217a79 100644 --- a/l10n_br_repair/README.rst +++ b/l10n_br_repair/README.rst @@ -7,7 +7,7 @@ Brazilian Localization Repair !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:45c126de11ae17e8fb7bff7f0ea0e9505844d07d980d1bda22985938670b7e83 + !! source digest: sha256:5f7b9985e3de2ad47dd438407a7881dd896727e32014d030c0eef93043b57d5d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png diff --git a/l10n_br_repair/__manifest__.py b/l10n_br_repair/__manifest__.py index c50f8823332f..d3f4e84843c5 100644 --- a/l10n_br_repair/__manifest__.py +++ b/l10n_br_repair/__manifest__.py @@ -5,7 +5,7 @@ "name": "Brazilian Localization Repair", "summary": """ Brazilian Localization Repair""", - "version": "14.0.1.3.0", + "version": "14.0.1.3.1", "category": "Localisation", "license": "AGPL-3", "author": "Escodoo, " "Odoo Community Association (OCA)", diff --git a/l10n_br_repair/models/repair_order.py b/l10n_br_repair/models/repair_order.py index 845f959f3184..e041fcf89d6f 100644 --- a/l10n_br_repair/models/repair_order.py +++ b/l10n_br_repair/models/repair_order.py @@ -138,11 +138,7 @@ def _compute_get_invoiced(self): "move_id" ).filtered( lambda r: r.move_type in ["out_invoice", "out_refund"] - ) + order.fees_lines.mapped( - "invoice_line_id" - ).mapped( - "move_id" - ).filtered( + ) + order.fees_lines.mapped("invoice_line_id").mapped("move_id").filtered( lambda r: r.move_type in ["out_invoice", "out_refund"] ) # Search for invoices which have been @@ -158,7 +154,7 @@ def _compute_get_invoiced(self): ) invoice_ids |= refunds.filtered( - lambda r: order.name + lambda r, order=order: order.name in [ invoice_origin.strip() for invoice_origin in r.invoice_origin.split(",") diff --git a/l10n_br_repair/static/description/index.html b/l10n_br_repair/static/description/index.html index d15626dfd412..cd43388e03fe 100644 --- a/l10n_br_repair/static/description/index.html +++ b/l10n_br_repair/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localization Repair

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:45c126de11ae17e8fb7bff7f0ea0e9505844d07d980d1bda22985938670b7e83 +!! source digest: sha256:5f7b9985e3de2ad47dd438407a7881dd896727e32014d030c0eef93043b57d5d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Alpha License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module extends the Odoo Repair module to adapt it to the Brazilian needs, with this module you have tax data for collection and generation of fiscal documents (NF-e, NFS-e, CF-e, NFC-e and others), calculation Brazilian taxes and contributions (municipal, state and federal).

diff --git a/l10n_br_resource/README.rst b/l10n_br_resource/README.rst index 48c5ae6f79a7..b7e14b4b927a 100644 --- a/l10n_br_resource/README.rst +++ b/l10n_br_resource/README.rst @@ -7,7 +7,7 @@ L10n Br Resource !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:384452c48b4212b7a7bd8c6e0b1e7e96e12462b7e9c3235b490d16cfc2003f2d + !! source digest: sha256:0555aa8c0799be26a520c5a11708aa7a226d5e26c1b22d941a653c372c079518 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_resource/__manifest__.py b/l10n_br_resource/__manifest__.py index 9440a6d3904c..db16d6b21ab2 100644 --- a/l10n_br_resource/__manifest__.py +++ b/l10n_br_resource/__manifest__.py @@ -7,7 +7,7 @@ This module extend core resource to create important brazilian informations. Define a Brazilian calendar and some tools to compute dates used in financial and payroll modules""", - "version": "14.0.1.0.4", + "version": "14.0.1.0.5", "license": "AGPL-3", "author": "KMEE,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", diff --git a/l10n_br_resource/static/description/index.html b/l10n_br_resource/static/description/index.html index bcbe8e049f72..1a9f3db2be73 100644 --- a/l10n_br_resource/static/description/index.html +++ b/l10n_br_resource/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@

L10n Br Resource

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:384452c48b4212b7a7bd8c6e0b1e7e96e12462b7e9c3235b490d16cfc2003f2d +!! source digest: sha256:0555aa8c0799be26a520c5a11708aa7a226d5e26c1b22d941a653c372c079518 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module extends the core resource module to add data for Brazil. It defines a Brazilian calendar and some tools to compute dates used in financial and payroll modules.

@@ -467,7 +467,9 @@

Other credits

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_resource/wizards/workalendar_holiday_import_wizard.py b/l10n_br_resource/wizards/workalendar_holiday_import_wizard.py index b18ea5f24f2a..e84edf01e894 100644 --- a/l10n_br_resource/wizards/workalendar_holiday_import_wizard.py +++ b/l10n_br_resource/wizards/workalendar_holiday_import_wizard.py @@ -65,7 +65,7 @@ def get_calendar_for_country(self): calendar = self.env["resource.calendar"].create( { "name": "Calendar " + country.name, - "country_id": country.id + "country_id": country.id, # '':u'N', } ) diff --git a/l10n_br_sale/README.rst b/l10n_br_sale/README.rst index 78f8e9d74c64..53752f87dad9 100644 --- a/l10n_br_sale/README.rst +++ b/l10n_br_sale/README.rst @@ -7,7 +7,7 @@ Brazilian Localization Sale !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a0b486e026e22735dec3fddb9d51c434778025d9d37b853cea909af9ee6e7d4e + !! source digest: sha256:8e721528c258477c8a413683f4a77a6c86604645b6225c24925e656f7731b94e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_sale/__manifest__.py b/l10n_br_sale/__manifest__.py index 5ecf3a197660..326db4036d46 100644 --- a/l10n_br_sale/__manifest__.py +++ b/l10n_br_sale/__manifest__.py @@ -7,7 +7,7 @@ "license": "AGPL-3", "author": "Akretion, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.3.14.0", + "version": "14.0.3.14.1", "depends": ["sale_management", "l10n_br_account"], "data": [ # Data diff --git a/l10n_br_sale/models/sale_order.py b/l10n_br_sale/models/sale_order.py index 5fa1b5c89604..d1eab916767f 100644 --- a/l10n_br_sale/models/sale_order.py +++ b/l10n_br_sale/models/sale_order.py @@ -151,7 +151,6 @@ def _onchange_fiscal_operation_id(self): return result def _get_invoiceable_lines(self, final=False): - lines = super()._get_invoiceable_lines(final=final) if not self.fiscal_operation_id: # O caso Brasil se caracteriza por ter a Operação Fiscal diff --git a/l10n_br_sale/static/description/index.html b/l10n_br_sale/static/description/index.html index 13ab40710061..d33acd271da3 100644 --- a/l10n_br_sale/static/description/index.html +++ b/l10n_br_sale/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localization Sale

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:a0b486e026e22735dec3fddb9d51c434778025d9d37b853cea909af9ee6e7d4e +!! source digest: sha256:8e721528c258477c8a413683f4a77a6c86604645b6225c24925e656f7731b94e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Este módulo estende o módulo sale do Odoo para adaptá-lo as necessidades brasileira, com este módulo você tem dados fiscal para faturamento e geração dos documentos fiscais (NF-e, NFS-e, CF-e, NFC-e e etc.), cálculo dos impostos e contribuições brasileiros (municipais, estaduais e federal).

diff --git a/l10n_br_sale/tests/test_l10n_br_sale.py b/l10n_br_sale/tests/test_l10n_br_sale.py index 2644026709e2..38317ccf7579 100644 --- a/l10n_br_sale/tests/test_l10n_br_sale.py +++ b/l10n_br_sale/tests/test_l10n_br_sale.py @@ -290,7 +290,7 @@ def test_l10n_br_sale_products(self): self.assertEqual( line.cfop_id.code, cfop.code, - "Error to mapping CFOP {} for {}.".format(cfop.code, cfop.name), + f"Error to mapping CFOP {cfop.code} for {cfop.name}.", ) if line.company_id.tax_framework in TAX_FRAMEWORK_SIMPLES_ALL: @@ -616,7 +616,9 @@ def test_fields_freight_insurance_other_costs(self): ) def test_compatible_with_international_case(self): - """Test of compatible with international case, create Invoice but not for Brazil.""" + """ + Test of compatible with international case, create Invoice but not for Brazil. + """ so_international = self.env.ref("sale.sale_order_2") self._run_sale_order_onchanges(so_international) for line in so_international.order_line: diff --git a/l10n_br_stock/README.rst b/l10n_br_stock/README.rst index f55007b7454d..6ab07aec6fca 100644 --- a/l10n_br_stock/README.rst +++ b/l10n_br_stock/README.rst @@ -7,7 +7,7 @@ Brazilian Localization Warehouse !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a115deaf0f59000ae9dedb09ef765c3101cd00291348fb545facf3d6286080e5 + !! source digest: sha256:a87a27c21eb6e5a40f201fae65c848d8f2bcfb1b7104ba69748272a5289e91ca !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_stock/__manifest__.py b/l10n_br_stock/__manifest__.py index e92e22e427e2..4e63bda5d621 100644 --- a/l10n_br_stock/__manifest__.py +++ b/l10n_br_stock/__manifest__.py @@ -4,7 +4,7 @@ "license": "AGPL-3", "author": "KMEE, Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.2.1.1", + "version": "14.0.2.1.2", "depends": ["stock", "l10n_br_base"], "data": ["views/stock_picking_view.xml"], "demo": [ diff --git a/l10n_br_stock/hooks.py b/l10n_br_stock/hooks.py index fb5c11bd31d4..418037f9cd02 100644 --- a/l10n_br_stock/hooks.py +++ b/l10n_br_stock/hooks.py @@ -16,64 +16,62 @@ def set_stock_warehouse_external_ids(env, company_external_id): data_list = [ { - "xml_id": "l10n_br_stock.wh_{}".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}", "record": warehouse, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_loc_stock_id".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_loc_stock_id", "record": warehouse.lot_stock_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_view_location".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_view_location", "record": warehouse.view_location_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_input_location".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_input_location", "record": warehouse.wh_input_stock_loc_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_quality_control_location".format( - external_id - ), + "xml_id": f"l10n_br_stock.wh_{external_id}_quality_control_location", "record": warehouse.wh_qc_stock_loc_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_pack_location".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_pack_location", "record": warehouse.wh_pack_stock_loc_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_output_location".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_output_location", "record": warehouse.wh_pack_stock_loc_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_picking_type_in".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_picking_type_in", "record": warehouse.in_type_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_picking_type_internal".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_picking_type_internal", "record": warehouse.int_type_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_pick_type_internal".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_pick_type_internal", "record": warehouse.pick_type_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_pack_type_internal".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_pack_type_internal", "record": warehouse.pack_type_id, "noupdate": True, }, { - "xml_id": "l10n_br_stock.wh_{}_picking_type_out".format(external_id), + "xml_id": f"l10n_br_stock.wh_{external_id}_picking_type_out", "record": warehouse.out_type_id, "noupdate": True, }, diff --git a/l10n_br_stock/static/description/index.html b/l10n_br_stock/static/description/index.html index 94add3ce1229..01bca0b0a714 100644 --- a/l10n_br_stock/static/description/index.html +++ b/l10n_br_stock/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -366,7 +367,7 @@

Brazilian Localization Warehouse

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:a115deaf0f59000ae9dedb09ef765c3101cd00291348fb545facf3d6286080e5 +!! source digest: sha256:a87a27c21eb6e5a40f201fae65c848d8f2bcfb1b7104ba69748272a5289e91ca !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Português @@ -457,7 +458,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_stock_account/README.rst b/l10n_br_stock_account/README.rst index 56f69579d59c..dbcc33103cae 100644 --- a/l10n_br_stock_account/README.rst +++ b/l10n_br_stock_account/README.rst @@ -7,7 +7,7 @@ Brazilian Localization WMS Accounting !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:0ec01fc6404caeaf23650f093d433ff96b17fba4c204ce92c00d49c3d604e3ec + !! source digest: sha256:f7dcfe16dc016d96e2c7ba8ad45178be112ee1b1e1432aab5d1d01924a90d6e4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_stock_account/__manifest__.py b/l10n_br_stock_account/__manifest__.py index 301368012262..317c61c07f8c 100644 --- a/l10n_br_stock_account/__manifest__.py +++ b/l10n_br_stock_account/__manifest__.py @@ -7,7 +7,7 @@ "license": "AGPL-3", "author": "Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.3.9.1", + "version": "14.0.3.9.2", "depends": [ "stock_account", "stock_picking_invoicing", diff --git a/l10n_br_stock_account/models/stock_picking_type.py b/l10n_br_stock_account/models/stock_picking_type.py index c4fe666d10a3..9ffe0f04fb39 100644 --- a/l10n_br_stock_account/models/stock_picking_type.py +++ b/l10n_br_stock_account/models/stock_picking_type.py @@ -22,5 +22,6 @@ class StockPickingType(models.Model): ], default="none", string="Pré generate Fiscal Document Number", - help="Check this box if you want to generate fiscal document for this operation.", + help="Check this box if you want to generate fiscal document for this " + "operation.", ) diff --git a/l10n_br_stock_account/static/description/index.html b/l10n_br_stock_account/static/description/index.html index 5da7991abf88..eb12e2d4d104 100644 --- a/l10n_br_stock_account/static/description/index.html +++ b/l10n_br_stock_account/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localization WMS Accounting

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:0ec01fc6404caeaf23650f093d433ff96b17fba4c204ce92c00d49c3d604e3ec +!! source digest: sha256:f7dcfe16dc016d96e2c7ba8ad45178be112ee1b1e1432aab5d1d01924a90d6e4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module make possible create invoice based in Stock Pickings.

diff --git a/l10n_br_stock_account/tests/test_invoicing_picking.py b/l10n_br_stock_account/tests/test_invoicing_picking.py index 2bdf4fe484b3..1ccc53676d96 100644 --- a/l10n_br_stock_account/tests/test_invoicing_picking.py +++ b/l10n_br_stock_account/tests/test_invoicing_picking.py @@ -141,7 +141,7 @@ def test_picking_invoicing_by_product2(self): self.assertEqual(inv_line.quantity, 4) # Price Unit e Fiscal Price devem ser positivos price_unit_mv_line = picking.move_lines.filtered( - lambda mv: mv.product_id == inv_line.product_id + lambda mv, inv_line=inv_line: mv.product_id == inv_line.product_id ).mapped("price_unit")[0] self.assertEqual( inv_line.price_unit, @@ -157,7 +157,8 @@ def test_picking_invoicing_by_product2(self): # isso não acontece no caso da empresa de Lucro Presumido # ou quando é feito o teste apenas instalando os modulos # l10n_br_account e em seguida o l10n_br_stock_account - # self.assertTrue(inv_line.tax_ids, "Error to map Sale Tax in invoice.line.") + # self.assertTrue(inv_line.tax_ids, + # "Error to map Sale Tax in invoice.line.") # Now test behaviour if the invoice is delete invoice.unlink() @@ -319,7 +320,7 @@ def test_invoicing_picking_lucro_presumido(self): assert line.ind_final, "Error field ind_final in Invoice Line not None" # Verifica se o campo tax_ids da Fatura esta igual ao da Separação mv_line = picking.move_lines.filtered( - lambda ln: ln.product_id == line.product_id + lambda ln, line=line: ln.product_id == line.product_id and ln.fiscal_operation_id == line.fiscal_operation_id ) self.assertEqual( @@ -467,7 +468,9 @@ def test_fields_freight_insurance_other_costs(self): ) def test_compatible_with_international_case(self): - """Test of compatible with international case, create Invoice but not for Brazil.""" + """ + Test of compatible with international case, create Invoice but not for Brazil. + """ picking = self.env.ref("stock_picking_invoicing.stock_picking_invoicing_2") self._run_fiscal_onchanges(picking) # Force product availability diff --git a/l10n_br_stock_account/wizards/stock_invoice_onshipping.py b/l10n_br_stock_account/wizards/stock_invoice_onshipping.py index 769d06002879..c82566949c9e 100644 --- a/l10n_br_stock_account/wizards/stock_invoice_onshipping.py +++ b/l10n_br_stock_account/wizards/stock_invoice_onshipping.py @@ -60,7 +60,8 @@ def _get_journal(self): raise UserError( _( "Invalid Journal! There is not journal defined" - " for this company: %(company)s in fiscal operation: %(operation)s!", + " for this company: %(company)s in fiscal operation:" + " %(operation)s!", company=picking.company_id.name, operation=picking.fiscal_operation_id.name, ) diff --git a/l10n_br_stock_account_report/README.rst b/l10n_br_stock_account_report/README.rst index c0c0183ae6fd..822563b0d2e3 100644 --- a/l10n_br_stock_account_report/README.rst +++ b/l10n_br_stock_account_report/README.rst @@ -7,7 +7,7 @@ P7 Stock Valuation Report !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a91e01e3f7d72efbaf03ae7b4c03d5c5af781b280238174f8c30f5688fc58d0d + !! source digest: sha256:8d69f602dabc8a8a83d3bd972c2685dc33b54b98acb1ee0541a2543c9e3f4bba !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_stock_account_report/__manifest__.py b/l10n_br_stock_account_report/__manifest__.py index c5b66c9e3fec..1c216f16bb7c 100644 --- a/l10n_br_stock_account_report/__manifest__.py +++ b/l10n_br_stock_account_report/__manifest__.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "P7 Stock Valuation Report", - "version": "14.0.1.1.3", + "version": "14.0.1.1.4", "author": "Akretion, Odoo Community Association (OCA)", "category": "Reports/QWeb", "license": "AGPL-3", diff --git a/l10n_br_stock_account_report/static/description/index.html b/l10n_br_stock_account_report/static/description/index.html index 454abd2eff6d..bbdd24f5f38e 100644 --- a/l10n_br_stock_account_report/static/description/index.html +++ b/l10n_br_stock_account_report/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@

P7 Stock Valuation Report

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:a91e01e3f7d72efbaf03ae7b4c03d5c5af781b280238174f8c30f5688fc58d0d +!! source digest: sha256:8d69f602dabc8a8a83d3bd972c2685dc33b54b98acb1ee0541a2543c9e3f4bba !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Português @@ -469,7 +469,9 @@

Other credits

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_stock_account_report/wizards/l10n_br_p7_model_inventory_report_wizard.py b/l10n_br_stock_account_report/wizards/l10n_br_p7_model_inventory_report_wizard.py index 5c413c0c4c0d..4e8164781d78 100644 --- a/l10n_br_stock_account_report/wizards/l10n_br_p7_model_inventory_report_wizard.py +++ b/l10n_br_stock_account_report/wizards/l10n_br_p7_model_inventory_report_wizard.py @@ -228,7 +228,7 @@ def lines(self): tmp_total_value_ncm = round(product_inventory_value, account_precision) # A validação abaixo é necessária p/ # não preencher a primeira linha - if type(tmp_ncm_controler) is not bool: + if not isinstance(tmp_ncm_controler, bool): tmp_ncm_controler_line = True result_lines.append( diff --git a/l10n_br_website_sale/README.rst b/l10n_br_website_sale/README.rst index e68deae60a17..acc4be413922 100644 --- a/l10n_br_website_sale/README.rst +++ b/l10n_br_website_sale/README.rst @@ -7,7 +7,7 @@ L10n Br Website Sale !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:d93271f43b8ff637a9d99e8d7a8f008bae907b2f2281d68d424df86a91f878d3 + !! source digest: sha256:af979eef794fee91a64d2573876918fe2ded04118ffdf1768149734bb615f2a2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_br_website_sale/__manifest__.py b/l10n_br_website_sale/__manifest__.py index 4968ae0b7624..a17660d347af 100644 --- a/l10n_br_website_sale/__manifest__.py +++ b/l10n_br_website_sale/__manifest__.py @@ -5,7 +5,7 @@ "name": "L10n Br Website Sale", "summary": """ Website sale localização brasileira.""", - "version": "14.0.2.0.1", + "version": "14.0.2.0.2", "development_status": "Beta", "license": "AGPL-3", "author": "KMEE, Odoo Community Association (OCA)", diff --git a/l10n_br_website_sale/controllers/main.py b/l10n_br_website_sale/controllers/main.py index 84242bdd0b18..384b0c7d1e39 100644 --- a/l10n_br_website_sale/controllers/main.py +++ b/l10n_br_website_sale/controllers/main.py @@ -100,7 +100,7 @@ def address(self, **kw): and res.qcontext["checkout"]["city_id"] ): state_id = res.qcontext["checkout"]["state_id"] - if type(state_id) is not str: + if not isinstance(state_id, str): state_id = state_id.id elif state_id: state_id = int(state_id) @@ -135,7 +135,8 @@ def values_postprocess(self, order, mode, values, errors, error_msg): "vat", ] - # Update new_values for each expected field if it exists in values and not in errors + # Update new_values for each expected field if it exists in values and not in + # errors for field in expected_fields: if field in values and field not in errors: new_values[field] = values[field] diff --git a/l10n_br_website_sale/static/description/index.html b/l10n_br_website_sale/static/description/index.html index 62823015f125..9b71a549f83d 100644 --- a/l10n_br_website_sale/static/description/index.html +++ b/l10n_br_website_sale/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -366,7 +367,7 @@

L10n Br Website Sale

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:d93271f43b8ff637a9d99e8d7a8f008bae907b2f2281d68d424df86a91f878d3 +!! source digest: sha256:af979eef794fee91a64d2573876918fe2ded04118ffdf1768149734bb615f2a2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

This module adds brazilian fields and field validations to website sale.

@@ -428,7 +429,9 @@

Other credits

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/l10n_br_zip/README.rst b/l10n_br_zip/README.rst index ed71c0109aa7..d215b49f963a 100644 --- a/l10n_br_zip/README.rst +++ b/l10n_br_zip/README.rst @@ -7,7 +7,7 @@ Brazilian Localisation ZIP Codes !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:9463751105ce41b7065a6c093b1f3308e32764f9c2883506e6c5798d22708b79 + !! source digest: sha256:d6e6fd3840535ca2fd090fe08f95d9df27c578b1a3822fb37454a54195fffabf !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/l10n_br_zip/__manifest__.py b/l10n_br_zip/__manifest__.py index 100a247d30db..1839ecc89592 100644 --- a/l10n_br_zip/__manifest__.py +++ b/l10n_br_zip/__manifest__.py @@ -9,7 +9,7 @@ "author": "Akretion, " "Odoo Community Association (OCA)", "maintainers": ["renatonlima"], "website": "https://github.com/OCA/l10n-brazil", - "version": "14.0.2.3.0", + "version": "14.0.2.3.1", "depends": ["l10n_br_base"], "data": [ "views/l10n_br_zip_view.xml", diff --git a/l10n_br_zip/models/l10n_br_zip.py b/l10n_br_zip/models/l10n_br_zip.py index 8dc5d45ddcd9..dd2d18291bf5 100644 --- a/l10n_br_zip/models/l10n_br_zip.py +++ b/l10n_br_zip/models/l10n_br_zip.py @@ -60,7 +60,8 @@ def _set_domain( if not state_id or not city_id or len(street_name or "") == 0: raise UserError( _( - "It is necessary to inform the State, municipality and public place" + "It is necessary to inform the State, municipality and public " + "place" ) ) diff --git a/l10n_br_zip/static/description/index.html b/l10n_br_zip/static/description/index.html index 461d39e60311..f184254f6027 100644 --- a/l10n_br_zip/static/description/index.html +++ b/l10n_br_zip/static/description/index.html @@ -367,7 +367,7 @@

Brazilian Localisation ZIP Codes

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:9463751105ce41b7065a6c093b1f3308e32764f9c2883506e6c5798d22708b79 +!! source digest: sha256:d6e6fd3840535ca2fd090fe08f95d9df27c578b1a3822fb37454a54195fffabf !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Mature License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Permite consultar o endereço através do CEP e preencher o campos do endereço com as informações consultadas, esse módulo também permite utilizar os seguintes serviços para consulta de CEP:

diff --git a/payment_pagseguro/README.rst b/payment_pagseguro/README.rst index 4d554295eaa4..854eed6cd331 100644 --- a/payment_pagseguro/README.rst +++ b/payment_pagseguro/README.rst @@ -7,7 +7,7 @@ Payment PagSeguro !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:3f71b49335aff01e75dea252f82eb8b7988be328e7cb928ad756fddd19c6dc7c + !! source digest: sha256:3e3060c14c5929a6519b1da5f19aefa02b0fe43a0dc15e1022528e37a553ec56 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/payment_pagseguro/__manifest__.py b/payment_pagseguro/__manifest__.py index f69db475a5ef..d60af18eb9cc 100644 --- a/payment_pagseguro/__manifest__.py +++ b/payment_pagseguro/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Payment PagSeguro", "summary": """Payment Acquirer: PagSeguro Implementation""", - "version": "14.0.1.0.9", + "version": "14.0.1.0.10", "license": "AGPL-3", "author": "KMEE, Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-brazil", diff --git a/payment_pagseguro/models/payment_transaction.py b/payment_pagseguro/models/payment_transaction.py index 06b89fa0ba32..74fd90533d8c 100644 --- a/payment_pagseguro/models/payment_transaction.py +++ b/payment_pagseguro/models/payment_transaction.py @@ -92,7 +92,7 @@ def pagseguro_s2s_capture_transaction(self): ) if ( - type(res) is dict + isinstance(res, dict) and res.get("payment_response") and res.get("payment_response").get("message") == "SUCESSO" ): @@ -136,7 +136,7 @@ def pagseguro_s2s_void_transaction(self): ) if ( - type(res) is dict + isinstance(res, dict) and res.get("payment_response") and res.get("payment_response").get("message") == "SUCESSO" ): diff --git a/payment_pagseguro/static/description/index.html b/payment_pagseguro/static/description/index.html index 437434cfb2d4..8df295ee2336 100644 --- a/payment_pagseguro/static/description/index.html +++ b/payment_pagseguro/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@

Payment PagSeguro

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:3f71b49335aff01e75dea252f82eb8b7988be328e7cb928ad756fddd19c6dc7c +!! source digest: sha256:3e3060c14c5929a6519b1da5f19aefa02b0fe43a0dc15e1022528e37a553ec56 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat

Payment Acquirer: PagSeguro Implementation

@@ -473,7 +473,9 @@

Other credits

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

diff --git a/spec_driven_model/README.rst b/spec_driven_model/README.rst index d375bb85c7ce..cb9902ac7b2f 100644 --- a/spec_driven_model/README.rst +++ b/spec_driven_model/README.rst @@ -7,7 +7,7 @@ Spec Driven Model !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:e9d013378e770321682f69cd0660a90c5b6a148b8b1260bfa05ed7e1d2e203f3 + !! source digest: sha256:98550c773b50f06c9ed088ac83d08bab2fb7ba40c0363fea11a1365c475d001f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/spec_driven_model/__manifest__.py b/spec_driven_model/__manifest__.py index 062eeb877f02..d4b7e5ab8655 100644 --- a/spec_driven_model/__manifest__.py +++ b/spec_driven_model/__manifest__.py @@ -5,7 +5,7 @@ "name": "Spec Driven Model", "summary": """ Tools for specifications driven mixins (from xsd for instance)""", - "version": "14.0.5.5.0", + "version": "14.0.5.5.1", "maintainers": ["rvalyi"], "license": "LGPL-3", "author": "Akretion,Odoo Community Association (OCA)", diff --git a/spec_driven_model/models/spec_export.py b/spec_driven_model/models/spec_export.py index 52911fd4ad91..cf0072e4d4eb 100644 --- a/spec_driven_model/models/spec_export.py +++ b/spec_driven_model/models/spec_export.py @@ -33,7 +33,7 @@ def _get_spec_classes(self, classes=False): for c in set(classes): if c is None: continue - if not c.startswith("%s." % (self._schema_name,)): + if not c.startswith(f"{self._schema_name}."): continue # the following filter to fields to show # when several XSD class are injected in the same object @@ -150,7 +150,7 @@ def _export_field(self, xsd_field, class_obj, field_spec, export_value=None): return self._export_float_monetary( xsd_field, xsd_type, class_obj, xsd_required, export_value ) - elif type(self[xsd_field]) is str: + elif isinstance(self[xsd_field], str): return self[xsd_field].strip() else: return self[xsd_field] @@ -188,7 +188,7 @@ def _export_float_monetary( tdec = "".join(filter(lambda x: x.isdigit(), xsd_type))[-2:] else: tdec = "" - my_format = "%.{}f".format(tdec) + my_format = f"%.{tdec}f" return str(my_format % field_data) def _export_date(self, field_name): diff --git a/spec_driven_model/models/spec_import.py b/spec_driven_model/models/spec_import.py index e8d4999ba307..fdd7a814e62a 100644 --- a/spec_driven_model/models/spec_import.py +++ b/spec_driven_model/models/spec_import.py @@ -69,11 +69,11 @@ def _build_attr(self, node, fields, vals, path, attr): value = getattr(node, attr[0]) if value is None or value == []: return False - key = "%s%s" % ( + key = "{}{}".format( self._field_prefix, attr[1].metadata.get("name", attr[0]), ) - child_path = "%s.%s" % (path, key) + child_path = f"{path}.{key}" # Is attr a xsd SimpleType or a ComplexType? # with xsdata a ComplexType can have a type like: @@ -115,7 +115,7 @@ def _build_attr(self, node, fields, vals, path, attr): comodel_name = fields[key].comodel_name else: clean_type = binding_type.lower() - comodel_name = "%s.%s.%s" % ( + comodel_name = "{}.{}.{}".format( self._schema_name, self._schema_version.replace(".", "")[0:2], clean_type.split(".")[-1], @@ -193,7 +193,7 @@ def _prepare_import_dict( fields = model._fields for k, v in fields.items(): # select schema choices for a friendly UI: - if k.startswith("%schoice" % (self._field_prefix,)): + if k.startswith(f"{self._field_prefix}choice"): for item in v.selection or []: if vals.get(item[0]) not in [None, []]: vals[k] = item[0] @@ -270,8 +270,8 @@ def match_record(self, rec_dict, parent_dict, model=None): if match_ids: if len(match_ids) > 1: _logger.warning( - "!! WARNING more than 1 record found!! model: %s, domain: %s" - % (model, domain) + f"!! WARNING more than 1 record found!! model: {model}," + f" domain:{domain}" ) return match_ids[0].id return False diff --git a/spec_driven_model/models/spec_mixin.py b/spec_driven_model/models/spec_mixin.py index cb024fbc989f..59334b285c00 100644 --- a/spec_driven_model/models/spec_mixin.py +++ b/spec_driven_model/models/spec_mixin.py @@ -141,10 +141,7 @@ def _auto_fill_access_data(cls, env, module_name: str, access_data: list): """ underline_name = cls._name.replace(".", "_") - model_id = "%s_spec.model_%s" % ( - module_name, - underline_name, - ) + model_id = f"{module_name}_spec.model_{underline_name}" user_access_name = f"access_{underline_name}_user" if not env["ir.model.access"].search( [ @@ -157,7 +154,7 @@ def _auto_fill_access_data(cls, env, module_name: str, access_data: list): user_access_name, user_access_name, model_id, - "%s.group_user" % (module_name,), + f"{module_name}.group_user", "1", "0", "0", @@ -176,7 +173,7 @@ def _auto_fill_access_data(cls, env, module_name: str, access_data: list): manager_access_name, manager_access_name, model_id, - "%s.group_manager" % (module_name,), + f"{module_name}.group_manager", "1", "1", "1", diff --git a/spec_driven_model/models/spec_models.py b/spec_driven_model/models/spec_models.py index 7a870660ac3c..faba19d72722 100644 --- a/spec_driven_model/models/spec_models.py +++ b/spec_driven_model/models/spec_models.py @@ -180,7 +180,7 @@ def _setup_fields(self): def _map_concrete(cls, dbname, key, target, quiet=False): # TODO bookkeep according to a key to allow multiple injection contexts if not quiet: - _logger.debug("%s ---> %s" % (key, target)) + _logger.debug(f"{key} ---> {target}") global SPEC_MIXIN_MAPPINGS SPEC_MIXIN_MAPPINGS[dbname][key] = target @@ -190,7 +190,8 @@ def spec_module_classes(cls, spec_module): Cache the list of spec_module classes to save calls to slow reflection API. """ - spec_module_attr = "_spec_cache_%s" % (spec_module.replace(".", "_"),) + + spec_module_attr = f"_spec_cache_{spec_module.replace('.', '_')}" if not hasattr(cls, spec_module_attr): setattr( cls, spec_module_attr, getmembers(sys.modules[spec_module], isclass) @@ -241,7 +242,7 @@ class StackedModel(SpecModel): def _build_model(cls, pool, cr): # inject all stacked m2o as inherited classes if cls._stacked: - _logger.info("building StackedModel %s %s" % (cls._name, cls)) + _logger.info(f"building StackedModel {cls._name} {cls}") node = cls._odoo_name_to_class(cls._stacked, cls._spec_module) env = api.Environment(cr, SUPERUSER_ID, {}) for kind, klass, _path, _field_path, _child_concrete in cls._visit_stack( @@ -320,7 +321,7 @@ def _visit_stack(cls, env, node, path=None): ): # then we will STACK the child in the current class child._stack_path = path - child_path = "%s.%s" % (path, field_path) + child_path = f"{path}.{field_path}" cls._stacking_points[name] = env[node._name]._fields.get(name) yield from cls._visit_stack(env, child, child_path) else: diff --git a/spec_driven_model/models/spec_view.py b/spec_driven_model/models/spec_view.py index a3cad41e326d..41714292c4cf 100644 --- a/spec_driven_model/models/spec_view.py +++ b/spec_driven_model/models/spec_view.py @@ -79,7 +79,7 @@ def fields_view_get( if field["type"] in ["one2many", "many2one"]: field["views"] = {} # no inline views res["fields"][field_name] = field - field_nodes = doc.xpath("//field[@name='%s']" % (field_name,)) + field_nodes = doc.xpath(f"//field[@name='{field_name}']") for field_node in field_nodes: setup_modifiers(field_node, field) @@ -114,7 +114,7 @@ def _build_spec_fragment(self, container=None): classes = [x._name for x in type(lib_model).mro() if hasattr(x, "_name")] # _logger.info("#####", lib_model, classes) for c in set(classes): - if c is None or not c.startswith("%s." % (self._schema_name,)): + if c is None or not c.startswith(f"{self._schema_name}."): continue # the following filter to fields to show # when several XSD class are injected in the same object @@ -148,7 +148,7 @@ def build_arch(self, lib_node, view_node, fields, depth=0): # skip automatic m2 fields, non xsd fields # and display choice selector only where it is used # (possibly later) - choice_prefix = "%schoice" % (self._field_prefix,) + choice_prefix = f"{self._field_prefix}choice" if ( "_id" in field_name or self._field_prefix not in field_name @@ -164,10 +164,7 @@ def build_arch(self, lib_node, view_node, fields, depth=0): # should we create a choice block? if hasattr(field, "choice"): choice = field.choice - selector_name = "%s%s" % ( - choice_prefix, - choice, - ) + selector_name = f"{choice_prefix}{choice}" if choice not in choices: choices.add(choice) fields.append(selector_name) @@ -190,7 +187,7 @@ def build_arch(self, lib_node, view_node, fields, depth=0): else: # assume dynamically required via attrs pass if selector_name is not None: - invisible = [("%s" % (selector_name,), "!=", field_name)] + invisible = [(f"{selector_name}", "!=", field_name)] attrs = {"invisible": invisible} else: attrs = False @@ -233,7 +230,7 @@ def _build_form_simple_type( # TODO if inside optionaly visible group, required should optional too required = False if required and attrs: - dyn_required = "[('%s','=','%s')]" % (selector_name, field_name) + dyn_required = f"[('{selector_name}','=','{field_name}')]" attrs["required"] = dyn_required # TODO the _stack_path assignation doesn't work @@ -244,12 +241,12 @@ def _build_form_simple_type( if hasattr(field, "original_comodel_name"): spec_class = field.original_comodel_name field_tag = E.field( - name=field_name, context="{'spec_class': '%s'})" % (spec_class,) + name=field_name, context=f"{{'spec_class': {spec_class}}})" ) else: field_tag = E.field(name=field_name) if attrs: - field_tag.set("attrs", "%s" % (attrs,)) + field_tag.set("attrs", f"{attrs}") elif required: field_tag.set("required", "True") @@ -292,7 +289,7 @@ def _build_form_complex_type( if depth == 0: view_child = E.group(string=child_string) if attrs: - view_child.set("attrs", "%s" % (attrs,)) + view_child.set("attrs", f"{attrs}") setup_modifiers(view_child) view_node.append(view_child) self.build_arch(lib_child, view_child, fields, depth + 1) @@ -300,7 +297,7 @@ def _build_form_complex_type( page = E.page(string=child_string) invisible = False if attrs: - page.set("attrs", "%s" % (attrs,)) + page.set("attrs", f"{attrs}") setup_modifiers(page) if not inside_notebook: # first page @@ -313,7 +310,7 @@ def _build_form_complex_type( # in case the notebook has only one page, # the visibility should be carried by the # notebook itself - wrapper_notebook.set("attrs", "{'invisible':%s}" % (invisible,)) + wrapper_notebook.set("attrs", f"{{'invisible':{invisible}}}") setup_modifiers(wrapper_notebook) else: # cancel notebook dynamic visbility diff --git a/spec_driven_model/static/description/index.html b/spec_driven_model/static/description/index.html index 82e498add50c..6b7491c2a438 100644 --- a/spec_driven_model/static/description/index.html +++ b/spec_driven_model/static/description/index.html @@ -367,7 +367,7 @@

Spec Driven Model

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:e9d013378e770321682f69cd0660a90c5b6a148b8b1260bfa05ed7e1d2e203f3 +!! source digest: sha256:98550c773b50f06c9ed088ac83d08bab2fb7ba40c0363fea11a1365c475d001f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: LGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runboat