From e3eb4288e30d06569420c204ad38e2ec5e858b58 Mon Sep 17 00:00:00 2001 From: Pablo Montenegro Date: Tue, 28 May 2024 21:04:50 +0000 Subject: [PATCH] [FIX] l10n_ar_sale: error al hacer vista previa de pedido de venta closes ingadhoc/argentina-sale#180 Ticket: 75538 Signed-off-by: Filoquin adhoc --- l10n_ar_sale/__manifest__.py | 2 +- l10n_ar_sale/models/sale_order.py | 7 +++++++ l10n_ar_sale/views/sale_report_templates.xml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/l10n_ar_sale/__manifest__.py b/l10n_ar_sale/__manifest__.py index 52c4135..aae1815 100644 --- a/l10n_ar_sale/__manifest__.py +++ b/l10n_ar_sale/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Argentinian Sale Total Fields', - 'version': "16.0.1.7.0", + 'version': "16.0.1.8.0", 'category': 'Localization/Argentina', 'sequence': 14, 'author': 'ADHOC SA', diff --git a/l10n_ar_sale/models/sale_order.py b/l10n_ar_sale/models/sale_order.py index 91e5662..e04c887 100644 --- a/l10n_ar_sale/models/sale_order.py +++ b/l10n_ar_sale/models/sale_order.py @@ -117,3 +117,10 @@ def _create_invoices(self, grouped=False, final=False, date=None): to_fix = invoices.filtered(lambda x: x.l10n_latam_use_documents and not x.l10n_latam_document_type_id) to_fix._compute_l10n_latam_available_document_types() return invoices + + def is_module_installed(self, module): + module_installed = self.env['ir.module.module'].search([ + ('name', '=', module), + ('state', '=', 'installed'), + ]) + return True if module_installed else False diff --git a/l10n_ar_sale/views/sale_report_templates.xml b/l10n_ar_sale/views/sale_report_templates.xml index a8423e9..d2ab531 100644 --- a/l10n_ar_sale/views/sale_report_templates.xml +++ b/l10n_ar_sale/views/sale_report_templates.xml @@ -145,7 +145,7 @@ - +
Incoterm: