Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3873 Lượt xem

Hi I am using compute field in odoo models to do the calculation so the issue is I want to edit that field from the frontend UI as well I show the UI for it and try to change the formula from the front end but it gives the error like 

"Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon!"


so how can I change the value from the front end Are there any possibilities please let me know it's very useful for me.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi, 

Compute fields cannot be made editable in Odoo.

However, if you want to make the field editable, it has to be done through python code using inverse parameter. Refer the documentation in the link below. 


https://www.odoo.com/documentation/15.0/developer/howtos/rdtraining/09_compute_onchange.html?highlight=inverse

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 23
2026
1
thg 7 22
2218
2
thg 7 22
6935
1
thg 7 23
3346
1
thg 2 22
3281