openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #02934
lp:~akretion-team/openerp-product-attributes/fix-create-attribute-group into lp:openerp-product-attributes
arthru has proposed merging lp:~akretion-team/openerp-product-attributes/fix-create-attribute-group 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/fix-create-attribute-group/+merge/178991
Fix for https://launchpad.net/bugs/1209262
--
https://code.launchpad.net/~akretion-team/openerp-product-attributes/fix-create-attribute-group/+merge/178991
Your team OpenERP Community is subscribed to branch lp:openerp-product-attributes.
=== modified file 'base_custom_attributes/custom_attributes.py'
--- base_custom_attributes/custom_attributes.py 2013-06-18 16:17:27 +0000
+++ base_custom_attributes/custom_attributes.py 2013-08-07 14:44:30 +0000
@@ -271,7 +271,7 @@
}
def create(self, cr, uid, vals, context=None):
- for attribute in vals['attribute_ids']:
+ for attribute in vals.get('attribute_ids', []):
if vals.get('attribute_set_id') and attribute[2] and not attribute[2].get('attribute_set_id'):
attribute[2]['attribute_set_id'] = vals['attribute_set_id']
return super(attribute_group, self).create(cr, uid, vals, context)
Follow ups