c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #19737
[Bug 739332] [NEW] Related fields to integer are buggy when integer=0
Public bug reported:
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.
** Affects: openobject-server
Importance: Medium
Assignee: OpenERP's Framework R&D (openerp-dev-framework)
Status: Confirmed
--
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.
Follow ups
References