From e85ddb684276b057c6f8a72a8d48027848595bba Mon Sep 17 00:00:00 2001 From: Abraham Anes Date: Tue, 6 Jun 2023 12:38:05 +0200 Subject: [PATCH] [16.0][MIG] account_move_template: Migration to 16.0 --- account_move_template/README.rst | 24 ++++---- account_move_template/__manifest__.py | 2 +- .../models/account_move_template.py | 5 +- account_move_template/readme/CONTRIBUTORS.rst | 1 + .../static/description/index.html | 13 +++-- .../tests/test_account_move_template.py | 9 +-- .../test_account_move_template_options.py | 55 ++++++++++--------- .../view/account_move_template.xml | 32 +++-------- .../wizard/account_move_template_run.py | 13 ++--- .../wizard/account_move_template_run_view.xml | 28 ++-------- 10 files changed, 71 insertions(+), 111 deletions(-) diff --git a/account_move_template/README.rst b/account_move_template/README.rst index 49c78488..f9a03a41 100644 --- a/account_move_template/README.rst +++ b/account_move_template/README.rst @@ -2,10 +2,13 @@ Account Move Template ===================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:20cc4f7ed2bc199b6b560d11a525972060b3a3c13d37bc666eefdd711683e412 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -14,16 +17,16 @@ Account Move Template :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-tools/tree/15.0/account_move_template + :target: https://github.com/OCA/account-financial-tools/tree/16.0/account_move_template :alt: OCA/account-financial-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-tools-15-0/account-financial-tools-15-0-account_move_template + :target: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_move_template :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/92/15.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=16.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| The user can configure journal entries templates, useful for recurring entries. The amount of each template line can be computed (through python code) @@ -82,8 +85,8 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +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. @@ -128,6 +131,7 @@ Module Contributors * `Ecosoft `_: * Kitti U. (Add context overwrite) +* Abraham Anes Maintainers ~~~~~~~~~~~ @@ -142,6 +146,6 @@ 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/account-financial-tools `_ project on GitHub. +This module is part of the `OCA/account-financial-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_move_template/__manifest__.py b/account_move_template/__manifest__.py index 69b60865..7794b8b8 100644 --- a/account_move_template/__manifest__.py +++ b/account_move_template/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Account Move Template", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "Accounting", "summary": "Templates for recurring Journal Entries", "author": "Agile Business Group, Aurium Technologies, Vauxoo, ForgeFlow, " diff --git a/account_move_template/models/account_move_template.py b/account_move_template/models/account_move_template.py index c12cbaff..1f078c4b 100644 --- a/account_move_template/models/account_move_template.py +++ b/account_move_template/models/account_move_template.py @@ -123,10 +123,7 @@ class AccountMoveTemplateLine(models.Model): string="Partner", domain=["|", ("parent_id", "=", False), ("is_company", "=", True)], ) - analytic_account_id = fields.Many2one( - "account.analytic.account", string="Analytic Account" - ) - analytic_tag_ids = fields.Many2many("account.analytic.tag", string="Analytic Tags") + analytic_distribution = fields.Json(string="New Analytic Distribution") tax_ids = fields.Many2many("account.tax", string="Taxes") tax_line_id = fields.Many2one( "account.tax", string="Originator Tax", ondelete="restrict" diff --git a/account_move_template/readme/CONTRIBUTORS.rst b/account_move_template/readme/CONTRIBUTORS.rst index 36f1f3ae..6d9a3677 100644 --- a/account_move_template/readme/CONTRIBUTORS.rst +++ b/account_move_template/readme/CONTRIBUTORS.rst @@ -24,3 +24,4 @@ Module Contributors * `Ecosoft `_: * Kitti U. (Add context overwrite) +* Abraham Anes diff --git a/account_move_template/static/description/index.html b/account_move_template/static/description/index.html index 9ba397c8..6aacff6c 100644 --- a/account_move_template/static/description/index.html +++ b/account_move_template/static/description/index.html @@ -3,7 +3,7 @@ - + Account Move Template