Am using Odoo V8. I created custom module inside the journal entry form and creating one date field when the user comes to enter the date automatically update the date value to the another model form date field. Any idea about updating values of another model within the current form.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
2
回复
7977
查看
Hi,
you can use related fields. Another method you can write a code in create and write methods to update the value.
another_model_obj = self.pool.get('another.model').search(cr, uid, [(condition)])
if another_model_obj:
another_model_object = self.pool.get('another.model').browse(cr, uid, another_model_obj, context=None)
another_model_object.date = current_model.date
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
0
3月 25
|
1430 | ||
|
0
1月 25
|
3529 | ||
|
1
8月 23
|
14880 | ||
change password
已解决
|
|
1
8月 23
|
13541 | |
|
1
7月 23
|
10517 |
Reference: https://goo.gl/8HgnCF