mirror of https://github.com/OCA/web.git
[FIX] web_field_tooltip: ir.model and ir.model.fields access if not admin
parent
565530d912
commit
70efc5aedb
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue