I already use fields related and it's working fine, but some how i can't used this because of a reason, so i need to find other solution.. Does anyone know how to do it aside from fields related?? Thanks in advance :D
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
You can use the function
field. With this field you can get and set any field you like.
I think it is right but, after getting that value i need to group it, and as far as i know function fields can not be group.. Thanks for the reply :D
You can group it if you define it with store=True
. But then you have to consider to use triggers for the updates.
That's one of my problem, i use fields related with store true, my problem is i need to save the form where i'm getting the fields and then edit it again ang work on the form where my fields related is located.. What i want to have is that i fill out my form then go to one2many form then fill out again , and go to one2many form again, fill out then save, save, save.. But if i do this using fields related with store true it will not group accordingly because my fields related did'nt store the value.. Many thanks to you :)
Use the function field with store=True
. For related fields this is not possible afaik.
If i use function field with store true, do i need to save the form first fro the store true to be triggered??
Yes, when the form is saved, then the function-method and the store are triggered.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 2 25
|
1691 | ||
|
0
thg 1 25
|
1436 | ||
Field service upgrade
Đã xử lý
|
|
1
thg 12 24
|
1868 | |
|
1
thg 6 22
|
6086 | ||
Field __last_update
Đã xử lý
|
|
1
thg 2 19
|
5323 |