跳至內容
選單
此問題已被標幟
2 回覆
10639 瀏覽次數
最佳答案

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
91267
3
9月 21
5257
1
9月 15
9029
4
8月 25
5637
3
7月 23
5859