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.
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
3
12月 23
|
95286 | |||
|
3
9月 21
|
7438 | |||
|
1
9月 15
|
10854 | |||
|
4
8月 25
|
10871 | |||
|
3
7月 23
|
8029 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
https://www.youtube.com/watch?v=ZrCN3L0oAKE