@ -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'
def _invoice_total(self):
account_invoice_report = self.env['account.invoice.report']