diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 82e4467..2ba70a5 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish Package on: push: branches: - - "8.0" + - "7.0" workflow_dispatch: permissions: @@ -19,7 +19,7 @@ jobs: with: token: ${{ secrets.GITEA_TOKEN }} github-server-url: "http://unpaismejor-gitea-app:3000" - ref: "8.0" + ref: ${{ github.ref_name }} fetch-depth: 0 - name: Detect package branch diff --git a/__init__.py b/__init__.py index d85bb5e..a8f13b4 100644 --- a/__init__.py +++ b/__init__.py @@ -1,3 +1,15 @@ +from trytond.pool import Pool + from . import invoice __all__ = ['invoice'] + + +def register(): + Pool.register( + invoice.Invoice, + invoice.CreditInvoiceStart, + module='account_credit_note', type_='model') + Pool.register( + invoice.CreditInvoice, + module='account_credit_note', type_='wizard') diff --git a/pyproject.toml b/pyproject.toml index fa1f9cd..39ebaa9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = 'hatchling.build' [project] name = 'unpaismejor_account_credit_note' dynamic = ['version', 'dependencies', 'optional-dependencies', 'authors', 'readme'] -requires-python = '>=3.10' +requires-python = '>=3.8' maintainers = [ {name = "Fundación Un País Mejor"}, ] diff --git a/tox.ini b/tox.ini index 86fc339..9b5b6d1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = {py37,py38,py39,py310}-{sqlite,postgresql} +envlist = {py38,py39,py310,py311}-{sqlite,postgresql} [testenv] extras = test diff --git a/tryton.cfg b/tryton.cfg index 9fa0651..3a67fab 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=8.0.1 +version=7.0.0 depends: account_invoice xml: