跳至內容
選單
此問題已被標幟
1 回覆
9732 瀏覽次數

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?

頭像
捨棄
作者

Thank you @Megha_SerpentCS! :)

最佳答案

Alf Olsen

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

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

Thank You

頭像
捨棄

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...