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

I have a many2many field that represents a list of student. I want to only add student to that list but not remove any students from that list (in form view). Is it possible to implement that?

Avatar
Zrušit
Nejlepší odpověď

Hi Tung Nguyen,

Please note to explain which version of Odoo you are referring to. In Odoo 15 you can use Node options to define the possibility of the records delete option Many2Many fields. an example is given below :

<field name="user_ids" string="Allow users" widget="many2many" options="{'unlink': False}"/>


Regards

Avatar
Zrušit
Autor

I'm using Odoo 14 and it worked as well.

Related Posts Odpovědi Zobrazení Aktivita
15
zář 21
42350
2
úno 21
3254
1
úno 25
2709
1
úno 24
2178
0
čvc 24
3242