From eb1cecdce1b07bff6a4770609febc186b28cd03a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Garc=C3=ADa?= <alvarogruiz8@gmail.com> Date: Thu, 6 Mar 2025 15:15:39 +0100 Subject: [PATCH] =?UTF-8?q?[FIX]=20=F0=9F=90=9B=20fix=20action=20services?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Author: Alvaro Garcia <alvaro.garcia@somit.coop> --- .../views/service_invoicing_views.xml | 2 +- .../wizards/service_invoicing_action_create.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/energy_communities_service_invoicing/views/service_invoicing_views.xml b/energy_communities_service_invoicing/views/service_invoicing_views.xml index 52ce9ab42..a40d20f15 100644 --- a/energy_communities_service_invoicing/views/service_invoicing_views.xml +++ b/energy_communities_service_invoicing/views/service_invoicing_views.xml @@ -48,7 +48,7 @@ <field name="name">Packs contract templates</field> <field name="res_model">contract.template</field> <field name="view_mode">tree,form</field> - <field name="domain">[(pack_type, '=', 'platform_pack')]</field> + <field name="domain">[('pack_type', '=', 'platform_pack')]</field> </record> <record diff --git a/energy_communities_service_invoicing/wizards/service_invoicing_action_create.py b/energy_communities_service_invoicing/wizards/service_invoicing_action_create.py index 1258fdd77..fd06a8e04 100644 --- a/energy_communities_service_invoicing/wizards/service_invoicing_action_create.py +++ b/energy_communities_service_invoicing/wizards/service_invoicing_action_create.py @@ -86,7 +86,7 @@ class ServiceInvoicingActionCreateWizard(models.TransientModel): @api.onchange("company_id") def _compute_service_invoicing_action_create_wizard_allowed_values(self): for record in self: - record._compute_pack_product_categ_id() + record._compute_platform_pack_product_categ_id() record._compute_allowed_community_company_ids() record._compute_allowed_payment_mode_ids() -- GitLab