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

Hello All, I want when the user set a value to the filed the system save it and when he create a new record the system suggest this value. any suggestion ? Thank you

Avatar
Annuleer

Why do you want to do it with javascript? You can do it on openerp with defaults and a function that throws the last value inserted and that's all.

Auteur

Please let me the function name. what i can put here _defaults = { 'my_field' : ???, }

Beste antwoord

I have the same problem. In the ineger fields the default value is 0. If you try to set this to some other value, using the _defaults like so: _defaults = { 'account_id': None,  }. You can set it to any value except for Null value. I guess this gets overriden with the javascript controll seting a value 0 if there is no value given by the server. Any ideas on this. Thank you.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
jul. 25
218
0
jun. 25
443
1
jun. 25
689
1
jun. 25
715
1
mei 25
1260