Skip to Content
Menu
This question has been flagged
2 Replies
10521 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
91010
3
sep 21
5103
1
sep 15
8947
4
apr 25
5300
3
júl 23
5724