Skip to Content
Menu
This question has been flagged
2 Replies
10642 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
91269
3
rugs. 21
5260
1
rugs. 15
9031
4
rugp. 25
5640
3
liep. 23
5861