Skip to Content
मेन्यू
This question has been flagged
2 Replies
10480 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
90912
3
सित॰ 21
5053
1
सित॰ 15
8925
4
अप्रैल 25
5139
3
जुल॰ 23
5678