How can i insert the group here?
What system access to request?
Request
x_studio_stage_id in [2, 3, 4]
Also in field attribute?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can i insert the group here?
What system access to request?
Request
x_studio_stage_id in [2, 3, 4]
Also in field attribute?
Hi,
You can introduce a dummy computed field to control the readonly status of the field. As your field name x_name, add new field named x_name_readonly and then compute and set the value to this field based on stage and logged in user group
Then in the view level, add this field to readonly attribute
Thanks
Create an account today to enjoy exclusive features and engage with our awesome community!
Tilmeld digRelated Posts | Besvarelser | Visninger | Aktivitet | |
---|---|---|---|---|
|
1
mar. 25
|
2561 | ||
|
2
sep. 20
|
11380 | ||
|
2
jun. 25
|
2326 | ||
|
0
okt. 24
|
1037 | ||
|
1
aug. 24
|
1328 |
I tried a multiple solutions i found everywhere, but none of it worked
<data>
<xpath expr="//field[@name='x_name']" position="attributes">
<attribute name="placeholder">What system access to request?</attribute>
<attribute name="string">Request</attribute>
<attribute name="readonly">x_studio_stage_id in [2, 3, 4]</attribute>
</data>
How can i insert the group in there?
I also tried in field.
<field name="x_studio_read" groups="base.group_user,trusty.test_users00" readonly="x_studio_stage_id in [2, 3, 4]"/>
<field name="x_studio_write" groups="base.group_user,trusty.test_users00" readonly="x_studio_stage_id in [2, 3, 4]"/>
But it didn't work too.