Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
10398 Vizualizări

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' !

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

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

Best regards.

Imagine profil
Abandonează
Autor

Thanks a lot :)

Happy to help: )

Related Posts Răspunsuri Vizualizări Activitate
1
iul. 20
8480
1
mar. 15
4665
1
sept. 20
7808
0
feb. 21
3731
0
apr. 17
6672