跳至内容
菜单
此问题已终结
1 回复
3835 查看

With function field, how can I save the value of the field unless the object is not in draft mode ?

形象
丢弃

Please do not post duplicate questions. See http://help.openerp.com/question/5522/function-field/

最佳答案

Hi,

I never tested with argument store, but should work, try :

in file view add this attribute in field :

attrs="{'store': [('state', '=', 'draft')]}"

update module and view.

naturally field state must be present as a field or in context.

Bye

形象
丢弃