diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7b2441ca9a9..022039ad430c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,8 +36,10 @@ jobs: matrix: include: - container: ghcr.io/oca/oca-ci/py3.8-odoo14.0:latest + exclude: "l10n_br_account_nfe,l10n_br_delivery_nfe,l10n_br_nfe,l10n_br_nfse,l10n_br_nfse_barueri,l10n_br_nfse_focus,l10n_br_nfse_ginfes,l10n_br_nfse_paulistana,l10n_br_pos_nfce" name: test with Odoo - container: ghcr.io/oca/oca-ci/py3.8-ocb14.0:latest + exclude: "l10n_br_account_nfe,l10n_br_delivery_nfe,l10n_br_nfe,l10n_br_nfse,l10n_br_nfse_barueri,l10n_br_nfse_focus,l10n_br_nfse_ginfes,l10n_br_nfse_paulistana,l10n_br_pos_nfce" name: test with OCB makepot: "true" services: @@ -49,6 +51,9 @@ jobs: POSTGRES_DB: odoo ports: - 5432:5432 + env: + INCLUDE: "${{ matrix.include }}" + EXCLUDE: "${{ matrix.exclude }}" steps: - uses: actions/checkout@v3 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1f104d65ef1f..7d76da6d3d96 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,15 @@ exclude: | (?x) # NOT INSTALLABLE ADDONS + ^l10n_br_account_nfe/| + ^l10n_br_delivery_nfe/| + ^l10n_br_nfe/| + ^l10n_br_nfse/| + ^l10n_br_nfse_barueri/| + ^l10n_br_nfse_focus/| + ^l10n_br_nfse_ginfes/| + ^l10n_br_nfse_paulistana/| + ^l10n_br_pos_nfce/| # END NOT INSTALLABLE ADDONS ^l10n_br_nfe_spec/models/v4_0/| # (don't reformat generated code) ^l10n_br_cte_spec/models/v4_0/| # (don't reformat generated code) diff --git a/l10n_br_account_nfe/__manifest__.py b/l10n_br_account_nfe/__manifest__.py index 297f60840c76..04350b4efae1 100644 --- a/l10n_br_account_nfe/__manifest__.py +++ b/l10n_br_account_nfe/__manifest__.py @@ -24,6 +24,6 @@ "views/account_payment_mode.xml", ], "post_init_hook": "post_init_hook", - "installable": True, + "installable": False, "auto_install": True, } diff --git a/l10n_br_delivery_nfe/__manifest__.py b/l10n_br_delivery_nfe/__manifest__.py index 35286730b2e3..2c87a2ef5d6e 100644 --- a/l10n_br_delivery_nfe/__manifest__.py +++ b/l10n_br_delivery_nfe/__manifest__.py @@ -15,6 +15,6 @@ # Views "views/nfe_document_view.xml" ], - "installable": True, + "installable": False, "auto_install": True, } diff --git a/l10n_br_nfe/__manifest__.py b/l10n_br_nfe/__manifest__.py index 4cbc4037a85d..32623d0bfd30 100644 --- a/l10n_br_nfe/__manifest__.py +++ b/l10n_br_nfe/__manifest__.py @@ -48,7 +48,7 @@ "demo/company_demo.xml", ], "post_init_hook": "post_init_hook", - "installable": True, + "installable": False, "auto_install": False, "external_dependencies": { "python": [ diff --git a/l10n_br_nfse/__manifest__.py b/l10n_br_nfse/__manifest__.py index d18049303932..52e45d216aaf 100644 --- a/l10n_br_nfse/__manifest__.py +++ b/l10n_br_nfse/__manifest__.py @@ -34,4 +34,5 @@ "demo/product_demo.xml", "demo/fiscal_document_demo.xml", ], + "installable": False, } diff --git a/l10n_br_nfse_barueri/__manifest__.py b/l10n_br_nfse_barueri/__manifest__.py index 33afcf9929f0..f40b4a00bfa5 100644 --- a/l10n_br_nfse_barueri/__manifest__.py +++ b/l10n_br_nfse_barueri/__manifest__.py @@ -23,4 +23,5 @@ "depends": [ "l10n_br_nfse", ], + "installable": False, } diff --git a/l10n_br_nfse_focus/__manifest__.py b/l10n_br_nfse_focus/__manifest__.py index d038b16d16fd..a5ed7daa5a2f 100644 --- a/l10n_br_nfse_focus/__manifest__.py +++ b/l10n_br_nfse_focus/__manifest__.py @@ -23,4 +23,5 @@ "views/res_company.xml", "data/l10n_br_nfse_focus_cron.xml", ], + "installable": False, } diff --git a/l10n_br_nfse_ginfes/__manifest__.py b/l10n_br_nfse_ginfes/__manifest__.py index 7336259f1b6d..49e20985888b 100644 --- a/l10n_br_nfse_ginfes/__manifest__.py +++ b/l10n_br_nfse_ginfes/__manifest__.py @@ -23,4 +23,5 @@ "depends": [ "l10n_br_nfse", ], + "installable": False, } diff --git a/l10n_br_nfse_paulistana/__manifest__.py b/l10n_br_nfse_paulistana/__manifest__.py index e282f1ba8542..38de803771d1 100644 --- a/l10n_br_nfse_paulistana/__manifest__.py +++ b/l10n_br_nfse_paulistana/__manifest__.py @@ -24,4 +24,5 @@ "depends": [ "l10n_br_nfse", ], + "installable": False, } diff --git a/l10n_br_pos_nfce/__manifest__.py b/l10n_br_pos_nfce/__manifest__.py index ebdb30896789..d6fec33ee95c 100644 --- a/l10n_br_pos_nfce/__manifest__.py +++ b/l10n_br_pos_nfce/__manifest__.py @@ -34,5 +34,5 @@ "static/src/xml/Screens/ReceiptScreen/NfceItemReceipt.xml", "static/src/xml/Screens/ReceiptScreen/ReceiptScreen.xml", ], - "installable": True, + "installable": False, } diff --git a/requirements.txt b/requirements.txt index f178e0f9c6a7..510aff04f57e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,13 +3,9 @@ brazilcep email-validator erpbrasil.assinatura>=1.7.0 erpbrasil.base>=2.3.0 -erpbrasil.edoc.pdf erpbrasil.edoc>=2.5.2 erpbrasil.transmissao>=1.1.0 nfelib>=2.0.0 -nfselib.barueri -nfselib.ginfes -nfselib.paulistana num2words phonenumbers pyyaml diff --git a/setup/l10n_br_account_nfe/odoo/addons/l10n_br_account_nfe b/setup/l10n_br_account_nfe/odoo/addons/l10n_br_account_nfe deleted file mode 120000 index 2b6759847200..000000000000 --- a/setup/l10n_br_account_nfe/odoo/addons/l10n_br_account_nfe +++ /dev/null @@ -1 +0,0 @@ -../../../../l10n_br_account_nfe \ No newline at end of file diff --git a/setup/l10n_br_account_nfe/setup.py b/setup/l10n_br_account_nfe/setup.py deleted file mode 100644 index 28c57bb64031..000000000000 --- a/setup/l10n_br_account_nfe/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/setup/l10n_br_delivery_nfe/odoo/addons/l10n_br_delivery_nfe b/setup/l10n_br_delivery_nfe/odoo/addons/l10n_br_delivery_nfe deleted file mode 120000 index 376eb33384da..000000000000 --- a/setup/l10n_br_delivery_nfe/odoo/addons/l10n_br_delivery_nfe +++ /dev/null @@ -1 +0,0 @@ -../../../../l10n_br_delivery_nfe \ No newline at end of file diff --git a/setup/l10n_br_delivery_nfe/setup.py b/setup/l10n_br_delivery_nfe/setup.py deleted file mode 100644 index 28c57bb64031..000000000000 --- a/setup/l10n_br_delivery_nfe/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/setup/l10n_br_nfe/odoo/addons/l10n_br_nfe b/setup/l10n_br_nfe/odoo/addons/l10n_br_nfe deleted file mode 120000 index b8dff8e49788..000000000000 --- a/setup/l10n_br_nfe/odoo/addons/l10n_br_nfe +++ /dev/null @@ -1 +0,0 @@ -../../../../l10n_br_nfe \ No newline at end of file diff --git a/setup/l10n_br_nfe/setup.py b/setup/l10n_br_nfe/setup.py deleted file mode 100644 index 28c57bb64031..000000000000 --- a/setup/l10n_br_nfe/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/setup/l10n_br_nfse/odoo/addons/l10n_br_nfse b/setup/l10n_br_nfse/odoo/addons/l10n_br_nfse deleted file mode 120000 index b8f66ff687e5..000000000000 --- a/setup/l10n_br_nfse/odoo/addons/l10n_br_nfse +++ /dev/null @@ -1 +0,0 @@ -../../../../l10n_br_nfse \ No newline at end of file diff --git a/setup/l10n_br_nfse/setup.py b/setup/l10n_br_nfse/setup.py deleted file mode 100644 index 28c57bb64031..000000000000 --- a/setup/l10n_br_nfse/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/setup/l10n_br_nfse_barueri/odoo/addons/l10n_br_nfse_barueri b/setup/l10n_br_nfse_barueri/odoo/addons/l10n_br_nfse_barueri deleted file mode 120000 index 86962aadc565..000000000000 --- a/setup/l10n_br_nfse_barueri/odoo/addons/l10n_br_nfse_barueri +++ /dev/null @@ -1 +0,0 @@ -../../../../l10n_br_nfse_barueri \ No newline at end of file diff --git a/setup/l10n_br_nfse_barueri/setup.py b/setup/l10n_br_nfse_barueri/setup.py deleted file mode 100644 index 28c57bb64031..000000000000 --- a/setup/l10n_br_nfse_barueri/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/setup/l10n_br_nfse_focus/odoo/addons/l10n_br_nfse_focus b/setup/l10n_br_nfse_focus/odoo/addons/l10n_br_nfse_focus deleted file mode 120000 index 0376a709f02c..000000000000 --- a/setup/l10n_br_nfse_focus/odoo/addons/l10n_br_nfse_focus +++ /dev/null @@ -1 +0,0 @@ -../../../../l10n_br_nfse_focus \ No newline at end of file diff --git a/setup/l10n_br_nfse_focus/setup.py b/setup/l10n_br_nfse_focus/setup.py deleted file mode 100644 index 28c57bb64031..000000000000 --- a/setup/l10n_br_nfse_focus/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/setup/l10n_br_nfse_ginfes/odoo/addons/l10n_br_nfse_ginfes b/setup/l10n_br_nfse_ginfes/odoo/addons/l10n_br_nfse_ginfes deleted file mode 120000 index f44df05d62df..000000000000 --- a/setup/l10n_br_nfse_ginfes/odoo/addons/l10n_br_nfse_ginfes +++ /dev/null @@ -1 +0,0 @@ -../../../../l10n_br_nfse_ginfes \ No newline at end of file diff --git a/setup/l10n_br_nfse_ginfes/setup.py b/setup/l10n_br_nfse_ginfes/setup.py deleted file mode 100644 index 28c57bb64031..000000000000 --- a/setup/l10n_br_nfse_ginfes/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/setup/l10n_br_nfse_paulistana/odoo/addons/l10n_br_nfse_paulistana b/setup/l10n_br_nfse_paulistana/odoo/addons/l10n_br_nfse_paulistana deleted file mode 120000 index 7f52f3facca5..000000000000 --- a/setup/l10n_br_nfse_paulistana/odoo/addons/l10n_br_nfse_paulistana +++ /dev/null @@ -1 +0,0 @@ -../../../../l10n_br_nfse_paulistana \ No newline at end of file diff --git a/setup/l10n_br_nfse_paulistana/setup.py b/setup/l10n_br_nfse_paulistana/setup.py deleted file mode 100644 index 28c57bb64031..000000000000 --- a/setup/l10n_br_nfse_paulistana/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/setup/l10n_br_pos_nfce/odoo/addons/l10n_br_pos_nfce b/setup/l10n_br_pos_nfce/odoo/addons/l10n_br_pos_nfce deleted file mode 120000 index 0006b87c84f3..000000000000 --- a/setup/l10n_br_pos_nfce/odoo/addons/l10n_br_pos_nfce +++ /dev/null @@ -1 +0,0 @@ -../../../../l10n_br_pos_nfce \ No newline at end of file diff --git a/setup/l10n_br_pos_nfce/setup.py b/setup/l10n_br_pos_nfce/setup.py deleted file mode 100644 index 28c57bb64031..000000000000 --- a/setup/l10n_br_pos_nfce/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -)