diff --git a/.copier-answers.yml b/.copier-answers.yml index 7703c470702..e5e22f33b1c 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,8 +1,7 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.29 +_commit: v1.49 _src_path: git+https://github.com/OCA/oca-addons-repo-template additional_ruff_rules: [] -ci: GitHub convert_readme_fragments_to_markdown: true enable_checklog_odoo: true generate_requirements_txt: true @@ -17,6 +16,7 @@ odoo_test_flavor: Both odoo_version: 18.0 org_name: Odoo Community Association (OCA) org_slug: OCA +postgres_image: '' rebel_module_groups: [] repo_description: server-tools repo_name: server-tools diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..e0d56685a95 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +test-requirements.txt merge=union diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 5eb021ef153..41bc170dd68 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,3 +1,4 @@ + name: pre-commit on: @@ -9,17 +10,28 @@ on: - "18.0" - "18.0-ocabot-*" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + jobs: pre-commit: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: - python-version: "3.11" + python-version: "3.12" + cache: 'pip' + cache-dependency-path: '.pre-commit-config.yaml' - name: Get python version run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - - uses: actions/cache@v4 + - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index fa17fcd4e85..3b2e536808d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -4,12 +4,17 @@ on: schedule: - cron: "0 12 * * 0" +permissions: + contents: read + issues: write + pull-requests: write + jobs: stale: runs-on: ubuntu-latest steps: - name: Stale PRs and issues policy - uses: actions/stale@v9 + uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} # General settings. @@ -48,7 +53,7 @@ jobs: # * Issues that are pending more information # * Except Issues marked as "no stale" - name: Needs more information stale issues policy - uses: actions/stale@v9 + uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} ascending: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0139a2bdc6a..238e00d016f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,12 +9,21 @@ on: - "18.0" - "18.0-ocabot-*" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + jobs: unreleased-deps: runs-on: ubuntu-latest name: Detect unreleased dependencies steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: | for reqfile in requirements.txt test-requirements.txt ; do if [ -f ${reqfile} ] ; then @@ -29,7 +38,7 @@ jobs: done test: runs-on: ubuntu-22.04 - container: ${{ matrix.container }} + container: ${{ matrix.container }} # zizmor: ignore[unpinned-images] name: ${{ matrix.name }} strategy: fail-fast: false @@ -50,9 +59,9 @@ jobs: ports: - 5432:5432 env: - OCA_ENABLE_CHECKLOG_ODOO: "1" + "OCA_ENABLE_CHECKLOG_ODOO": "1" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Install addons and dependencies @@ -65,9 +74,19 @@ jobs: run: oca_init_test_database - name: Run tests run: oca_run_tests - - uses: codecov/codecov-action@v4 + - name: Upload screenshots from JS tests + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + if: ${{ failure() }} + with: + name: Screenshots of failed JS tests - ${{ matrix.name }}${{ join(matrix.include) }} + path: /tmp/odoo_tests/${{ env.PGDATABASE }} + if-no-files-found: ignore + - uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 with: token: ${{ secrets.CODECOV_TOKEN }} - name: Update .pot files - run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }} - if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }} + run: oca_export_and_push_pot "https://x-access-token:${GIT_PUSH_TOKEN}@github.com/${GITHUB_REPOSITORY}" + env: + GIT_PUSH_TOKEN: ${{ secrets.GIT_PUSH_TOKEN }} + if: matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' + diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 16b85ade957..7b86faa0abf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ exclude: | # You don't usually want a bot to modify your legal texts (LICENSE.*|COPYING.*) default_language_version: - python: python3 + python: python3.12 node: "22.9.0" repos: - repo: local @@ -38,12 +38,17 @@ repos: entry: found a en.po file language: fail files: '[a-zA-Z0-9_]*/i18n/en\.po$' + - id: obsolete dotfiles + name: obsolete dotfiles + entry: found obsolete files; remove them + files: '^(\.travis\.yml|\.t2d\.yml|CONTRIBUTING\.md|\.prettierrc\.yml|\.eslintrc\.yml)$' + language: fail - repo: https://github.com/sbidoul/whool - rev: v1.2 + rev: v1.3 hooks: - id: whool-init - repo: https://github.com/oca/maintainer-tools - rev: bf9ecb9938b6a5deca0ff3d870fbd3f33341fded + rev: 31bdbd8e4cb94be6534f0e82b1cafb84a455f671 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons @@ -95,6 +100,7 @@ repos: additional_dependencies: - "eslint@9.12.0" - "eslint-plugin-jsdoc@50.3.1" + - "globals@16.0.0" - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: diff --git a/.pylintrc b/.pylintrc index 7c62b6d2edd..914fd235d93 100644 --- a/.pylintrc +++ b/.pylintrc @@ -4,6 +4,9 @@ load-plugins=pylint_odoo score=n +[IMPORTS] +deprecated-modules=pdb,pudb,ipdb,bs4 + [ODOOLINT] readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" manifest-required-authors=Odoo Community Association (OCA) @@ -25,19 +28,26 @@ disable=all enable=anomalous-backslash-in-string, api-one-deprecated, api-one-multi-together, - assignment-from-none, - attribute-deprecated, class-camelcase, - dangerous-default-value, dangerous-view-replace-wo-priority, - development-status-allowed, duplicate-id-csv, - duplicate-key, duplicate-xml-fields, duplicate-xml-record-id, eval-referenced, - eval-used, incoherent-interpreter-exec-perm, + openerp-exception-warning, + redundant-modulename-xml, + relative-import, + rst-syntax-error, + wrong-tabs-instead-of-spaces, + xml-syntax-error, + assignment-from-none, + attribute-deprecated, + dangerous-default-value, + deprecated-module, + development-status-allowed, + duplicate-key, + eval-used, license-allowed, manifest-author-string, manifest-deprecated-key, @@ -48,73 +58,68 @@ enable=anomalous-backslash-in-string, method-inverse, method-required-super, method-search, - openerp-exception-warning, pointless-statement, pointless-string-statement, print-used, redundant-keyword-arg, - redundant-modulename-xml, reimported, - relative-import, return-in-init, - rst-syntax-error, sql-injection, too-few-format-args, translation-field, translation-required, unreachable, use-vim-comment, - wrong-tabs-instead-of-spaces, - xml-syntax-error, - attribute-string-redundant, character-not-valid-in-resource-link, - consider-merging-classes-inherited, - context-overridden, create-user-wo-reset-password, dangerous-filter-wo-user, dangerous-qweb-replace-wo-priority, deprecated-data-xml-node, deprecated-openerp-xml-node, duplicate-po-message-definition, - except-pass, file-not-used, + missing-newline-extrafiles, + old-api7-method-defined, + po-msgstr-variables, + po-syntax-error, + str-format-used, + unnecessary-utf8-coding-comment, + xml-attribute-translatable, + xml-deprecated-qweb-directive, + xml-deprecated-tree-attribute, + attribute-string-redundant, + consider-merging-classes-inherited, + context-overridden, + except-pass, invalid-commit, manifest-maintainers-list, - missing-newline-extrafiles, missing-readme, missing-return, odoo-addons-relative-import, - old-api7-method-defined, - po-msgstr-variables, - po-syntax-error, renamed-field-parameter, resource-not-exist, - str-format-used, test-folder-imported, translation-contains-variable, translation-positional-used, - unnecessary-utf8-coding-comment, website-manifest-key-not-valid-uri, - xml-attribute-translatable, - xml-deprecated-qweb-directive, - xml-deprecated-tree-attribute, external-request-timeout, - # messages that do not cause the lint step to fail - consider-merging-classes-inherited, + missing-manifest-dependency, + too-complex, create-user-wo-reset-password, dangerous-filter-wo-user, - deprecated-module, file-not-used, - invalid-commit, - missing-manifest-dependency, missing-newline-extrafiles, - missing-readme, no-utf8-coding-comment, - odoo-addons-relative-import, old-api7-method-defined, + unnecessary-utf8-coding-comment, + # messages that do not cause the lint step to fail + consider-merging-classes-inherited, + deprecated-module, + invalid-commit, + missing-readme, + odoo-addons-relative-import, redefined-builtin, - too-complex, - unnecessary-utf8-coding-comment + manifest-external-assets [REPORTS] diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index 018fd61cdd7..e4fd970b0d0 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -3,6 +3,9 @@ load-plugins=pylint_odoo score=n +[IMPORTS] +deprecated-modules=pdb,pudb,ipdb,bs4 + [ODOOLINT] readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" manifest-required-authors=Odoo Community Association (OCA) @@ -17,19 +20,26 @@ disable=all enable=anomalous-backslash-in-string, api-one-deprecated, api-one-multi-together, - assignment-from-none, - attribute-deprecated, class-camelcase, - dangerous-default-value, dangerous-view-replace-wo-priority, - development-status-allowed, duplicate-id-csv, - duplicate-key, duplicate-xml-fields, duplicate-xml-record-id, eval-referenced, - eval-used, incoherent-interpreter-exec-perm, + openerp-exception-warning, + redundant-modulename-xml, + relative-import, + rst-syntax-error, + wrong-tabs-instead-of-spaces, + xml-syntax-error, + assignment-from-none, + attribute-deprecated, + dangerous-default-value, + deprecated-module, + development-status-allowed, + duplicate-key, + eval-used, license-allowed, manifest-author-string, manifest-deprecated-key, @@ -40,56 +50,50 @@ enable=anomalous-backslash-in-string, method-inverse, method-required-super, method-search, - openerp-exception-warning, pointless-statement, pointless-string-statement, print-used, redundant-keyword-arg, - redundant-modulename-xml, reimported, - relative-import, return-in-init, - rst-syntax-error, sql-injection, too-few-format-args, translation-field, translation-required, unreachable, use-vim-comment, - wrong-tabs-instead-of-spaces, - xml-syntax-error, - attribute-string-redundant, character-not-valid-in-resource-link, - consider-merging-classes-inherited, - context-overridden, create-user-wo-reset-password, dangerous-filter-wo-user, dangerous-qweb-replace-wo-priority, deprecated-data-xml-node, deprecated-openerp-xml-node, duplicate-po-message-definition, - except-pass, file-not-used, + missing-newline-extrafiles, + old-api7-method-defined, + po-msgstr-variables, + po-syntax-error, + str-format-used, + unnecessary-utf8-coding-comment, + xml-attribute-translatable, + xml-deprecated-qweb-directive, + xml-deprecated-tree-attribute, + attribute-string-redundant, + consider-merging-classes-inherited, + context-overridden, + except-pass, invalid-commit, manifest-maintainers-list, - missing-newline-extrafiles, missing-readme, missing-return, odoo-addons-relative-import, - old-api7-method-defined, - po-msgstr-variables, - po-syntax-error, renamed-field-parameter, resource-not-exist, - str-format-used, test-folder-imported, translation-contains-variable, translation-positional-used, - unnecessary-utf8-coding-comment, website-manifest-key-not-valid-uri, - xml-attribute-translatable, - xml-deprecated-qweb-directive, - xml-deprecated-tree-attribute, external-request-timeout [REPORTS] diff --git a/README.md b/README.md index 86cd0a860d7..46c8c767de5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ +[![Support the OCA](https://odoo-community.org/readme-banner-image)](https://odoo-community.org/get-involved?utm_source=repo-readme) + +# server-tools [![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=18.0) [![Pre-commit Status](https://github.com/OCA/server-tools/actions/workflows/pre-commit.yml/badge.svg?branch=18.0)](https://github.com/OCA/server-tools/actions/workflows/pre-commit.yml?query=branch%3A18.0) [![Build Status](https://github.com/OCA/server-tools/actions/workflows/test.yml/badge.svg?branch=18.0)](https://github.com/OCA/server-tools/actions/workflows/test.yml?query=branch%3A18.0) @@ -7,8 +10,6 @@ -# server-tools - server-tools @@ -31,9 +32,9 @@ addon | version | maintainers | summary [autovacuum_message_attachment](autovacuum_message_attachment/) | 18.0.1.0.1 | florian-dacosta | Automatically delete old mail messages and attachments [base_conditional_image](base_conditional_image/) | 18.0.1.0.0 | | This module extends the functionality to support conditional images [base_cron_exclusion](base_cron_exclusion/) | 18.0.1.0.1 | LoisRForgeFlow ChrisOForgeFlow | Allow you to select scheduled actions that should not run simultaneously. -[base_exception](base_exception/) | 18.0.1.3.1 | hparfr sebastienbeau | This module provide an abstract model to manage customizable exceptions to be applied on different models (sale order, invoice, ...) +[base_exception](base_exception/) | 18.0.2.0.0 | hparfr sebastienbeau | This module provide an abstract model to manage customizable exceptions to be applied on different models (sale order, invoice, ...) [base_fontawesome](base_fontawesome/) | 18.0.2.0.0 | | Up to date Fontawesome resources. -[base_fontawesome_web_editor](base_fontawesome_web_editor/) | 18.0.1.0.0 | | Integration between base_fontawesome and web_editor for FontAwesome >= 6.7.2 support. +[base_fontawesome_web_editor](base_fontawesome_web_editor/) | 18.0.1.0.1 | | Integration between base_fontawesome and web_editor for FontAwesome >= 6.7.2 support. [base_force_record_noupdate](base_force_record_noupdate/) | 18.0.1.0.0 | | Manually force noupdate=True on models [base_m2m_custom_field](base_m2m_custom_field/) | 18.0.1.0.0 | | Customizations of Many2many [base_model_restrict_update](base_model_restrict_update/) | 18.0.1.0.0 | yostashiro aungkokolin1997 | Update Restrict Model @@ -43,6 +44,7 @@ addon | version | maintainers | summary [base_remote](base_remote/) | 18.0.1.0.0 | | Remote Base [base_search_fuzzy](base_search_fuzzy/) | 18.0.2.0.0 | | Fuzzy search with the PostgreSQL trigram extension [base_sequence_option](base_sequence_option/) | 18.0.1.0.1 | kittiu | Alternative sequence options for specific models +[base_sequence_template](base_sequence_template/) | 18.0.1.0.0 | | Create a sequence template that can generate sequences for companies [base_sparse_field_list_support](base_sparse_field_list_support/) | 18.0.1.0.0 | | add list support to convert_to_cache() [base_technical_user](base_technical_user/) | 18.0.1.0.1 | | Add a technical user parameter on the company [base_temporary_action](base_temporary_action/) | 18.0.1.0.0 | | This addon allows to create temporary actions @@ -50,7 +52,7 @@ addon | version | maintainers | summary [base_time_window](base_time_window/) | 18.0.1.1.1 | | Base model to handle time windows [base_url](base_url/) | 18.0.1.0.0 | sebastienbeau | Abstract module/mixin to manage clean url on odoo record [base_view_inheritance_extension](base_view_inheritance_extension/) | 18.0.1.0.3 | hbrunn | Adds more operators for view inheritance -[bus_alt_connection](bus_alt_connection/) | 18.0.1.0.0 | | Needed when using PgBouncer as a connection pooler +[bus_alt_connection](bus_alt_connection/) | 18.0.1.0.1 | | Needed when using PgBouncer as a connection pooler [database_autovacuum_tuning](database_autovacuum_tuning/) | 18.0.1.0.1 | | Scheduled checks for Odoo autovacuum thresholds and scale factors [database_cleanup](database_cleanup/) | 18.0.1.0.2 | | Database cleanup [database_size](database_size/) | 18.0.1.0.2 | | Database Size diff --git a/attachment_queue_email/i18n/it.po b/attachment_queue_email/i18n/it.po index e0886734fc2..9ec26e1c556 100644 --- a/attachment_queue_email/i18n/it.po +++ b/attachment_queue_email/i18n/it.po @@ -6,110 +6,112 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2026-11-10 12:46+0000\n" +"Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.15.2\n" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_attachment_queue__assigned_attachment_ids #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__assigned_attachment_ids #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_server__assigned_attachment_ids msgid "Assigned Attachments" -msgstr "" +msgstr "Allegati assegnati" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_server__attachment_condition_ids msgid "Attachment Condition" -msgstr "" +msgstr "Condizione allegato" #. module: attachment_queue_email #: model_terms:ir.ui.view,arch_db:attachment_queue_email.view_fetchmail_attachment_condition_form msgid "Attachment Condition requirements" -msgstr "" +msgstr "Requisiti condizione allegato" #. module: attachment_queue_email #: model_terms:ir.ui.view,arch_db:attachment_queue_email.view_email_server_form msgid "Attachment Conditions" -msgstr "" +msgstr "Condizioni allegato" #. module: attachment_queue_email #: model:ir.model,name:attachment_queue_email.model_attachment_queue msgid "Attachment Queue" -msgstr "" +msgstr "Coda allegati" #. module: attachment_queue_email #: model_terms:ir.ui.view,arch_db:attachment_queue_email.view_fetchmail_attachment_condition_form msgid "Attachment process" -msgstr "" +msgstr "Elaborazione allegato" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__company_id msgid "Company" -msgstr "" +msgstr "Azienda" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__name msgid "Condition Name" -msgstr "" +msgstr "Nome condizione" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__create_uid msgid "Created by" -msgstr "" +msgstr "Creato da" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__create_date msgid "Created on" -msgstr "" +msgstr "Creato il" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__display_name msgid "Display Name" -msgstr "" +msgstr "Nome visualizzato" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__email_from msgid "Email From" -msgstr "" +msgstr "E-mail da" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_attachment_queue__fetchmail_server_id msgid "Email Server" -msgstr "" +msgstr "Server e-mail" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__email_subject msgid "Email Subject" -msgstr "" +msgstr "Oggetto e-mail" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__email_to msgid "Email To" -msgstr "" +msgstr "E-mail a" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_attachment_queue__fetchmail_attachment_condition_id msgid "FetchMail condition" -msgstr "" +msgstr "Condizione FetchMail" #. module: attachment_queue_email #: model:ir.model,name:attachment_queue_email.model_fetchmail_attachment_condition msgid "Fetchmail Attachment Conditions" -msgstr "" +msgstr "Condizioni allegato Fetchmail" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__file_extension msgid "File Extension" -msgstr "" +msgstr "Estensione file" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__file_type msgid "File Type" -msgstr "" +msgstr "Tipo file" #. module: attachment_queue_email #: model:ir.model.fields,help:attachment_queue_email.field_fetchmail_server__attachment_condition_ids @@ -117,11 +119,13 @@ msgid "" "Files attached to the emails matching these conditions will be imported in " "Odoo as 'Attachment Queue' objects" msgstr "" +"I file allegati alle e-mail che corrispondono a queste condizioni verranno " +"importati in Odoo come oggetti 'Coda allegati'" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__id msgid "ID" -msgstr "" +msgstr "ID" #. module: attachment_queue_email #: model:ir.model.fields,help:attachment_queue_email.field_fetchmail_attachment_condition__email_to @@ -129,6 +133,9 @@ msgid "" "If empty, catches the email no matter the recipient.\n" "Otherwise catches the emails where the recipients emails contains the given characters." msgstr "" +"Se vuoto, intercetta l'e-mail indipendentemente dal destinatario.\n" +"Altrimenti intercetta le e-mail in cui l'indirizzo dei destinatari contiene " +"i caratteri indicati." #. module: attachment_queue_email #: model:ir.model.fields,help:attachment_queue_email.field_fetchmail_attachment_condition__email_from @@ -136,6 +143,9 @@ msgid "" "If empty, catches the emails from every senders.\n" "Otherwise catches the emails where the sender's email contains the given characters" msgstr "" +"Se vuoto, intercetta le e-mail da qualsiasi mittente.\n" +"Altrimenti intercetta le e-mail in cui l'indirizzo del mittente contiene i " +"caratteri indicati" #. module: attachment_queue_email #: model:ir.model.fields,help:attachment_queue_email.field_fetchmail_attachment_condition__email_subject @@ -143,38 +153,41 @@ msgid "" "If empty, catches the emails with every kind of Subjects.\n" "Otherwise catches the emails where the Subject contains the given characters" msgstr "" +"Se vuoto, intercetta le e-mail con qualsiasi oggetto.\n" +"Altrimenti intercetta le e-mail in cui l'oggetto contiene i caratteri " +"indicati" #. module: attachment_queue_email #: model:ir.model,name:attachment_queue_email.model_fetchmail_server msgid "Incoming Mail Server" -msgstr "" +msgstr "Server di posta in arrivo" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Ultimo aggiornamento di" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__write_date msgid "Last Updated on" -msgstr "" +msgstr "Ultimo aggiornamento il" #. module: attachment_queue_email #: model_terms:ir.ui.view,arch_db:attachment_queue_email.view_fetchmail_attachment_condition_form msgid "Requirements" -msgstr "" +msgstr "Requisiti" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__server_id msgid "Server Mail" -msgstr "" +msgstr "Server di posta" #. module: attachment_queue_email #: model:ir.model.fields,field_description:attachment_queue_email.field_attachment_queue__smart_search #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_attachment_condition__smart_search #: model:ir.model.fields,field_description:attachment_queue_email.field_fetchmail_server__smart_search msgid "Smart Search" -msgstr "" +msgstr "Ricerca intelligente" #. module: attachment_queue_email #: model:ir.model.fields,help:attachment_queue_email.field_fetchmail_attachment_condition__file_type @@ -182,16 +195,19 @@ msgid "" "The 'file type' is transmited to the 'Attachment Queue' objects created from the selected emails attachments.\n" "It will allow Odoo to recognize what do do with them once created." msgstr "" +"Il 'tipo file' viene trasmesso agli oggetti 'Coda allegati' creati dagli " +"allegati delle e-mail selezionate.\n" +"Permetterà a Odoo di riconoscere cosa farne una volta creati." #. module: attachment_queue_email #: model:ir.model.fields,help:attachment_queue_email.field_attachment_queue__fetchmail_attachment_condition_id msgid "The Fetchmail attachment condition used to create this attachment" -msgstr "" +msgstr "La condizione allegato Fetchmail utilizzata per creare questo allegato" #. module: attachment_queue_email #: model:ir.model.fields,help:attachment_queue_email.field_attachment_queue__fetchmail_server_id msgid "The email server used to create this attachment" -msgstr "" +msgstr "Il server e-mail utilizzato per creare questo allegato" #. module: attachment_queue_email #: model:ir.model.fields,help:attachment_queue_email.field_fetchmail_attachment_condition__file_extension @@ -199,3 +215,5 @@ msgid "" "The extension (or part of the name) of the sought files. If empty, all the " "email's attachments will be imported." msgstr "" +"L'estensione (o parte del nome) dei file cercati. Se vuoto, tutti gli " +"allegati dell'e-mail verranno importati." diff --git a/autovacuum_message_attachment/i18n/autovacuum_message_attachment.pot b/autovacuum_message_attachment/i18n/autovacuum_message_attachment.pot index d980e74462f..4f15b75df59 100644 --- a/autovacuum_message_attachment/i18n/autovacuum_message_attachment.pot +++ b/autovacuum_message_attachment/i18n/autovacuum_message_attachment.pot @@ -157,6 +157,7 @@ msgstr "" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_format_vat_label_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_storage__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_test_connection__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_generate_company_sequences_wizard__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_html_field_history_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_account__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_enrich_api__assigned_attachment_ids @@ -239,6 +240,7 @@ msgstr "" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_date_range__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option_line__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_template__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_menu__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view_custom__assigned_attachment_ids diff --git a/autovacuum_message_attachment/i18n/ca.po b/autovacuum_message_attachment/i18n/ca.po index f90e4448bb5..78bf00fc6fb 100644 --- a/autovacuum_message_attachment/i18n/ca.po +++ b/autovacuum_message_attachment/i18n/ca.po @@ -158,6 +158,7 @@ msgstr "" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_format_vat_label_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_storage__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_test_connection__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_generate_company_sequences_wizard__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_html_field_history_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_account__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_enrich_api__assigned_attachment_ids @@ -240,6 +241,7 @@ msgstr "" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_date_range__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option_line__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_template__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_menu__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view_custom__assigned_attachment_ids diff --git a/autovacuum_message_attachment/i18n/es.po b/autovacuum_message_attachment/i18n/es.po index 6645008625b..4541a30ec2a 100644 --- a/autovacuum_message_attachment/i18n/es.po +++ b/autovacuum_message_attachment/i18n/es.po @@ -160,6 +160,7 @@ msgstr "Todos" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_format_vat_label_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_storage__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_test_connection__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_generate_company_sequences_wizard__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_html_field_history_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_account__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_enrich_api__assigned_attachment_ids @@ -242,6 +243,7 @@ msgstr "Todos" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_date_range__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option_line__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_template__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_menu__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view_custom__assigned_attachment_ids diff --git a/autovacuum_message_attachment/i18n/es_AR.po b/autovacuum_message_attachment/i18n/es_AR.po index 78bc8a5bbe2..97645d7b68a 100644 --- a/autovacuum_message_attachment/i18n/es_AR.po +++ b/autovacuum_message_attachment/i18n/es_AR.po @@ -160,6 +160,7 @@ msgstr "Todos" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_format_vat_label_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_storage__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_test_connection__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_generate_company_sequences_wizard__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_html_field_history_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_account__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_enrich_api__assigned_attachment_ids @@ -242,6 +243,7 @@ msgstr "Todos" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_date_range__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option_line__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_template__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_menu__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view_custom__assigned_attachment_ids diff --git a/autovacuum_message_attachment/i18n/fr.po b/autovacuum_message_attachment/i18n/fr.po index 0977f5e65da..58a863b4a10 100644 --- a/autovacuum_message_attachment/i18n/fr.po +++ b/autovacuum_message_attachment/i18n/fr.po @@ -160,6 +160,7 @@ msgstr "Tous" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_format_vat_label_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_storage__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_test_connection__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_generate_company_sequences_wizard__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_html_field_history_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_account__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_enrich_api__assigned_attachment_ids @@ -242,6 +243,7 @@ msgstr "Tous" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_date_range__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option_line__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_template__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_menu__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view_custom__assigned_attachment_ids diff --git a/autovacuum_message_attachment/i18n/it.po b/autovacuum_message_attachment/i18n/it.po index 1b4dc29de2c..39e0ec7b26f 100644 --- a/autovacuum_message_attachment/i18n/it.po +++ b/autovacuum_message_attachment/i18n/it.po @@ -160,6 +160,7 @@ msgstr "Tutti" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_format_vat_label_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_storage__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_fs_test_connection__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_generate_company_sequences_wizard__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_html_field_history_mixin__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_account__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_iap_enrich_api__assigned_attachment_ids @@ -242,6 +243,7 @@ msgstr "Tutti" #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_date_range__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_option_line__assigned_attachment_ids +#: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_sequence_template__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_menu__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view__assigned_attachment_ids #: model:ir.model.fields,field_description:autovacuum_message_attachment.field_ir_ui_view_custom__assigned_attachment_ids diff --git a/base_exception/README.rst b/base_exception/README.rst index b0e28ca53db..87f4e7c2245 100644 --- a/base_exception/README.rst +++ b/base_exception/README.rst @@ -11,7 +11,7 @@ Exception Rule !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:8408681307b5e677f2c8e2813f399b2103baa6219e47ffa188312ef69a264b3c + !! source digest: sha256:e950623ce2f831fb7d2b17246cb49ef2a9094d49228d265ca87985716fb6a9e8 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/base_exception/__manifest__.py b/base_exception/__manifest__.py index fc80e6923b6..51b8acb96f5 100644 --- a/base_exception/__manifest__.py +++ b/base_exception/__manifest__.py @@ -5,7 +5,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Exception Rule", - "version": "18.0.1.3.1", + "version": "18.0.2.0.0", "development_status": "Mature", "category": "Generic Modules", "summary": """ diff --git a/base_exception/models/base_exception_method.py b/base_exception/models/base_exception_method.py index 7b934d634a8..72791998bdf 100644 --- a/base_exception/models/base_exception_method.py +++ b/base_exception/models/base_exception_method.py @@ -104,6 +104,8 @@ def detect_exceptions(self): # line) using the current cursor, which sees records created earlier # in this same transaction even before they are committed. main_records = self._get_main_records() + must_rollback = self._must_rollback_on_exception() + test_mode = test_mode or not must_rollback # Write exceptions in a new transaction to be committed so that we can # rollback the ongoing one while keeping the exceptions stored with self.env.registry.cursor() as new_cr: @@ -138,12 +140,25 @@ def detect_exceptions(self): or main_records_new_env._must_raise_exception_after_detection() ): raise_exception = True - if raise_exception: + if raise_exception and must_rollback: raise BaseExceptionError( json.dumps(self._detect_exception_get_exc_class_values()) ) return all_exception_ids + def _must_rollback_on_exception(self): + """Establish if transaction must be rolled back in case of exception. + + You can control this by setting a ctx key + `base_exception_no_rollback={model: ids}`. + See example in `sale_exception`. + """ + main_records = self._get_main_records() + allowed = self.env.context.get("base_exception_no_rollback") or {} + return not main_records or not set(main_records.ids) <= set( + allowed.get(main_records._name, ()) + ) + def _detect_exception_get_exc_class_values(self): return { "src_model": self._name, diff --git a/base_exception/static/description/index.html b/base_exception/static/description/index.html index bc8f7e51448..b54a777ec56 100644 --- a/base_exception/static/description/index.html +++ b/base_exception/static/description/index.html @@ -372,7 +372,7 @@

Exception Rule

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

Mature License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

This module provide an abstract model to manage customizable exceptions diff --git a/base_exception/tests/test_base_exception.py b/base_exception/tests/test_base_exception.py index cbc9bed14ac..0de4e98eca6 100644 --- a/base_exception/tests/test_base_exception.py +++ b/base_exception/tests/test_base_exception.py @@ -214,3 +214,22 @@ def test_rollback_main_transaction(self): self.assertTrue(self.po.with_env(new_env).exception_ids) self.assertNotEqual(self.po.state, "purchase") self.assertNotEqual(self.po.with_env(new_env).state, "purchase") + + @patch_base_exception_method_env + def test_no_rollback_context(self): + po = self.po.with_context( + base_exception_no_rollback={self.po._name: self.po.ids} + ) + # No BaseExceptionError: the exceptions are stored with the current + # cursor and returned. + self.assertEqual(po.detect_exceptions(), self.exception_rule.ids) + self.assertEqual(self.po.exception_ids, self.exception_rule) + + @patch_base_exception_method_env + def test_no_rollback_context_other_records(self): + other_po = self.po.copy() + po = self.po.with_context( + base_exception_no_rollback={self.po._name: other_po.ids} + ) + with self.assertRaises(BaseExceptionError): + po.detect_exceptions() diff --git a/base_fontawesome_web_editor/README.rst b/base_fontawesome_web_editor/README.rst index 11fe5bf5930..71051d242c8 100644 --- a/base_fontawesome_web_editor/README.rst +++ b/base_fontawesome_web_editor/README.rst @@ -11,7 +11,7 @@ Base Fontawesome Web Editor !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:7f4fa4e83773bf3210a0869c25a339f280b9f4f29d323e53a0e2c78765108f74 + !! source digest: sha256:9a69dfef9d1deb4f0ee84c01f5251365b407b2adda7bcde8eeecbaf7334d2367 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/base_fontawesome_web_editor/__manifest__.py b/base_fontawesome_web_editor/__manifest__.py index 7592a433c86..34b93e0ae8c 100644 --- a/base_fontawesome_web_editor/__manifest__.py +++ b/base_fontawesome_web_editor/__manifest__.py @@ -5,7 +5,7 @@ "name": "Base Fontawesome Web Editor", "summary": """Integration between base_fontawesome and web_editor """ """for FontAwesome >= 6.7.2 support.""", - "version": "18.0.1.0.0", + "version": "18.0.1.0.1", "license": "LGPL-3", "website": "https://github.com/OCA/server-tools", "author": "Heligràfics Fotogrametría S.L., Odoo Community Association (OCA)", diff --git a/base_fontawesome_web_editor/static/description/index.html b/base_fontawesome_web_editor/static/description/index.html index 2de31bbceb4..c07e9b13237 100644 --- a/base_fontawesome_web_editor/static/description/index.html +++ b/base_fontawesome_web_editor/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Base Fontawesome Web Editor + + +

+ + + +Odoo Community Association + +
+

Base Sequence Template

+ +

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

+

This module provides a wizard to generate company-specific sequences +from reusable sequence templates. It is designed for multi-company +environments where each company requires its own ir.sequence records +but shares a common configuration pattern. The wizard allows defining +sequence templates that include dynamic placeholders referencing company +fields.

+

During generation, placeholders of the form %(company_id.<field>)s +are automatically replaced with the corresponding values from each +company. Other placeholders (for example %(year)s) are preserved and +evaluated later by the standard sequence engine. The module also +validates that all referenced company fields exist and checks that +required company values are not empty.

+

Table of contents

+ +
+

Usage

+

To use this module, follow these steps:

+
    +
  1. Create one or more sequence templates and define the desired prefix +and suffix, with company placeholders if desired. You can use +placeholders like:
      +
    • %(company_id.id)s
    • +
    • %(company_id.name)s
    • +
    • %(company_id.vat)s
    • +
    +
  2. +
  3. Select the templates you want to use.
  4. +
  5. Trigger the server action that opens the wizard to generate sequences +for companies.
  6. +
  7. In the wizard, select the target companies.
  8. +
  9. Confirm to generate the sequences.
  10. +
+

The wizard will:

+
    +
  • Read the required company fields used in the templates.
  • +
  • Validate that those fields exist and are not empty.
  • +
  • Create one ir.sequence per selected company and template with the +resolved values.
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ForgeFlow
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +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.

+

This module is part of the OCA/server-tools project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+
+ + diff --git a/base_sequence_template/tests/__init__.py b/base_sequence_template/tests/__init__.py new file mode 100644 index 00000000000..c8fdb0badae --- /dev/null +++ b/base_sequence_template/tests/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2026 ForgeFlow S.L. (https://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_base_sequence_template diff --git a/base_sequence_template/tests/test_base_sequence_template.py b/base_sequence_template/tests/test_base_sequence_template.py new file mode 100644 index 00000000000..0998d4f685b --- /dev/null +++ b/base_sequence_template/tests/test_base_sequence_template.py @@ -0,0 +1,117 @@ +# Copyright 2026 ForgeFlow S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.exceptions import ValidationError +from odoo.tests.common import TransactionCase + + +class TestBaseSequenceTemplate(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.model_company = cls.env["res.company"] + cls.model_sequence_template = cls.env["ir.sequence.template"] + cls.model_sequence = cls.env["ir.sequence"] + cls.model_wizard = cls.env["generate.company.sequences.wizard"] + + cls.company_a = cls.model_company.create( + { + "name": "Company A", + "phone": "12345", + } + ) + cls.company_b = cls.model_company.create( + { + "name": "Company B", + "phone": "67890", + } + ) + cls.template = cls.model_sequence_template.create( + { + "name": "Test Template", + "code": "test.sequence", + "prefix": "/%(company_id.phone)s/", + "suffix": "/%(year)s", + "padding": 5, + "number_increment": 1, + "implementation": "no_gap", + } + ) + + def _create_wizard(self, companies, templates): + return self.model_wizard.create( + { + "company_ids": [(6, 0, companies.ids)], + "template_ids": [(6, 0, templates.ids)], + } + ) + + def test_extract_placeholders(self): + # Extract only company_id placeholders + wizard = self._create_wizard(self.company_a, self.template) + placeholders = wizard._extract_placeholders("/%(company_id.phone)s/%(year)s") + self.assertEqual(placeholders, {"company_id.phone"}) + + def test_replace_company_placeholders(self): + # Replace only company_id placeholders + wizard = self._create_wizard(self.company_a, self.template) + template = "/%(company_id.phone)s/%(year)s" + values = {"company_id.phone": "12345"} + result = wizard.replace_company_placeholders(template, values) + self.assertEqual(result, "/12345/%(year)s") + + def test_action_generate_success(self): + # Generate different companies' sequences, with the phone number + wizard = self._create_wizard(self.company_a | self.company_b, self.template) + wizard.action_generate() + sequences = self.model_sequence.search( + [ + ("code", "=", "test.sequence"), + ("company_id", "in", (self.company_a | self.company_b).ids), + ] + ) + self.assertEqual(len(sequences), 2) + seq_a = sequences.filtered(lambda s: s.company_id == self.company_a) + seq_b = sequences.filtered(lambda s: s.company_id == self.company_b) + # Phone number is correctly set in the prefix + self.assertEqual(seq_a.prefix, "/12345/") + self.assertEqual(seq_b.prefix, "/67890/") + self.assertEqual(seq_a.suffix, "/%(year)s") + self.assertEqual(seq_b.suffix, "/%(year)s") + + def test_missing_company_field_value(self): + # Check that sequences are not generated if we use a company field + # which is empty in any company + template = self.model_sequence_template.create( + { + "name": "Missing Phone Template", + "code": "missing.phone.seq", + "prefix": "/%(company_id.phone)s/", + "suffix": "", + "padding": 3, + "number_increment": 1, + "implementation": "no_gap", + } + ) + company = self.model_company.create({"name": "No Phone Company"}) + wizard = self._create_wizard(company, template) + with self.assertRaises(ValidationError): + wizard.action_generate() + + def test_invalid_company_field_placeholder(self): + # Check the sequences are not generated if we try to use an invalid + # company field + template = self.model_sequence_template.create( + { + "name": "Invalid Field Template", + "code": "invalid.field.seq", + "prefix": "/%(company_id.nonexistent_field)s/", + "suffix": "", + "padding": 3, + "number_increment": 1, + "implementation": "no_gap", + } + ) + wizard = self._create_wizard(self.company_a, template) + with self.assertRaises(ValidationError): + wizard.action_generate() diff --git a/base_sequence_template/views/ir_sequence_template_views.xml b/base_sequence_template/views/ir_sequence_template_views.xml new file mode 100644 index 00000000000..511f96d75eb --- /dev/null +++ b/base_sequence_template/views/ir_sequence_template_views.xml @@ -0,0 +1,162 @@ + + + + + view.ir.sequence.template.list + ir.sequence.template + + +
+
+ + + + + + +
+
+
+ + view.ir.sequence.template.form + ir.sequence.template + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + Current Year with Century: %%(year)s + Current Year without Century: %%(y)s + Month: %%(month)s + Day: %%(day)s + + + Day of the Year: %%(doy)s + Week of the Year: %%(woy)s + Day of the Week (0:Monday): %%(weekday)s + + + Hour 00->24: %%(h24)s + Hour 00->12: %%(h12)s + Minute: %%(min)s + Second: %%(sec)s + + + + + + Company Fields + + You can use any company flat field in your prefix or suffix + + + Company ID: %%(company_id.id)s + Company Name: %%(company_id.name)s + Company Registry: %%(company_id.company_registry)s + + + + +
+
+
+
+ + + Sequence Templates + ir.sequence.template + list,form + + + + Generate Sequences + + + list,form + code + + if records: + action = records.open_generate_sequences_wizard() + + + + +
diff --git a/base_sequence_template/wizard/__init__.py b/base_sequence_template/wizard/__init__.py new file mode 100644 index 00000000000..6aefeac9a9a --- /dev/null +++ b/base_sequence_template/wizard/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2026 ForgeFlow S.L. (https://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import generate_company_sequences diff --git a/base_sequence_template/wizard/generate_company_sequences.py b/base_sequence_template/wizard/generate_company_sequences.py new file mode 100644 index 00000000000..651a83e63fb --- /dev/null +++ b/base_sequence_template/wizard/generate_company_sequences.py @@ -0,0 +1,102 @@ +# Copyright 2026 ForgeFlow S.L. (https://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import re + +from odoo import api, fields, models +from odoo.exceptions import ValidationError + + +class GenerateCompanySequencesWizard(models.TransientModel): + _name = "generate.company.sequences.wizard" + _description = "Generate Sequences for Company" + + company_ids = fields.Many2many( + "res.company", + required=True, + string="Companies", + domain="[('id', 'in', allowed_company_ids)]", + ) + template_ids = fields.Many2many( + "ir.sequence.template", required=True, string="Sequence Templates" + ) + + @api.model + def _extract_placeholders(self, template_str): + if not template_str: + return set() + all_placeholders = re.findall(r"%\(([\w\.]+)\)s", template_str) + return {p for p in all_placeholders if p.startswith("company_id.")} + + @api.model + def replace_company_placeholders(self, template, company_values): + if not template: + return "" + + def repl(match): + key = match.group(1) + if key.startswith("company_id."): + return str(company_values.get(key, match.group(0))) + return match.group(0) + + return re.sub(r"%\(([\w\.]+)\)s", repl, template) + + @api.model + def _read_company_data(self, fields_to_read): + field_names = {p.split(".", 1)[1] for p in fields_to_read} + company_data = {} + try: + for company in self.company_ids: + data = company.read(list(field_names))[0] + company_data[company.id] = { + f"company_id.{k}": v for k, v in data.items() + } + except ValueError as e: + raise ValidationError( + f"One or more fields used in the templates does not exist for " + f"the model. Check that all placeholders match actual company " + f"fields.\nDetails: {str(e)}." + ) from e + return company_data + + @api.model + def _prepare_sequence_vals(self, tmpl, company, prefix, suffix): + return { + "name": f"{company.name} {tmpl.name}", + "code": tmpl.code, + "prefix": prefix, + "suffix": suffix, + "padding": tmpl.padding, + "company_id": company.id, + "number_increment": tmpl.number_increment, + "implementation": tmpl.implementation, + "template_id": tmpl.id, + } + + def action_generate(self): + fields_to_read = set() + for tmpl in self.template_ids: + fields_to_read |= self._extract_placeholders(tmpl.prefix) + fields_to_read |= self._extract_placeholders(tmpl.suffix) + company_data = self._read_company_data(fields_to_read) + for company in self.company_ids: + values = company_data[company.id] + missing = [f for f in fields_to_read if not values.get(f)] + if missing: + raise ValidationError( + self.env._( + f"Company '{company.name}' has empty or invalid values " + f"for the following fields used in templates: " + f"{', '.join(missing)}. Please fill them before " + f"generating sequences." + ) + ) + for tmpl in self.template_ids: + prefix = self.replace_company_placeholders(tmpl.prefix, values) + suffix = self.replace_company_placeholders(tmpl.suffix, values) + seq_vals = self._prepare_sequence_vals(tmpl, company, prefix, suffix) + self.env["ir.sequence"].create(seq_vals) + return { + "type": "ir.actions.client", + "tag": "reload", + } diff --git a/base_sequence_template/wizard/generate_company_sequences.xml b/base_sequence_template/wizard/generate_company_sequences.xml new file mode 100644 index 00000000000..c1773e65c61 --- /dev/null +++ b/base_sequence_template/wizard/generate_company_sequences.xml @@ -0,0 +1,48 @@ + + + + + generate.company.sequences.wizard.form + generate.company.sequences.wizard + +
+ + + + + +
+
+
+
+
+ + Generate Company Sequences + generate.company.sequences.wizard + form + + new + +
diff --git a/base_time_parameter/i18n/it.po b/base_time_parameter/i18n/it.po index 3a12df6eb96..708cc596699 100644 --- a/base_time_parameter/i18n/it.po +++ b/base_time_parameter/i18n/it.po @@ -6,153 +6,158 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2026-11-10 12:46+0000\n" +"Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.15.2\n" #. module: base_time_parameter #: model:ir.model.constraint,message:base_time_parameter.constraint_base_time_parameter_version__unique msgid "A parameter cannot have two versions starting the same day." msgstr "" +"Un parametro non può avere due versioni che iniziano nello stesso giorno." #. module: base_time_parameter #: model:ir.model,name:base_time_parameter.model_base msgid "Base" -msgstr "" +msgstr "Base" #. module: base_time_parameter #: model:ir.model.fields.selection,name:base_time_parameter.selection__base_time_parameter__type__boolean msgid "Boolean (True/False)" -msgstr "" +msgstr "Booleano (Vero/Falso)" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__code #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__code msgid "Code" -msgstr "" +msgstr "Codice" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__company_id #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__company_id msgid "Company" -msgstr "" +msgstr "Azienda" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__country_id #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__country_id msgid "Country" -msgstr "" +msgstr "Nazione" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__create_uid #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__create_uid msgid "Created by" -msgstr "" +msgstr "Creato da" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__create_date #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__create_date msgid "Created on" -msgstr "" +msgstr "Creato il" #. module: base_time_parameter #: model:ir.model.fields.selection,name:base_time_parameter.selection__base_time_parameter__type__date msgid "Date" -msgstr "" +msgstr "Data" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__date_from msgid "Date From" -msgstr "" +msgstr "Data da" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__description #: model_terms:ir.ui.view,arch_db:base_time_parameter.base_time_parameter_view_form msgid "Description" -msgstr "" +msgstr "Descrizione" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__display_name #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__display_name msgid "Display Name" -msgstr "" +msgstr "Nome visualizzato" #. module: base_time_parameter #. odoo-python #: code:addons/base_time_parameter/models/base_time_parameter_version.py:0 msgid "Error occurred while validating date: %s" -msgstr "" +msgstr "Si è verificato un errore durante la validazione della data: %s" #. module: base_time_parameter #. odoo-python #: code:addons/base_time_parameter/models/base_time_parameter_version.py:0 msgid "Error occurred while validating float: %s" msgstr "" +"Si è verificato un errore durante la validazione del numero a virgola " +"mobile: %s" #. module: base_time_parameter #. odoo-python #: code:addons/base_time_parameter/models/base_time_parameter_version.py:0 msgid "Error occurred while validating integer: %s" -msgstr "" +msgstr "Si è verificato un errore durante la validazione del numero intero: %s" #. module: base_time_parameter #. odoo-python #: code:addons/base_time_parameter/models/base_time_parameter_version.py:0 msgid "Error occurred while validating json: %s" -msgstr "" +msgstr "Si è verificato un errore durante la validazione del JSON: %s" #. module: base_time_parameter #: model:ir.model.fields,help:base_time_parameter.field_base_time_parameter__model_id msgid "Filter by model (e.g. hr.payslip)" -msgstr "" +msgstr "Filtra per modello (es. hr.payslip)" #. module: base_time_parameter #: model:ir.model.fields.selection,name:base_time_parameter.selection__base_time_parameter__type__float msgid "Floating point number" -msgstr "" +msgstr "Numero in virgola mobile" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__id #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__id msgid "ID" -msgstr "" +msgstr "ID" #. module: base_time_parameter #: model:ir.model.fields.selection,name:base_time_parameter.selection__base_time_parameter__type__integer msgid "Integer number" -msgstr "" +msgstr "Numero intero" #. module: base_time_parameter #: model:ir.model.fields.selection,name:base_time_parameter.selection__base_time_parameter__type__json msgid "JSON" -msgstr "" +msgstr "JSON" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__write_uid #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Ultimo aggiornamento di" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__write_date #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__write_date msgid "Last Updated on" -msgstr "" +msgstr "Ultimo aggiornamento il" #. module: base_time_parameter #: model:res.groups,name:base_time_parameter.group_time_parameter msgid "Manage Time Parameters" -msgstr "" +msgstr "Gestione parametri temporali" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__model_id #: model_terms:ir.ui.view,arch_db:base_time_parameter.base_time_parameter_view_search msgid "Model" -msgstr "" +msgstr "Modello" #. module: base_time_parameter #. odoo-python @@ -160,75 +165,77 @@ msgstr "" msgid "" "No parameter for model '%(model_name)s', code '%(code)s', date %(date)s" msgstr "" +"Nessun parametro per il modello '%(model_name)s', codice '%(code)s', data %" +"(date)s" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__name msgid "Parameter Name" -msgstr "" +msgstr "Nome parametro" #. module: base_time_parameter #: model:ir.model.fields.selection,name:base_time_parameter.selection__base_time_parameter__type__record msgid "Record" -msgstr "" +msgstr "Record" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__record_model msgid "Record Model" -msgstr "" +msgstr "Modello record" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__value_reference msgid "Reference Value" -msgstr "" +msgstr "Valore di riferimento" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__smart_search #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__smart_search msgid "Smart Search" -msgstr "" +msgstr "Ricerca intelligente" #. module: base_time_parameter #: model:ir.model.fields.selection,name:base_time_parameter.selection__base_time_parameter__type__string msgid "Text" -msgstr "" +msgstr "Testo" #. module: base_time_parameter #: model:ir.model,name:base_time_parameter.model_base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__parameter_id #: model_terms:ir.ui.view,arch_db:base_time_parameter.base_time_parameter_view_form msgid "Time Parameter" -msgstr "" +msgstr "Parametro temporale" #. module: base_time_parameter #: model:ir.model,name:base_time_parameter.model_base_time_parameter_version msgid "Time Parameter Version" -msgstr "" +msgstr "Versione parametro temporale" #. module: base_time_parameter #: model:ir.actions.act_window,name:base_time_parameter.base_time_parameter_action #: model:ir.ui.menu,name:base_time_parameter.base_time_parameter_menu msgid "Time Parameters" -msgstr "" +msgstr "Parametri temporali" #. module: base_time_parameter #: model:ir.model.constraint,message:base_time_parameter.constraint_base_time_parameter__unique msgid "Two time parameters cannot have the same code." -msgstr "" +msgstr "Due parametri temporali non possono avere lo stesso codice." #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__type #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__type msgid "Type" -msgstr "" +msgstr "Tipo" #. module: base_time_parameter #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter_version__value msgid "Value" -msgstr "" +msgstr "Valore" #. module: base_time_parameter #: model:ir.actions.act_window,name:base_time_parameter.base_time_parameter_version_action #: model:ir.model.fields,field_description:base_time_parameter.field_base_time_parameter__version_ids #: model_terms:ir.ui.view,arch_db:base_time_parameter.base_time_parameter_view_form msgid "Versions" -msgstr "" +msgstr "Versioni" diff --git a/base_url/i18n/it.po b/base_url/i18n/it.po index 011471d0e89..153bf1589bd 100644 --- a/base_url/i18n/it.po +++ b/base_url/i18n/it.po @@ -6,140 +6,142 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2026-11-10 12:46+0000\n" +"Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.15.2\n" #. module: base_url #: model:ir.model,name:base_url.model_abstract_url msgid "Abstract Url" -msgstr "" +msgstr "URL astratto" #. module: base_url #: model:ir.model.constraint,message:base_url.constraint_url_url_unique_key_per_referential_per_lang msgid "Already exists in database" -msgstr "" +msgstr "Esiste già nel database" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_abstract_url__count_url msgid "Count Url" -msgstr "" +msgstr "Conteggio URL" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__create_uid msgid "Created by" -msgstr "" +msgstr "Creato da" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__create_date msgid "Created on" -msgstr "" +msgstr "Creato il" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__display_name msgid "Display Name" -msgstr "" +msgstr "Nome visualizzato" #. module: base_url #: model:res.groups,name:base_url.group_edit_url msgid "Edit url" -msgstr "" +msgstr "Modifica URL" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__id msgid "ID" -msgstr "" +msgstr "ID" #. module: base_url #: model:ir.model.fields,help:base_url.field_url_url__res_id msgid "ID of the target record in the database" -msgstr "" +msgstr "ID del record di destinazione nel database" #. module: base_url #: model:ir.model.fields,help:base_url.field_url_url__redirect msgid "If tick this url is a redirection to the new url" -msgstr "" +msgstr "Se selezionato, questo URL è un reindirizzamento al nuovo URL" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__key msgid "Key" -msgstr "" +msgstr "Chiave" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__lang_id msgid "Lang" -msgstr "" +msgstr "Lingua" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Ultimo aggiornamento di" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__write_date msgid "Last Updated on" -msgstr "" +msgstr "Ultimo aggiornamento il" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__manual msgid "Manual" -msgstr "" +msgstr "Manuale" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__res_model_field msgid "Model Name" -msgstr "" +msgstr "Nome modello" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__need_refresh msgid "Need Refresh" -msgstr "" +msgstr "Richiede aggiornamento" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__res_id msgid "Record ID" -msgstr "" +msgstr "ID record" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__redirect msgid "Redirect" -msgstr "" +msgstr "Reindirizzamento" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_abstract_url__redirect_url_key msgid "Redirect Url Keys" -msgstr "" +msgstr "Chiavi URL di reindirizzamento" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__referential msgid "Referential" -msgstr "" +msgstr "Sistema di riferimento" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_url_url__res_model msgid "Res Model" -msgstr "" +msgstr "Modello risorsa" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_abstract_url__smart_search #: model:ir.model.fields,field_description:base_url.field_url_url__smart_search msgid "Smart Search" -msgstr "" +msgstr "Ricerca intelligente" #. module: base_url #: model:ir.model,name:base_url.model_url_url #: model:ir.model.fields,field_description:base_url.field_abstract_url__url_ids msgid "Url" -msgstr "" +msgstr "URL" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_abstract_url__url_key msgid "Url Key" -msgstr "" +msgstr "Chiave URL" #. module: base_url #. odoo-python @@ -151,23 +153,28 @@ msgid "" "- Url Key: %(url_key)s\n" "- Url ID: %(url_id)s" msgstr "" +"La chiave URL esiste già in un altro modello\n" +"- Nome modello: %(model_name)s\n" +"- ID record: %(record_id)s\n" +"- Chiave URL: %(url_key)s\n" +"- ID URL: %(url_id)s" #. module: base_url #: model:ir.actions.act_window,name:base_url.base_url_action_view msgid "Url List" -msgstr "" +msgstr "Elenco URL" #. module: base_url #: model:ir.model.fields,field_description:base_url.field_abstract_url__url_need_refresh msgid "Url Need Refresh" -msgstr "" +msgstr "URL richiede aggiornamento" #. module: base_url #: model:ir.ui.menu,name:base_url.url_menu_view msgid "Url Rewrite" -msgstr "" +msgstr "Riscrittura URL" #. module: base_url #: model_terms:ir.ui.view,arch_db:base_url.url_view_form msgid "Url rewriting edit form" -msgstr "" +msgstr "Modulo modifica riscrittura URL" diff --git a/bus_alt_connection/README.rst b/bus_alt_connection/README.rst index d5db92c6810..83142060eaf 100644 --- a/bus_alt_connection/README.rst +++ b/bus_alt_connection/README.rst @@ -11,7 +11,7 @@ Bus Alt Connection !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:e0458188935ca92b81b73473e97a5da6da90fd7012e24e95ccd3272d4a224562 + !! source digest: sha256:e84df1b3e77e9ebcbc6ead54d38763ace22e5457f08e707ac9435bfee66eccd3 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -136,8 +136,8 @@ You need to define how to connect directly to the database: - Either by defining environment variables: - - ``IMDISPATCHER_DB_HOST=db-01`` - - ``IMDISPATCHER_DB_PORT=5432`` + - ``ODOO_IMDISPATCHER_DB_HOST=db-01`` + - ``ODOO_IMDISPATCHER_DB_PORT=5432`` - Or in Odoo's configuration file: diff --git a/bus_alt_connection/__manifest__.py b/bus_alt_connection/__manifest__.py index a04b601e6a0..3e234e9d1d4 100644 --- a/bus_alt_connection/__manifest__.py +++ b/bus_alt_connection/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Bus Alt Connection", "summary": "Needed when using PgBouncer as a connection pooler", - "version": "18.0.1.0.0", + "version": "18.0.1.0.1", "author": "Trobz,Odoo Community Association (OCA)", "website": "https://github.com/OCA/server-tools", "category": "Extra Tools", diff --git a/bus_alt_connection/readme/CONFIGURE.md b/bus_alt_connection/readme/CONFIGURE.md index 06479bff9af..572ffb3c211 100644 --- a/bus_alt_connection/readme/CONFIGURE.md +++ b/bus_alt_connection/readme/CONFIGURE.md @@ -2,8 +2,8 @@ You need to define how to connect directly to the database: - Either by defining environment variables: - > - `IMDISPATCHER_DB_HOST=db-01` - > - `IMDISPATCHER_DB_PORT=5432` + > - `ODOO_IMDISPATCHER_DB_HOST=db-01` + > - `ODOO_IMDISPATCHER_DB_PORT=5432` - Or in Odoo's configuration file: diff --git a/bus_alt_connection/static/description/index.html b/bus_alt_connection/static/description/index.html index 071e88eaad2..484772362bd 100644 --- a/bus_alt_connection/static/description/index.html +++ b/bus_alt_connection/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Bus Alt Connection