Why I cant able to store the particular value in the grid table after making that field as readonly
Since I gave that field as store=True
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Why I cant able to store the particular value in the grid table after making that field as readonly
Since I gave that field as store=True
You want the field to be Readonly, but trying to add value through Onchange or so, then you need to under-go hassle of updating for the same again in the Create/Write ORM methods.
Instead the feasible alternate solution would be you to use Compute/functional fields.
Api decorator lets you add depends(dependency) field, which acts as both onchange and computational method, that way you don't have to worry about manually re-updating the same in ORM methods.
Note:
If a field is marked as Readonly, odoo will explicitly omit retrieving data for the same from UI, hence in such case its best to use computational/related fields.
dear Karan Gupta
you need to override create and write method and assign the value again by calling your onchange function and then update the vals.
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
2
ธ.ค. 23
|
2873 | |||
|
3
พ.ค. 25
|
3348 | |||
|
1
เม.ย. 25
|
2399 | |||
|
one2one relational field
แก้ไขแล้ว
|
3
ก.ย. 24
|
16058 | ||
|
2
ก.พ. 24
|
3452 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Thanks,,, ayman mohammed adam