User is not warned when data filled in is too long. Field's size should impact its validity.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Web Team |
Bug Description
Size value for char fields does not works.
With revno 2275
Test:
Fresh installation with 6.1 branches install stock module.
Open a product
write in ref, w/o limit
write in name 2/limit, here if you pass 128 (defined in product), server gives the error.
This is an UI error in Web client.
I dont know if any one test this but IMO this kind of errors is unacceptable.
Regards,
******
Error Server
Server Traceback (most recent call last):
File "/Users/
result = openerp.
File "/Users/
result = ExportService.
File "/Users/
res = fn(db, uid, *params)
File "/Users/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/Users/
return f(self, dbname, *args, **kwargs)
File "/Users/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/Users/
return getattr(object, method)(cr, uid, *args, **kw)
File "/Users/
self.
File "/Users/
'"'
File "/Users/
return f(self, *args, **kwargs)
File "/Users/
res = self._obj.
DataError: value too long for type character varying(128)
Related branches
- Jiten (OpenERP) (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 23 lines (+2/-0)2 files modifiedaddons/web/static/src/js/view_form.js (+1/-0)
addons/web/static/src/xml/base.xml (+1/-0)
Changed in openerp-web: | |
importance: | Medium → Critical |
Changed in openerp-web: | |
importance: | Critical → Medium |
Changed in openerp-web: | |
importance: | Wishlist → Medium |
Hi,
This looks like an annoying bug indeed, but not a complete showstopper, as the workaround is very simple: enter a shorter value in the field (even if that may not be obvious to end-users based on the error). Therefore it seems to me that the bug cannot be considered Critical, but rather Medium or High.
Thanks!
PS: Please don't confirm or change the importance of your own bug reports. That would be like approving your own merge proposals. As a member of OpenERP Drivers, if you are unsure about the meaning of bug importance values, you really must read and understand our bug management guidelines in the documentation: http:// doc.openerp. com/v6. 0/contribute/ 11_bug_ tracker. html#definition -of-a-bug