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

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
91268
3
9月 21
5258
1
9月 15
9030
4
8月 25
5638
3
7月 23
5860