Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2700 Zobrazení

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šit

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

Related Posts Odpovědi Zobrazení Aktivita
3
srp 15
6791
5
dub 17
8906
1
říj 15
4124
0
bře 25
1261
2
bře 25
5750