跳至內容
選單
此問題已被標幟
1 回覆
6671 瀏覽次數

'form_view_ref' is not working in odoo 8.I want to open other view on many2one field.For example,

1.I created new form view of account_invoice object,Its not inheriting base view of account_invoice.its toatally different view,

2.this  is code line of it

<field name="invoice_id" context="{ 'form_view_ref': 'custom_module.view_new_invoice_form'}">

but still its opening basic account_invoice_form not my new invoice form view_new_invoice_form which is not inheriting basic account invoice form.

New view also using modal 'account.invoice'

please help me


頭像
捨棄
最佳答案

It's implemented and working, here is an example of Odoo itself

<field name="invoice_id" context="{'form_view_ref': 'account.invoice_form'}"/>

頭像
捨棄
作者

hi Axel,first thanks to giving reply.I m using some other field not invoice_id ,i just give an example.but some how form_view_ref is not working in case of other field

相關帖文 回覆 瀏覽次數 活動
1
12月 18
2632
2
10月 18
7442
1
8月 16
3480
1
5月 16
3187
3
3月 22
29607