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