跳至內容
選單
此問題已被標幟
1 回覆
5551 瀏覽次數

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

頭像
捨棄

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.

作者

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

最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
7月 25
249
1
7月 25
5008
0
7月 25
561
0
6月 25
651
1
6月 25
826