Bharat Devnani (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-817361-bde into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #817361 in OpenERP Addons: "[Trunk] Sale: Grouping Invocie for multiple
sale order does not create customer invoice"
https://bugs.launchpad.net/openobject-addons/+bug/817361
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-817361-bde/+merge/69982
Hello Sir,
I have changed the make_invoices method inorder to open customer invoices form
when merging/grouping two or more invoices.
Thanks & Regards,
Devnani Bharat R.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-817361-bde/+merge/69982
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-817361-bde.
=== modified file 'sale/wizard/sale_make_invoice.py'
--- sale/wizard/sale_make_invoice.py 2011-01-14 00:11:01 +0000
+++ sale/wizard/sale_make_invoice.py 2011-08-01 10:47:25 +0000
@@ -58,18 +58,18 @@
for i in o.invoice_ids:
newinv.append(i.id)
- res = mod_obj.get_object_reference(cr, uid, 'account', 'view_account_invoice_filter')
+ res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_form')
+ res_id = res and res[1] or False,
return {
- 'domain': "[('id','in', ["+','.join(map(str,newinv))+"])]",
- 'name': 'Invoices',
+ 'name': _('Customer Invoices'),
'view_type': 'form',
'view_mode': 'tree,form',
+ 'view_id': [res_id],
'res_model': 'account.invoice',
- 'view_id': False,
- 'context': "{'type': 'out_refund'}",
+ 'context': "{'type': 'out_invoice'}",
'type': 'ir.actions.act_window',
- 'search_view_id': res and res[1] or False
+ 'res_id': newinv and newinv[0] or False,
}
sale_make_invoice()
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp