Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
10781 Visualizações
Melhor resposta

inherit partner form view and add this code


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

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

</xpath>

Avatar
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
dez. 23
91676
3
set. 21
5485
1
set. 15
9149
4
ago. 25
6336
3
jul. 23
6024