Browse Source

[FIX] partner_phonecall_schedule: Allow partner managers to use addon (#480)

pull/675/head
Jairo Llopis 7 years ago
committed by Anand Kansagra
parent
commit
eaf2a6b8dd
  1. 3
      partner_phonecall_schedule/__openerp__.py
  2. 3
      partner_phonecall_schedule/security/ir.model.access.csv
  3. 4
      partner_phonecall_schedule/views/res_partner_view.xml

3
partner_phonecall_schedule/__openerp__.py

@ -4,7 +4,7 @@
{
"name": "Partner phonecalls schedule",
"summary": "Track the time and days your partners expect phone calls",
"version": "9.0.1.0.0",
"version": "9.0.1.1.0",
"category": "Customer Relationship Management",
"website": "https://github.com/OCA/crm",
"author": "Tecnativa, Odoo Community Association (OCA)",
@ -15,6 +15,7 @@
"resource",
],
"data": [
"security/ir.model.access.csv",
"views/res_partner_view.xml",
],
}

3
partner_phonecall_schedule/security/ir.model.access.csv

@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
partner_manager_resource_calendar,Let partner managers manage resource.calendar,resource.model_resource_calendar,base.group_partner_manager,1,1,1,1
partner_manager_resource_calendar_attendance,Let partner managers manage resource.calendar.attendance,resource.model_resource_calendar_attendance,base.group_partner_manager,1,1,1,1

4
partner_phonecall_schedule/views/res_partner_view.xml

@ -8,6 +8,8 @@
<field name="name">Partner phonecall schedule</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="groups_id"
eval="[(4, ref('base.group_partner_manager'), 0)]"/>
<field name="arch" type="xml">
<xpath expr="//notebook">
<!-- `many2many_tags` widget would not allow the user to click
@ -31,6 +33,8 @@
<field name="name">Partner phonecall availability</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="groups_id"
eval="[(4, ref('base.group_partner_manager'), 0)]"/>
<field name="arch" type="xml">
<xpath expr="//separator[last()]" position="before">
<filter

Loading…
Cancel
Save