From a75e86007d7a37b6aefefa8816c9fcd9fef2b5c5 Mon Sep 17 00:00:00 2001 From: bobrador Date: Thu, 5 Sep 2024 09:40:30 +0200 Subject: [PATCH] [MIG] analytic_partner: Migration to 17.0 --- analytic_partner/README.rst | 3 +++ analytic_partner/__manifest__.py | 2 +- analytic_partner/readme/CONTRIBUTORS.md | 2 ++ analytic_partner/static/description/index.html | 4 ++++ analytic_partner/tests/test_analytic_partner.py | 4 +--- analytic_partner/views/res_partner_views.xml | 5 +++-- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/analytic_partner/README.rst b/analytic_partner/README.rst index 8007359c02..2a4135bc1d 100644 --- a/analytic_partner/README.rst +++ b/analytic_partner/README.rst @@ -140,6 +140,9 @@ Contributors - Pimolnat Suntian - Daniel Reis +- `APSL-Nagarro `__: + + - Bernat Obrador Maintainers ----------- diff --git a/analytic_partner/__manifest__.py b/analytic_partner/__manifest__.py index 35567164bb..7063e1c36c 100644 --- a/analytic_partner/__manifest__.py +++ b/analytic_partner/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Link analytic items and partner", "summary": "Search and group analytic entries by partner", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "category": "Analytic Accounting", "website": "https://github.com/OCA/account-analytic", "author": "Tecnativa," "Odoo Community Association (OCA)", diff --git a/analytic_partner/readme/CONTRIBUTORS.md b/analytic_partner/readme/CONTRIBUTORS.md index 5a1f36985f..0a1444f2cf 100644 --- a/analytic_partner/readme/CONTRIBUTORS.md +++ b/analytic_partner/readme/CONTRIBUTORS.md @@ -7,3 +7,5 @@ - [Ecosoft](https://ecosoft.co.th/): - Pimolnat Suntian \<\> - Daniel Reis \<\> +- [APSL-Nagarro](): + - Bernat Obrador \<\> diff --git a/analytic_partner/static/description/index.html b/analytic_partner/static/description/index.html index cd9012a9f3..8b34d8b064 100644 --- a/analytic_partner/static/description/index.html +++ b/analytic_partner/static/description/index.html @@ -493,6 +493,10 @@

Contributors

  • Daniel Reis <dreis@opensourceintegrators.com>
  • +
  • APSL-Nagarro: +
  • diff --git a/analytic_partner/tests/test_analytic_partner.py b/analytic_partner/tests/test_analytic_partner.py index fde42c4662..25634046e2 100644 --- a/analytic_partner/tests/test_analytic_partner.py +++ b/analytic_partner/tests/test_analytic_partner.py @@ -17,9 +17,7 @@ def setUpClass(cls): cls.account = cls.env["account.account"].create( {"name": "Test account", "code": "TEST", "account_type": "expense"} ) - cls.default_plan = cls.env["account.analytic.plan"].create( - {"name": "Default", "company_id": False} - ) + cls.default_plan = cls.env["account.analytic.plan"].create({"name": "Default"}) cls.analytic_account = cls.env["account.analytic.account"].create( {"name": "Test Analytic Account", "plan_id": cls.default_plan.id} ) diff --git a/analytic_partner/views/res_partner_views.xml b/analytic_partner/views/res_partner_views.xml index 0172a9d860..d2dea4f8e3 100644 --- a/analytic_partner/views/res_partner_views.xml +++ b/analytic_partner/views/res_partner_views.xml @@ -1,8 +1,9 @@ - {'search_default_group_date': 1} - [('other_partner_id', 'child_of', active_id)] + {'search_default_group_date': 1, 'search_default_filter_domain': "[('other_partner_id', 'child_of', 'id')]"} Costs & Revenues account.analytic.line tree,form