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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
5489
查看
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
6月 25
|
373 | ||
|
1
6月 25
|
664 | ||
|
1
6月 25
|
672 | ||
|
1
5月 25
|
1226 | ||
|
0
3月 25
|
695 |
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' : ???, }