Browse Source

Add new module "asterisk_click2dial_crm_claim". This module adds a button "Open Related CRM Claims" on the "Open Calling Partner" wizard.

pull/7/head
Alexis de Lattre 12 years ago
parent
commit
d069452dab
  1. 23
      asterisk_click2dial_crm_claim/__init__.py
  2. 45
      asterisk_click2dial_crm_claim/__openerp__.py
  3. 23
      asterisk_click2dial_crm_claim/wizard/__init__.py
  4. 30
      asterisk_click2dial_crm_claim/wizard/open_calling_partner.py
  5. 25
      asterisk_click2dial_crm_claim/wizard/open_calling_partner_view.xml

23
asterisk_click2dial_crm_claim/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Asterisk Click2Dial CRM Claim module for OpenERP
# Copyright (C) 2012 Akretion (http://www.akretion.com/)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import wizard

45
asterisk_click2dial_crm_claim/__openerp__.py

@ -0,0 +1,45 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Asterisk click2dial CRM Claim module for OpenERP
# Copyright (c) 2012 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
"name": "Asterisk Click2dial CRM Claim",
"version": "0.1",
"author": "Akretion",
"website": "http://www.akretion.com",
"license" : "AGPL-3",
"category": "Customer Relationship Management",
"description": """
This module adds a button "Open Related CRM Claims" on the "Open calling partner" wizard.
A detailed documentation for the OpenERP-Asterisk connector is available on the Akretion Web site : http://www.akretion.com/open-source-contributions/openerp-asterisk-voip-connector
""",
"depends": [
'asterisk_click2dial',
'crm_claim',
],
"init_xml": [],
"demo_xml": [],
"update_xml": [
'wizard/open_calling_partner_view.xml',
],
"installable": True,
}

23
asterisk_click2dial_crm_claim/wizard/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Asterisk Click2Dial CRM Claim module for OpenERP
# Copyright (C) 2012 Akretion (http://www.akretion.com/)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import open_calling_partner

30
asterisk_click2dial_crm_claim/wizard/open_calling_partner.py

@ -0,0 +1,30 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Asterisk Click2dial CRM Claim module for OpenERP
# Copyright (C) 2012 Akretion (http://www.akretion.com/)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from osv import osv, fields
class wizard_open_calling_partner(osv.osv_memory):
_inherit = "wizard.open.calling.partner"
def open_crm_claims(self, cr, uid, ids, context=None):
'''Function called by the related button of the wizard'''
return self.open_filtered_object(cr, uid, ids, self.pool.get('crm.claim'), context=context)

25
asterisk_click2dial_crm_claim/wizard/open_calling_partner_view.xml

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Akretion (http://www.akretion.com)
@author Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<!-- Add button on the "Open Calling partner" wizard -->
<record id="add_open_crm_claims_button" model="ir.ui.view">
<field name="name">asterisk_click2dial_crm_claim.add_open_crm_claims_button</field>
<field name="model">wizard.open.calling.partner</field>
<field name="inherit_id" ref="asterisk_click2dial.view_open_calling_partner"/>
<field name="type">form</field>
<field name="arch" type="xml">
<group name="partner_found" position="inside">
<button name="open_crm_claims" string="Open Related CRM Claims" type="object" icon="gtk-go-forward" />
</group>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save