Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
10506 Vistas
Mejor respuesta

inherit partner form view and add this code


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

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

</xpath>

Avatar
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
dic 23
90968
3
sept 21
5089
1
sept 15
8937
4
abr 25
5242
3
jul 23
5700