Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
10803 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
91707
3
sept. 21
5507
1
sept. 15
9176
4
août 25
6379
3
juil. 23
6039