change res.partner field name readonly.
inherit partner form view and add this code
<xpath expr="//field[@name='name']" position="attributes">
<attribute name="readonly">1</attribute>
</xpath>
Another way to do this is through model:
Try:
class ResPartner(models.Model):
_inherit = 'res.partner'
name = fields.Char(readonly=True)
Hope it help.
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
readonly option in fields?
Rezolvat
|
3
dec. 23
|
95176 | ||
|
3
sept. 21
|
7382 | |||
|
1
sept. 15
|
10755 | |||
|
4
aug. 25
|
10765 | |||
|
3
iul. 23
|
7935 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
https://www.youtube.com/watch?v=ZrCN3L0oAKE