Following the removal of read access on ir.model (odoo/odoo#69120), the mail.activity.type model was not accessible to non-admin users due to the res_model_id many2one field. Before this commit, a project user could not access the Activity Type menu. Convert it to a selection field with the selection values being computed in sudo. closes odoo/odoo#74981 Related: odoo/enterprise#20214 Related: odoo/upgrade#2734 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
16 lines
744 B
XML
16 lines
744 B
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<!-- Activity types config -->
|
|
<record id="mail_activity_type_action_config_fleet" model="ir.actions.act_window">
|
|
<field name="name">Activity Types</field>
|
|
<field name="res_model">mail.activity.type</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="domain">['|', ('res_model', '=', False), ('res_model', '=', 'fleet.vehicle.log.contract')]</field>
|
|
<field name="context">{'default_res_model': 'fleet.vehicle.log.contract'}</field>
|
|
</record>
|
|
<menuitem id="fleet_menu_config_activity_type"
|
|
action="mail_activity_type_action_config_fleet"
|
|
parent="fleet_configuration"
|
|
sequence="99"
|
|
groups="base.group_no_one"/>
|
|
</odoo> |