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
724 B
XML
16 lines
724 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="mail_activity_type_action_config_sales" 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', '=', 'res.partner')]</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Create an Activity Type
|
|
</p><p>
|
|
Those represent the different categories of things you have to do (e.g. "Call" or "Prepare meeting").
|
|
</p>
|
|
</field>
|
|
</record>
|
|
</odoo> |