← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 638819] Re: V5 domain and select do not work for certain function fields

 

** Changed in: openobject-server
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/openobject-server/+question/132130

-- 
V5 domain and select do not work for certain function fields
https://bugs.launchpad.net/bugs/638819
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: Invalid

Bug description:
Example

    def _move_state(self, cr, uid, ids, names=None, arg=False, context=None):
        res = {}
        for line in self.browse(cr, uid, ids, context):
            res[line.id] = False
            for move in line.stock_dispo_production_ids:
                if move.state == 'draft':            
                    res[line.id]  = True
                    break
        return res

 'move_state'           : fields.function(_move_state, method=True, type='boolean', string='Move State' ,help="Returns true if some moves are not done", readonly=True),

this filter does not work
 <field name="domain">[('move_state','=',True)]</field>

also in forms I can not filter for true.

- discovered also other of my apps not allowing to search in similar function fields.