Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
10632 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
91266
3
Sep 21
5253
1
Sep 15
9029
4
Agu 25
5635
3
Jul 23
5853