تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6721 أدوات العرض

'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
ديسمبر 18
2678
2
أكتوبر 18
7507
1
أغسطس 16
3544
1
مايو 16
3230
3
مارس 22
29655