跳至内容
菜单
此问题已终结
2 回复
10634 查看
最佳答案

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
91266
3
9月 21
5254
1
9月 15
9029
4
8月 25
5636
3
7月 23
5855