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