04.03.26
This commit is contained in:
@@ -2314,7 +2314,21 @@ class SaleReport(CompanyReport):
|
|||||||
context['today'] = Date.today()
|
context['today'] = Date.today()
|
||||||
return context
|
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):
|
class OpenCustomer(Wizard):
|
||||||
'Open Customers'
|
'Open Customers'
|
||||||
__name__ = 'sale.open_customer'
|
__name__ = 'sale.open_customer'
|
||||||
|
|||||||
Reference in New Issue
Block a user