Skip to Content
मेन्यू
This question has been flagged
2 Replies
10936 Views
Best Answer

inherit partner form view and add this code


 <xpath expr="//field[@name='name']" position="attributes">

     <attribute name="readonly">1</attribute>

</xpath>

Avatar
Discard
Best Answer

Another way to do this is through model:

Try:

class ResPartner(models.Model):
_inherit = 'res.partner'

name = fields.Char(readonly=True)

Hope it help.

Avatar
Discard
Related Posts Replies Views Activity
3
दिस॰ 23
92012
3
सित॰ 21
5664
1
सित॰ 15
9347
4
अग॰ 25
6751
3
जुल॰ 23
6198