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

change res.partner field name  readonly.

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

inherit partner form view and add this code


 <xpath expr="//field[@name='name']" position="attributes">

     <attribute name="readonly">1</attribute>

</xpath>

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Another way to do this is through model:

Try:

class ResPartner(models.Model):
_inherit = 'res.partner'

name = fields.Char(readonly=True)

Hope it help.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
readonly option in fields? แก้ไขแล้ว
3
ธ.ค. 23
91675
3
ก.ย. 21
5484
1
ก.ย. 15
9147
4
ส.ค. 25
6333
3
ก.ค. 23
6023