From cb2a21c852ebcdd8b8c84e8aa0458a4baf98e898 Mon Sep 17 00:00:00 2001 From: michelerusti Date: Mon, 3 Oct 2022 16:13:12 +0200 Subject: [PATCH] [14.0][FIX] - l10n_it_fatturapa - get the correct preview style --- l10n_it_fatturapa/models/ir_attachment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_it_fatturapa/models/ir_attachment.py b/l10n_it_fatturapa/models/ir_attachment.py index b1ee8959d1c5..e3d7aca63065 100644 --- a/l10n_it_fatturapa/models/ir_attachment.py +++ b/l10n_it_fatturapa/models/ir_attachment.py @@ -107,7 +107,7 @@ def get_fattura_elettronica_preview(self): xsl_path = get_resource_path( "l10n_it_fatturapa", "data", - self.env.company.fatturapa_preview_style, + self.company_id.fatturapa_preview_style, ) xslt = ET.parse(xsl_path) xml_string = self.get_xml_string()