forked from Yaltik/golem
open_partner_invoices
This commit is contained in:
parent
4d01b8d074
commit
293109fe3c
@ -221,13 +221,13 @@ class GolemMember(models.Model):
|
||||
|
||||
@api.multi
|
||||
def open_partner_invoices(self):
|
||||
""" Go to member form """
|
||||
""" Open invoices member """
|
||||
self.ensure_one()
|
||||
if self[0].member_id:
|
||||
return {'type': 'ir.actions.act_window',
|
||||
'res_model': 'account.invoice',
|
||||
'view_mode': 'tree',
|
||||
'res_id': self[0].member_id.id}
|
||||
'context': 'default_partner_id',
|
||||
'res_id': self.partner_id}
|
||||
|
||||
|
||||
class GolemMemberNumber(models.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user