Hi all, 

I'm applying customizations to the "purchase.order" object and I was a little 
puzzled on how to disable view type with one2many fields.

Lets say I have a one2many field "purchase.order.line" in my "purchase.order" 
from :
 <field name="order_line" colspan="6" nolabel="1"&nbsp; 
on_change="onchange_ol&#40;order_line&#41;" 
attrs="&#123;'readonly'&#58;&#91;&#40;'ol_categ_id','=',False&#41;&#93;&#125;" 
context="categ=ol_categ_id" />

I'm using "attrs" and "context" in order to specify "required" fields in my 
"purchase.order.line" form.

The problem is when I click the switch to list/form button on the very right of 
the one2many field, the context doesn't exist which is not very much of a 
problem since I don't really want to use this button. 

Does anyone knows a work around for this one ?

Thanks!




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=40061#40061

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to