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

The model sale.order have order lines (sale.order.line) that can be created/edited directly in the tree view by adding the attribute editable to the tree field. Their relationship is a One2many.

I can't make this work for a custom model I'm working on with a Many2many releationship to the field I want to create/edit. When I click create or edit an item it pops up in a seperate window istead of "inline" or directly in the tree view.

Is this possible?

Avatar
Descartar
Autor

Thank you @Megha_SerpentCS! :)

Mejor respuesta

Alf Olsen

You can make your many2many works same as one2many by applying "One2many" widget.

<field name='many2many_field' widget='one2many'/>

Thank You

Avatar
Descartar

Hi, Do you know how to do this in v13? In v11 I had this widget='one2many list', but this does not work in v13...