콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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>
아바타
취소

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

관련 게시물 답글 화면 활동
3
8월 15
7056
5
4월 17
9298
1
10월 15
4424
0
3월 25
1596
2
3월 25
6120