Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3814 Представления
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.

Related Posts Ответы Просмотры Активность
2
янв. 24
1595
3
авг. 25
2741
1
мая 25
2698
1
апр. 25
3689
1
апр. 25
4545