Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5510 Vizualizări

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

Imagine profil
Abandonează

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.

Autor

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

Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iul. 25
222
0
iun. 25
447
1
iun. 25
690
1
iun. 25
722
1
mai 25
1263