change res.partner field name readonly.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
readonly option in fields?
Risolto
|
|
3
dic 23
|
90979 | |
|
3
set 21
|
5091 | ||
|
1
set 15
|
8940 | ||
|
4
apr 25
|
5260 | ||
|
3
lug 23
|
5706 |
https://www.youtube.com/watch?v=ZrCN3L0oAKE