Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
10794 Vues
Meilleure réponse

inherit partner form view and add this code


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

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

</xpath>

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
déc. 23
91699
3
sept. 21
5502
1
sept. 15
9171
4
août 25
6362
3
juil. 23
6033