跳至内容
菜单
此问题已终结
2 回复
3744 查看
x
形象
丢弃
编写者

I was not able to post a piece of xml code in this Forum.
I do not think this is a good way to support developers.

Hi, 

Hope this reference will help you. 

最佳答案

as far as i know, there isn't any widget called one2many_list in Odoo.
There is onyl widget="one2many"

形象
丢弃
最佳答案

Hi,

The widget=”one2many_list” is used when we want to view a field as one2many.

In python file

account_ids = fields.One2many('account.fiscal.position.account', 'position_id', string='Account Mapping')

In XML

<field name="account_ids"  widget="one2many_list">
<tree string="Values">
<field name="name"/>
</tree>
</field>

Regards

形象
丢弃

But where is the widget "one2many_list" defined??
I can't find any definition in the code and the browser console tells me "Missing widget"

@Klaus-Dieter Gundermann: Highlighted Ibrahim Boudmir's comment to become an answer. one2many_list just isn't a thing hence you get that error.

相关帖文 回复 查看 活动
2
1月 24
1569
3
8月 25
2648
1
5月 25
2664
1
4月 25
3664
1
4月 25
4518