← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 739332] Re: Related fields to integer are buggy when integer=0

 

** Changed in: openobject-server
    Milestone: 6.0.2 => None

-- 
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