c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #02543
[Bug 670353] Re: 5.0.14 widget='image' problem
** Description changed:
I want to add a field in to product
PY file :
from osv import osv, fields
class product_product(osv.osv):
_name = 'product.product'
_inherit = 'product.product'
_description = 'Product'
_columns = { 'pic':fields.binary('Pic'),
}
product_product()
XML file:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="product_img_view" model="ir.ui.view">
<field name="name">product.normal.form</field>
<field name="model">product.product</field>
<field name="type">form</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="name" position="before">
<field name="pic" widget="image" nolabel="1" img_width="300" img_height="300"/>
</field>
</field>
</record>
</data>
</openerp>
1.in GTK client work
2.in FireFox ,the 'pic' field disappear
3.in IE8.0,the 'pic' appear,but when I upload the picture it`s error
ERROR MESSAGE:
<type 'exceptions.ValueError'>: invalid literal for int() with base 10: ''
args = ("invalid literal for int() with base 10: ''",)
message = "invalid literal for int() with base 10: ''"
+
+
+ This error will happen when you create a new product in web Client. iF you just modify it it`s no problem
** Tags added: image webclient
--
5.0.14 widget='image' problem
https://bugs.launchpad.net/bugs/670353
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Web Client: New
Bug description:
I want to add a field in to product
PY file :
from osv import osv, fields
class product_product(osv.osv):
_name = 'product.product'
_inherit = 'product.product'
_description = 'Product'
_columns = { 'pic':fields.binary('Pic'),
}
product_product()
XML file:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="product_img_view" model="ir.ui.view">
<field name="name">product.normal.form</field>
<field name="model">product.product</field>
<field name="type">form</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="name" position="before">
<field name="pic" widget="image" nolabel="1" img_width="300" img_height="300"/>
</field>
</field>
</record>
</data>
</openerp>
1.in GTK client work
2.in FireFox ,the 'pic' field disappear
3.in IE8.0,the 'pic' appear,but when I upload the picture it`s error
ERROR MESSAGE:
<type 'exceptions.ValueError'>: invalid literal for int() with base 10: ''
args = ("invalid literal for int() with base 10: ''",)
message = "invalid literal for int() with base 10: ''"
This error will happen when you create a new product in web Client. iF you just modify it it`s no problem
References