Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
10511 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
90975
3
set. 21
5090
1
set. 15
8940
4
abr. 25
5252
3
jul. 23
5704