hi team,

I have a problem with making a form readonly according to workflow
states.
I tried to define a states attribute in form tag of the view xml file,
but got an error( obviously form tag does not support "states"
attribute ).
and also tried the tag "notepage" and "page", no error alerted, but
still did not work out.
finally I put the states stuff in model,  something like:

code = fileds.Char('Code', size=60, states={'readonly':
Equal(Eval('state'), 'done')})..

It works.

Is there any way to disable a form in view instead of in model?

Thanks.

-- 
[email protected] mailing list

Reply via email to