Skip to Content
Menu
This question has been flagged
3261 Zobrazenia

I have created opportunity obj and connected a phone_call obj to it. So, right now it is possible to create phone call directly from opportunity kanban and form view (method added to opportunity obj). It works fine. User can also create phone call from its form view - works OK.

Problem is that there should be possibility to create phone call obj from list view. In list view user can crate phone cal and connect it to specific opportunity. Problem with permission appears only in list view and only with some opportunities (not with all).

Error: Access Denied

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: Phonecall, Operation: write)

Permissions:

<record id="crm_phonecall_salesperson" model="ir.model.access">
    <field name="model_id" ref="model_crm_phonecall"/>
    <field eval="True" name="perm_read"/>
    <field eval="True" name="perm_write"/>
    <field eval="True" name="perm_create"/>
    <field eval="False" name="perm_unlink"/>
    <field name="name">crm_phonecall_salesperson</field>
    <field name="group_id" ref="laboprint.lg_salesperson"/>
</record>
<record id="crm_rule_all_phones" model="ir.rule">
    <field name="name">All Phones</field>
    <field ref="model_crm_phonecall" name="model_id"/>
    <field eval="True" name="perm_read"/>
    <field eval="True" name="perm_write"/>
    <field eval="True" name="perm_create"/>
    <field eval="False" name="perm_unlink"/>
    <field name="domain_force">['|',('user_id','=',user.id),
    '|',('opportunity_id.second_user','=',user.id),
    '|',('opportunity_id.user_id','=',user.id),
    '|',('user_id.default_section_id.manager_id','=',user.partner_id.id),
        ('user_id','=',False)]</field>
    <field name="groups" eval="[(4, ref('laboprint.lg_salesperson'))]"/>
</record>
Avatar
Zrušiť

Check the Object Access as well, whether you have set the Write Permission.

Related Posts Replies Zobrazenia Aktivita
3
aug 15
7244
5
apr 17
9578
1
okt 15
4652
0
mar 25
1812
2
mar 25
6429