Skip to Content
Menu
This question has been flagged
2 Replies
11123 Rodiniai
Best Answer

inherit partner form view and add this code


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

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

</xpath>

Portretas
Atmesti
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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
gruod. 23
92396
3
rugs. 21
5885
1
rugs. 15
9564
4
rugp. 25
7362
3
liep. 23
6383