odoo 8 - How to hide button based user? -
i'm developing openerp 8.0 module , in point of process user can take workflow of responsibility. tried this:
_columns = { 'check' : fields.function(_get_check, type='boolean', obj='stock_picking', method=true), } <button name="force_assign" states="confirmed,waiting,partially_available" type="workflow" attrs="{'invisible': ['|', ('check', '=', true), '|']}"/>
but getting following error:
uncaught error: unknown field check in domain ["|",["check","=",true],"|",["state","not in",["confirmed","waiting","partially_available"]]]
please me.
try this:
_columns = { 'check' : fields.function(_get_check, type='boolean', obj='stock_picking', method=true, store=true), }
hope helps...
Comments
Post a Comment