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>
8 lines
358 B
XML
8 lines
358 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="sales_team.mail_activity_type_action_config_sales" model="ir.actions.act_window">
|
|
<field name="domain">['|', ('res_model', '=', False), ('res_model', 'in', ['crm.lead', 'res.partner'])]</field>
|
|
<field name="context">{'default_res_model': 'crm.lead'}</field>
|
|
</record>
|
|
</odoo>
|