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>
24 lines
1.1 KiB
XML
24 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="mail_act_test_todo" model="mail.activity.type">
|
|
<field name="name">Do Stuff</field>
|
|
<field name="summary">Really?! Wow! A superpowers drug you can just rub onto your skin?</field>
|
|
<field name="category">default</field>
|
|
<field name="res_model">mail.test.activity</field>
|
|
</record>
|
|
<record id="mail_act_test_meeting" model="mail.activity.type">
|
|
<field name="name">Meet People</field>
|
|
<field name="summary">You'd think it would be something you'd have to freebase. Noooooo!</field>
|
|
<field name="category">default</field>
|
|
<field name="res_model">mail.test.activity</field>
|
|
</record>
|
|
<record id="mail_act_test_call" model="mail.activity.type">
|
|
<field name="name">Call People</field>
|
|
<field name="summary">Then throw her in the laundry room, which will hereafter be referred to as "the brig".</field>
|
|
<field name="category">default</field>
|
|
<field name="res_model">mail.test.activity</field>
|
|
</record>
|
|
|
|
</odoo>
|