Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
7147 Weergaven

I am editing my custom xml code and want to enable no_create only if another model's field is a certain value.

i.e. options="{"no_create": [('field_x', '=', 1)]}"

Currently I can only get the no_create option to work by setting it to True. Is there a particular syntax I may be missing to enable the use case described above?


Avatar
Annuleer
Beste antwoord

Hi,

Check this Link​
I've used this method to remove create and edit from many2one based on condition.
Avatar
Annuleer
Auteur

Unfortunately that work around won't work for me. For my case, if I have to create a second dummy field to then toggle I would rather generate an entirely new view. Thanks tho!

Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 19
5332
6
jul. 24
46061
2
mrt. 24
17209
0
dec. 19
6429
1
aug. 23
2161