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: