openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #02858
lp:~akretion-team/openerp-product-attributes/avoid-to-raise-when-no-custom-attributes into lp:openerp-product-attributes
arthru has proposed merging lp:~akretion-team/openerp-product-attributes/avoid-to-raise-when-no-custom-attributes into lp:openerp-product-attributes.
Requested reviews:
Product Core Editors (product-core-editors)
For more details, see:
https://code.launchpad.net/~akretion-team/openerp-product-attributes/avoid-to-raise-when-no-custom-attributes/+merge/173897
--
https://code.launchpad.net/~akretion-team/openerp-product-attributes/avoid-to-raise-when-no-custom-attributes/+merge/173897
Your team OpenERP Community is subscribed to branch lp:openerp-product-attributes.
=== modified file 'product_custom_attributes/product.py'
--- product_custom_attributes/product.py 2013-06-15 20:14:22 +0000
+++ product_custom_attributes/product.py 2013-07-10 09:59:26 +0000
@@ -36,9 +36,9 @@
set_id = self.read(cr, uid, [i], fields=['attribute_set_id'],
context=context)[0]['attribute_set_id']
if not set_id:
- raise except_osv(_('User Error'), _('Please choose \
- an attribute set before opening the product attributes'))
- res[i] = self.pool.get('attribute.group').search(cr, uid,
+ res[i] = []
+ else:
+ res[i] = self.pool.get('attribute.group').search(cr, uid,
[('attribute_set_id', '=', set_id[0])])
return res
Follow ups