change res.partner field name readonly.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
readonly option in fields?
Solved
|
3
de des. 23
|
92971 | ||
|
3
de set. 21
|
6244 | |||
|
1
de set. 15
|
9792 | |||
|
4
d’ag. 25
|
8143 | |||
|
3
de jul. 23
|
6691 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
https://www.youtube.com/watch?v=ZrCN3L0oAKE