Ir al contenido
Menú
Se marcó esta pregunta

Hi guys,

I want to display a tree view where I can add a list of selected values for a one2many field.

<record model="ir.ui.view" id="purchase_order_form_view">
<field name="name">purchase_order.form</field>
<field name="model">tjara.purchase_order</field>
<field name="arch" type="xml">
<form string="Demande d'achat Form">
<sheet>
<group>
<field name="name"/>
<field name="product_package_ids" options="{'no_create': true, 'no_create_edit':true}" />
</group>
</sheet>
</form>
</field>
</record>

When I execute this code the page display a form to create another 'product_package' !

Avatar
Descartar
Mejor respuesta

Hi,

As far as i know, you can't do this with one2many relation. Try to use many2many instead.

Best regards.

Avatar
Descartar
Autor

Thanks a lot :)

Happy to help: )

Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 20
8468
1
mar 15
4663
1
sept 20
7805
0
feb 21
3731
0
abr 17
6670