Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6653 Vistas

'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


Avatar
Descartar
Mejor respuesta

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

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

Avatar
Descartar
Autor

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

Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 18
2617
2
oct 18
7432
1
ago 16
3470
1
may 16
3168
3
mar 22
29589