From ec5ec0ee0d5534f502d010e0e3329bcde1c87b71 Mon Sep 17 00:00:00 2001 From: Andrea Gidalti Date: Thu, 5 Oct 2023 00:26:15 +0000 Subject: [PATCH] [MIG] account_move_template: Migration to 17.0 - Fix new lints. - Simplify the way to define modifiers as states, required, readonly, invisible and column_invisible as part of [1]. [1] https://github.com/odoo/odoo/pull/104741 --- account_move_template/__manifest__.py | 4 +-- .../tests/test_account_move_template.py | 2 +- .../view/account_move_template.xml | 15 +++++------ .../wizard/account_move_template_run.py | 2 +- .../wizard/account_move_template_run_view.xml | 25 ++++++++----------- 5 files changed, 23 insertions(+), 25 deletions(-) diff --git a/account_move_template/__manifest__.py b/account_move_template/__manifest__.py index 7794b8b8a..2a3452fd0 100644 --- a/account_move_template/__manifest__.py +++ b/account_move_template/__manifest__.py @@ -5,8 +5,8 @@ { "name": "Account Move Template", - "version": "16.0.1.0.0", - "category": "Accounting", + "version": "17.0.1.0.0", + "category": "Accounting/Accounting", "summary": "Templates for recurring Journal Entries", "author": "Agile Business Group, Aurium Technologies, Vauxoo, ForgeFlow, " "Akretion, Odoo Community Association (OCA)", diff --git a/account_move_template/tests/test_account_move_template.py b/account_move_template/tests/test_account_move_template.py index 9025f441f..a248e6a9c 100644 --- a/account_move_template/tests/test_account_move_template.py +++ b/account_move_template/tests/test_account_move_template.py @@ -37,7 +37,7 @@ class TestAccountMoveTemplate(TransactionCase): return True def setUp(self): - super(TestAccountMoveTemplate, self).setUp() + super().setUp() employees_group = self.env.ref("base.group_user") multi_company_group = self.env.ref("base.group_multi_company") account_user_group = self.env.ref("account.group_account_user") diff --git a/account_move_template/view/account_move_template.xml b/account_move_template/view/account_move_template.xml index 9302a6b63..dd640cec0 100644 --- a/account_move_template/view/account_move_template.xml +++ b/account_move_template/view/account_move_template.xml @@ -18,15 +18,15 @@ - + - - + + @@ -55,7 +55,7 @@ @@ -69,7 +69,7 @@

You can refer to other lines using their sequence number e.g. @@ -109,7 +110,7 @@ name="web_ribbon" title="Archived" bg_color="bg-danger" - attrs="{'invisible': [('active', '=', True)]}" + invisible="active" />