Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3939 มุมมอง

I am converting a module from v11 to v13 and there's a relation of field one2many on a form which has attrs = "{ 'readonly': [('state', 'in', ['posted', 'canceled'])] } ".
but that one2many field is readable in any case. I have tried to remove the attrs that didnt work i even added readonly = False in python code and also readonly='0' in xml in on2many field but that field is still not editable it is showing the behavior as readonly. How can i make that editable?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

After some R&D I have found this useful link on forum. This happens because of access rules security on the related model (the many2one).

https://www.odoo.com/forum/help-1/question/problem-with-one2many-in-odoo-12-151127

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 22
18514
3
ก.ค. 19
5410
4
พ.ย. 20
7893
0
พ.ย. 18
2508
2
มี.ค. 25
8716