İçereği Atla
Menü
Bu soru işaretlendi
2704 Görünümler

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
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Ağu 15
6791
5
Nis 17
8908
1
Eki 15
4126
0
Mar 25
1262
2
Mar 25
5752