Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
10636 Prikazi
Best Answer

inherit partner form view and add this code


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

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

</xpath>

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
dec. 23
91266
3
sep. 21
5254
1
sep. 15
9029
4
avg. 25
5636
3
jul. 23
5855