Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
11121 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
92393
3
sept. 21
5885
1
sept. 15
9564
4
août 25
7358
3
juil. 23
6383