[6.1]Misbehaviour on binary field (widget=image) on on_change method in one2many widget
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) | Status tracked in Trunk | |||||
6.1 |
Confirmed
|
Medium
|
OpenERP Publisher's Warranty Team | |||
Trunk |
Invalid
|
Medium
|
Unassigned |
Bug Description
Hello OpenERP,
I have added a binary field with widget='image' in one 2 many form view.
while adding image using onchange on product_id i am not getting value in binary widget using on_change.
I manage to do this using attached patch.
My patch will show the image from on_change on product but It will not getting saved.
I tried to select image manually on binary field but still its not getting saved.
The problem seems in buffer storage of one2many field.
Here is the traceback I am getting while saving the o2m record.
2012-05-05 07:34:41,992 10197 ERROR ? openerp.
Traceback (most recent call last):
File "/home/
r = method(controller, self, **self.params)
File "/home/
res = Model.read(
ValueError: invalid literal for int() with base 10: 'one2many_v_id_419'
2012-05-05 07:34:41,994 10197 INFO ? werkzeug: 127.0.0.1 - - [05/May/2012 07:34:41] "GET /web/binary/
Regards,
Husen.
Changed in openerp-web: | |
importance: | Low → Medium |
Changed in openerp-web: | |
status: | Confirmed → Invalid |
Changed in openerp-web: | |
status: | Invalid → New |
tags: |
added: maintenance removed: image openerp web widget |
Hello Husen,
I did try all steps as you reported with under one2many list, widget="image" on product_id_change (product_id_change) and return the image (binary) field with latest trunk as well as stable6.1 at my end. But I have faced the problem on only 6.1.
I have attached the video for both trunk and 6.1 which is described that problem appears only on 6.1. I have faced two misbehaviour on 6.1 which is:
1) When product_id change (on_change) called binary field 's value doesn't set. But when the parent record is saved then after we can see it(binary field 's value) on one2many list.
2) When I tried to set binary field 's value manually then again I have faced similar kind of issue. After the on2many list's save this field 's values doesn't set again, and we have to save main (parent) record.
But I didn't faced any traceback at my end, I have attached the code which I applied to check this issue (which will more helpful to reproduce again). And this problem only appears on 6.1 stable version that's why I am assigning this to OPW team also it's not a blocking point, So set it as a "Low".
Please see attached video which shows more clearly.
Cheers!