From 9bdbe2cc6e6bc96bd2f034c01dd85125c7d61b7e Mon Sep 17 00:00:00 2001 From: ThiagoMForgeFlow Date: Wed, 11 Oct 2023 10:39:24 +0200 Subject: [PATCH] [13.0][IMP] purchase_analytic: avoid override context in views inherited --- purchase_analytic/__manifest__.py | 2 +- purchase_analytic/views/purchase_views.xml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/purchase_analytic/__manifest__.py b/purchase_analytic/__manifest__.py index b064cab0f6..29f06e81e5 100644 --- a/purchase_analytic/__manifest__.py +++ b/purchase_analytic/__manifest__.py @@ -7,7 +7,7 @@ "author": "Acsone SA/NV, Odoo Community Association (OCA)", "category": "Purchase Management", "website": "https://github.com/OCA/account-analytic", - "depends": ["purchase"], + "depends": ["purchase", "base_view_inheritance_extension"], "data": ["views/purchase_views.xml"], "license": "AGPL-3", "installable": True, diff --git a/purchase_analytic/views/purchase_views.xml b/purchase_analytic/views/purchase_views.xml index de377401f3..76559f1df9 100644 --- a/purchase_analytic/views/purchase_views.xml +++ b/purchase_analytic/views/purchase_views.xml @@ -36,9 +36,11 @@ /> - {'default_account_analytic_id': project_id} + + { + "default_account_analytic_id": project_id, + } +