[FIX] web_field_tooltip: ir.model and ir.model.fields access if not admin

pull/2823/head
hda 2024-05-16 14:21:44 +02:00
parent 565530d912
commit 70efc5aedb
2 changed files with 25 additions and 1 deletions

View File

@ -23,4 +23,24 @@
<field name="perm_unlink" eval="1" />
</record>
<record model="ir.model.access" id="ir_model_access_reader">
<field name="name">ir.model access reader</field>
<field name="model_id" ref="base.model_ir_model" />
<field name="group_id" ref="web_field_tooltip.group_tooltip_manager" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="0" />
<field name="perm_write" eval="0" />
<field name="perm_unlink" eval="0" />
</record>
<record model="ir.model.access" id="ir_model_fields_access_reader">
<field name="name">ir.model.fields access reader</field>
<field name="model_id" ref="base.model_ir_model_fields" />
<field name="group_id" ref="web_field_tooltip.group_tooltip_manager" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="0" />
<field name="perm_write" eval="0" />
<field name="perm_unlink" eval="0" />
</record>
</odoo>

View File

@ -18,10 +18,14 @@
<group name="first">
<group name="left">
<field name="active" invisible="1" />
<field name="model_id" />
<field
name="model_id"
options="{'create_edit': false, 'no_open': True}"
/>
<field
name="field_id"
domain="[('model_id', '=', model_id)]"
options="{'create_edit': false, 'no_open': True}"
/>
</group>
<group name="right">