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
|
95273 | |||
|
3
9月 21
|
7430 | |||
|
1
9月 15
|
10849 | |||
|
4
8月 25
|
10864 | |||
|
3
7月 23
|
8016 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
https://www.youtube.com/watch?v=ZrCN3L0oAKE