Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
10843 Visualizzazioni
Risposta migliore

inherit partner form view and add this code


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

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

</xpath>

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
dic 23
91818
3
set 21
5576
1
set 15
9222
4
ago 25
6543
3
lug 23
6102