← Back to team overview

openerp-community team mailing list archive

lp:~openerp-community/openobject-addons/fix-1100271-membership-invoice-form-view into lp:openobject-addons/7.0

 

Niels Huylebroeck has proposed merging lp:~openerp-community/openobject-addons/fix-1100271-membership-invoice-form-view into lp:openobject-addons/7.0.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1100271 in OpenERP Addons: "membership opened invoice view uses supplier view"
  https://bugs.launchpad.net/openobject-addons/+bug/1100271

For more details, see:
https://code.launchpad.net/~openerp-community/openobject-addons/fix-1100271-membership-invoice-form-view/+merge/143504
-- 
https://code.launchpad.net/~openerp-community/openobject-addons/fix-1100271-membership-invoice-form-view/+merge/143504
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-addons/fix-1100271-membership-invoice-form-view.
=== modified file 'membership/wizard/membership_invoice.py'
--- membership/wizard/membership_invoice.py	2012-12-17 15:23:03 +0000
+++ membership/wizard/membership_invoice.py	2013-01-16 13:39:32 +0000
@@ -54,7 +54,8 @@
         invoice_list = partner_obj.create_membership_invoice(cr, uid, context.get('active_ids', []), datas=datas, context=context)
         
         res = mod_obj.get_object_reference(cr, uid, 'account', 'view_account_invoice_filter')
-        
+        form_view_id = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_form')
+
         return  {
             'domain': [('id', 'in', invoice_list)],
             'name': 'Membership Invoices',
@@ -62,6 +63,7 @@
             'view_mode': 'tree,form',
             'res_model': 'account.invoice',
             'type': 'ir.actions.act_window',
+            'views': [(False, 'tree'), (form_view_id and form_view_id[1] or False, 'form')],
             'search_view_id': res and res[1] or False
         }
 


Follow ups