コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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

アバター
破棄
最善の回答

Hi,

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

Best regards.

アバター
破棄
著作者

Thanks a lot :)

Happy to help: )

関連投稿 返信 ビュー 活動
1
7月 20
8476
1
3月 15
4664
1
9月 20
7805
0
2月 21
3731
0
4月 17
6671