Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
10613 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
91226
3
sept. 21
5206
1
sept. 15
9020
4
août 25
5574
3
juil. 23
5814