Skip to Content
Menu
This question has been flagged
2 Replies
10662 Zobrazenia
Best Answer

inherit partner form view and add this code


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

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

</xpath>

Avatar
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
3
dec 23
91310
3
sep 21
5280
1
sep 15
9039
4
aug 25
5756
3
júl 23
5892