Browse Source

[MIG] add _get_report_base_filename method

pull/52/head
houssine 5 years ago
parent
commit
fe740722eb
  1. 8
      easy_my_coop/models/partner.py

8
easy_my_coop/models/partner.py

@ -10,6 +10,14 @@ from odoo import api, fields, models
class ResPartner(models.Model):
_inherit = 'res.partner'
@api.multi
def _get_report_base_filename(self):
self.ensure_one()
if self.member:
return "Cooperator Certificate - %s" % self.name
else:
return 'unknow'
@api.multi
def _invoice_total(self):
account_invoice_report = self.env['account.invoice.report']

Loading…
Cancel
Save