This question has been flagged

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
Discard
Best Answer

Hi,

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

Best regards.

Avatar
Discard
Author

Thanks a lot :)

Happy to help: )