ValueError when copying a product with custom attributes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Product Attributes |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When copying a product that have custom attributes, openerp tries to also copy its group leading to this stack :
Uncaught exception
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
context=
File "/home/
return super(product_
File "/home/
return super(product_
File "/home/
return super(product_
File "/home/
context=
File "/home/
return super(mail_thread, self).copy(cr, uid, id, default=default, context=context)
File "/home/
self.
File "/home/
target_
File "/home/
target_
File "/home/
old_record, new_record = self.read(cr, uid, [old_id, new_id], [field_name], context=context)
ValueError: need more than 1 value to unpack
Related branches
- Guewen Baconnier @ Camptocamp: Approve (code review)
- Pedro Manuel Baeza: Approve (code review, no test)
- Raphaël Valyi - http://www.akretion.com: Approve
- Quentin THEURET @Amaris (community): Approve (no functional test)
-
Diff: 11 lines (+1/-1)1 file modifiedproduct_custom_attributes/product.py (+1/-1)
Merged Arthur Vuillard's correction in : bazaar. launchpad. net/~product- core-editors/ openerp- product- attributes/ 7.0/revision/ 213