Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
11143 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
92405
3
Sep 21
5896
1
Sep 15
9577
4
Agu 25
7391
3
Jul 23
6386