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

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
91236
3
9月 21
5211
1
9月 15
9022
4
8月 25
5582
3
7月 23
5816