04.03.26
This commit is contained in:
@@ -2315,19 +2315,17 @@ class SaleReport(CompanyReport):
|
|||||||
return context
|
return context
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_template(cls):
|
def get_report(cls):
|
||||||
Company = Pool().get('company.company')
|
Company = Pool().get('company.company')
|
||||||
company_id = Transaction().context.get('company')
|
company_id = Transaction().context.get('company')
|
||||||
logger.info("GET_TEMPLATE:%s",company_id)
|
logger.info("GET_REPORT:%s",company_id)
|
||||||
if not company_id:
|
if company_id:
|
||||||
return super().get_template()
|
company = Company(company_id)
|
||||||
|
logger.info("GET_REPORT_NAME:%s",company.party.name)
|
||||||
|
if company.party.name == 'MELYA':
|
||||||
|
return 'sale/sale_melya.fodt'
|
||||||
|
|
||||||
company = Company(company_id)
|
return super().get_report()
|
||||||
logger.info("GET_TEMPLATE_NAME:%s",company.party.name)
|
|
||||||
if company.party.name == 'MELYA':
|
|
||||||
return 'sale/sale_melya.fodt'
|
|
||||||
|
|
||||||
return super().get_template()
|
|
||||||
|
|
||||||
class OpenCustomer(Wizard):
|
class OpenCustomer(Wizard):
|
||||||
'Open Customers'
|
'Open Customers'
|
||||||
|
|||||||
Reference in New Issue
Block a user