Browse Source

[FIX]GOLEM Family Membership : ensure customer views, not supplier on invoices

pull/43/head
Fabien BOURGEOIS 2 years ago
parent
commit
3bdc141dad
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      golem_family_membership/__manifest__.py
  2. +2
    -1
      golem_family_membership/wizard/golem_membership_invoice.py

+ 1
- 1
golem_family_membership/__manifest__.py View File

@ -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',


+ 2
- 1
golem_family_membership/wizard/golem_membership_invoice.py View File

@ -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…
Cancel
Save