Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
10934 Tampilan
Jawaban Terbai

inherit partner form view and add this code


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

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

</xpath>

Avatar
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Des 23
92008
3
Sep 21
5658
1
Sep 15
9344
4
Agu 25
6746
3
Jul 23
6191