2012-04-19 54 views
0

我對openerp xml編碼有疑問。 openerp6.0中以下函數是否適用於onetomany字段?xml Openerp的編碼

attrs="{'invisible':[('x_form_type','==','service_bill')]}" 

我已經添加了一段代碼在account_invoice_view.xml但不working.when我搜索我發現有人報道,在OpenERP的一對多爲這不會工作5.0

+0

請問您能提供整個XML元素嗎? – 2012-04-19 12:00:27

+0

沒有它只是在我寫的代碼attrs =「{'不可見':[('x_form_type','=','service_bill')]}」 – 2012-04-19 12:12:53

+0

謝謝你的幫助謝謝你的幫助 – 2012-04-19 12:13:46

回答

1
This should Work for o2m field. 
Provided that , "x_form_type" field must be there on the defined view. 
If you Don't want to display that field , then make it invisible="1" 
+0

感謝您的幫助先生 – 2012-05-05 04:52:30

0

當然函數對於一對多領域也。