c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #19753
[Bug 739332] Re: Related fields to integer are buggy when integer=0
*** This bug is a duplicate of bug 718989 ***
https://bugs.launchpad.net/bugs/718989
** This bug has been marked a duplicate of bug 718989
[Trunk] related fields on a integer, display false for value 0
* You can subscribe to bug 718989 by following this link: https://bugs.launchpad.net/openobject-client-web/+bug/718989/+subscribe
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/739332
Title:
Related fields to integer are buggy when integer=0
Status in OpenERP Server:
Confirmed
Bug description:
class test1(osv.osv):
_columns = {
'test': fields.integer('some test'),
}
_defaults = {
'test': 0,
}
class test2(osv.osv):
_columns = {
'test1': fields.many2one(...),
'test': fields.related("test1", "test", type='integer'),
}
When we try to read the value 'test' on the 'test2' osv, instead of
reading a 0 we get a string with a 'False' inside it.
References