This commit is contained in:
2026-03-04 16:54:32 +01:00
parent 8a4d730c5a
commit 94595346b7

View File

@@ -2317,13 +2317,13 @@ class SaleReport(CompanyReport):
@classmethod
def get_template(cls):
Company = Pool().get('company.company')
company_id = Transaction().context.get('company')
logger.info("GET_TEMPLATE:%s",company_id)
if not company_id:
return super().get_template()
company = Company(company_id)
logger.info("GET_TEMPLATE_NAME:%s",company.party.name)
if company.party.name == 'MELYA':
return 'sale/sale_melya.fodt'