Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4347 Zobrazení

Dear all,

is the abovementioned widget still available in Odoo14? I fail to make it visible in a view. If it is not supported anymore in Odoo 14, is there any other solution to count the number of relations within the resulting relation table? Many thanks in advance for your ideas!

Best wishes

Carl


Avatar
Zrušit
Autor Nejlepší odpověď

Hi Ray,

many thanks for your reply! For the list view it is working now. This is perfect and helps a lot. In the form view it is not working. I tried to find examples within the odoo models (e.g. res.user that you've mentioned). Unfortunately none of them seems to use the list.many2one widget for many2many fields.

Any further advice will be greatly appreciated.

Many thanks and best wishes

Carl

Avatar
Zrušit
Nejlepší odpověď

This widget is not in v14 and was removed some time ago.

For a Form View, use:

 widget="list.many2one"

To get:



For a List View, the default display of a one2many and many2many field in a list already shows the number of records:

From sale.order, and from res_partner:

                     


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
zář 23
2472
0
led 23
1763
0
srp 20
2210
2
bře 15
9929
2
bře 15
4325