Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
10643 Zobrazení
Nejlepší odpověď

inherit partner form view and add this code


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

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

</xpath>

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
pro 23
91269
3
zář 21
5260
1
zář 15
9032
4
srp 25
5644
3
čvc 23
5867