Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1017365-mma into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1017365 in OpenERP Addons: "can't open Sales Order Lines from product
form view "
https://bugs.launchpad.net/openobject-addons/+bug/1017365
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1017365-mma/+merge/111807
Hello Sir ,
product:I have fix the issue to open Sales Order Lines from product
form view and pass appropriate ids in name_get
Thanks.
Mayur
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1017365-mma/+merge/111807
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1017365-mma.
=== modified file 'product/product.py'
--- product/product.py 2012-05-28 13:13:57 +0000
+++ product/product.py 2012-06-25 10:09:20 +0000
@@ -571,8 +571,11 @@
def name_get(self, cr, user, ids, context=None):
if context is None:
context = {}
- if not len(ids):
+ if not ids:
return []
+ if isinstance(ids, (int)):
+ ids = [ids]
+
def _name_get(d):
name = d.get('name','')
code = d.get('default_code',False)
_______________________________________________
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