← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 670322] Re: Error on fields.related Integer

 

I fixed this.

Please add this code on osv/fields.py line 870

       elif self._type in ('one2many', 'many2many'):
           for r in res:
                if res[r]:
                    res[r] = [x.id for x in res[r]]
     + if self._type == 'integer' and res.get(2,False) == False:
     +       res[2] = 0
        return res

-- 
Error on fields.related Integer
https://bugs.launchpad.net/bugs/670322
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: New

Bug description:
Dear comrades,

I have a problem with Related Fields.  It does not work well on Integer field. 
When did not set original field's value then get False value on related side.
Then when save extends record that throw error. Cause that related field get False value.

There is any chance get that error?

Regards





References