[FIX]GOLEM Family Membership : ensure customer views, not supplier on invoices
This commit is contained in:
parent
78238bd562
commit
3bdc141dad
@ -20,7 +20,7 @@
|
||||
'name': 'GOLEM Family Memberships',
|
||||
'summary': 'GOLEM Family Membership Management',
|
||||
'description': 'GOLEM Family Membership Management',
|
||||
'version': '10.0.0.1.3',
|
||||
'version': '10.0.0.1.4',
|
||||
'category': 'GOLEM',
|
||||
'author': 'Fabien Bourgeois, Youssef ELOUAHBY',
|
||||
'license': 'AGPL-3',
|
||||
|
@ -79,6 +79,7 @@ class GolemMembershipInvoice(models.TransientModel):
|
||||
|
||||
search_view_id = self.env.ref('account.view_account_invoice_filter')
|
||||
form_view_id = self.env.ref('account.invoice_form')
|
||||
tree_view_ref = self.env.ref('account.invoice_tree', False)
|
||||
return {
|
||||
'domain': [('id', 'in', invoice_list)],
|
||||
'name': 'Membership Invoices',
|
||||
@ -86,6 +87,6 @@ class GolemMembershipInvoice(models.TransientModel):
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'account.invoice',
|
||||
'type': 'ir.actions.act_window',
|
||||
'views': [(False, 'tree'), (form_view_id.id, 'form')],
|
||||
'views': [(tree_view_ref.id, 'tree'), (form_view_id.id, 'form')],
|
||||
'search_view_id': search_view_id.id
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user