I'm developing an OpenERP 8.0 Module and in a certain point of this process a user can take a workflow of his responsibility. I tried this:
我正在开发一个OpenERP 8.0模块,在这个过程的某个阶段,用户可以承担他的职责。我试过这个:
_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 I am getting the following error:
但我收到以下错误:
Uncaught Error: Unknown field check in domain ["|",["check","=",true],"|",["state","not in",["confirmed","waiting","partially_available"]]]
未捕获错误:未知字段检查域[“|”,[“check”,“=”,true],“|”,[“state”,“not in”,[“确认”,“等待”,“partially_available” “]]]
Please help me.
请帮帮我。
2 个解决方案
#1
0
Try this:
尝试这个:
_columns = { 'check' : fields.function(_get_check, type='boolean', obj='stock_picking', method=True, store=True), }
_columns = {'check':fields.function(_get_check,type ='boolean',obj ='stock_picking',method = True,store = True),}
Hope this helps...
希望这可以帮助...
#2
0
Add field 'check' to the view with the button:
使用按钮向视图添加字段'check':
<field name="check" invisible="1"/>
#1
0
Try this:
尝试这个:
_columns = { 'check' : fields.function(_get_check, type='boolean', obj='stock_picking', method=True, store=True), }
_columns = {'check':fields.function(_get_check,type ='boolean',obj ='stock_picking',method = True,store = True),}
Hope this helps...
希望这可以帮助...
#2
0
Add field 'check' to the view with the button:
使用按钮向视图添加字段'check':
<field name="check" invisible="1"/>