This commit is contained in:
2026-03-04 16:34:25 +01:00
parent 8eba77b26c
commit 3226f55a7d

View File

@@ -2314,7 +2314,21 @@ class SaleReport(CompanyReport):
context['today'] = Date.today()
return context
@classmethod
def get_template(cls):
Company = Pool().get('company.company')
company_id = Transaction().context.get('company')
if not company_id:
return super().get_template()
company = Company(company_id)
if company.party.name == 'MELYA':
return 'sale/sale_melya.fodt'
return super().get_template()
class OpenCustomer(Wizard):
'Open Customers'
__name__ = 'sale.open_customer'