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
|
95295 | ||
|
3
ก.ย. 21
|
7444 | |||
|
1
ก.ย. 15
|
10864 | |||
|
4
ส.ค. 25
|
10907 | |||
|
3
ก.ค. 23
|
8038 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
https://www.youtube.com/watch?v=ZrCN3L0oAKE