[extra-addons-trunk] product_image_olbs : duplicate product crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Won't Fix
|
Undecided
|
Alexandre Fayolle - camptocamp |
Bug Description
I get the following error when trying to duplicate a product with linked images:
2012-06-26 13:10:10,424 4812 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/srv/openerp/
return f(self, dbname, *args, **kwargs)
File "/srv/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/srv/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/srv/openerp/
result = self._read_flat(cr, user, select, fields, context, load)
File "/srv/openerp/
res2 = self._columns[
File "/srv/openerp/
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/srv/openerp/
res[id] = image.file
File "/srv/openerp/
return self[name]
File "/srv/openerp/
field_values = self._table.
File "/srv/openerp/
result = self._read_flat(cr, user, select, fields, context, load)
File "/srv/openerp/
res2 = self._columns[
File "/srv/openerp/
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/srv/openerp/
res[each] = self.get_image(cr, uid, each, context=context)
File "/srv/openerp/
full_path = self._image_
File "/srv/openerp/
'%s%s' % (image.name or '', image.extention or ''))
File "/usr/lib/
if b.startswith('/'):
AttributeError: 'bool' object has no attribute 'startswith'
This is caused by the new product having False as default_code.
Related branches
- Guewen Baconnier @ Camptocamp: Approve
- Yannick Vaucher @ Camptocamp (community): Approve
- Alexandre Fayolle - camptocamp: Pending requested
-
Diff: 108 lines (+33/-10)2 files modifiedproduct_images_olbs/product.py (+24/-9)
product_images_olbs/product_images.py (+9/-1)
- Sébastien BEAU - http://www.akretion.com: Pending requested
- Guewen Baconnier @ Camptocamp: Pending requested
- Nicolas Bessi - Camptocamp: Pending requested
- Raphaël Valyi - http://www.akretion.com: Pending requested
-
Diff: 129 lines (+36/-14)2 files modifiedproduct_images_olbs/product.py (+21/-7)
product_images_olbs/product_images.py (+15/-7)
summary: |
- [extra-addons] product_image_olbs : duplicate product crash + [extra-addons-trunk] product_image_olbs : duplicate product crash |
Hello Alexandre Fayolle,
This module is part of the extra-addons, which are maintained by the community, including all the modules created by "OpenERP" or "Tiny", as none of these are actively developed by our teams anymore.
If you or anyone from the community would like to work on it, please mark the bug as "In progress" and assign it to yourself (or ask us or anyone from OpenERP Drivers to do it for you). In the mean time, we will mark it as "Won't fix" to indicate that no further progress is expected at the moment.
For more detail you can contact related author.
Thank you!