Browse Source
[MERGE] merge branch lp:~invitu/openerp-asterisk-connector/openerp-asterisk-connector_7_0 with a large rewrite in order to avoid code duplication.
[MERGE] merge branch lp:~invitu/openerp-asterisk-connector/openerp-asterisk-connector_7_0 with a large rewrite in order to avoid code duplication.
Set default value to company_id field.pull/7/head
Alexis de Lattre
12 years ago
13 changed files with 345 additions and 97 deletions
-
63asterisk_click2dial/asterisk_click2dial.py
-
2asterisk_click2dial/asterisk_server_view.xml
-
10asterisk_click2dial/i18n/asterisk_click2dial.pot
-
10asterisk_click2dial/i18n/fr.po
-
12asterisk_click2dial/res_partner_view.xml
-
1asterisk_click2dial/res_users_view.xml
-
2asterisk_click2dial_crm/__init__.py
-
4asterisk_click2dial_crm/__openerp__.py
-
49asterisk_click2dial_crm/asterisk_click2dial_crm.py
-
57asterisk_click2dial_crm/crm_lead_view.xml
-
108asterisk_click2dial_crm/i18n/asterisk_click2dial_crm.pot
-
122asterisk_click2dial_crm/i18n/fr.po
-
2asterisk_click2dial_crm/wizard/create_crm_phonecall.py
@ -0,0 +1,57 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Asterisk Click2dial module for OpenERP |
|||
Copyright (C) 2010-2013 Alexis de Lattre <alexis@via.ecp.fr> |
|||
Copyright (C) 2010-2013 Invitu <contact@invitu.com> |
|||
The licence is in the file __openerp__.py |
|||
|
|||
Inherit lead views to add 'Dial' button next to 'phone' |
|||
and 'mobile' fields |
|||
--> |
|||
|
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="asterisk_crm_lead_simplified_form_dial" model="ir.ui.view"> |
|||
<field name="name">asterisk.crm_lead.simplified.form.dial</field> |
|||
<field name="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.crm_case_form_view_leads"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//group/group/field[@name='phone']" position="replace"> |
|||
<group colspan="2" col="8"> |
|||
<field name="phone" colspan="7" /> |
|||
<button name="action_dial" context="{'field2dial': ['phone', 'phone_e164']}" string="Dial" type="object" attrs="{'invisible':[('phone','=',False)]}"/> |
|||
</group> |
|||
</xpath> |
|||
<xpath expr="//group/group/field[@name='mobile']" position="replace"> |
|||
<group colspan="2" col="8"> |
|||
<field name="mobile" colspan="7" /> |
|||
<button name="action_dial" context="{'field2dial': ['mobile', 'mobile_e164']}" string="Dial" type="object" attrs="{'invisible':[('mobile','=',False)]}"/> |
|||
</group> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
|
|||
<record id="asterisk_crm_case_form_view_oppor_dial" model="ir.ui.view"> |
|||
<field name="name">asterisk.crm_case.form.view_oppor.dial</field> |
|||
<field name="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//group/group/field[@name='phone']" position="replace"> |
|||
<group colspan="2" col="8"> |
|||
<field name="phone" colspan="7" /> |
|||
<button name="action_dial" context="{'field2dial': ['phone', 'phone_e164']}" string="Dial" type="object" attrs="{'invisible':[('phone','=',False)]}"/> |
|||
</group> |
|||
</xpath> |
|||
<xpath expr="//group/group/field[@name='mobile']" position="replace"> |
|||
<group colspan="2" col="8"> |
|||
<field name="mobile" colspan="7" /> |
|||
<button name="action_dial" context="{'field2dial': ['mobile', 'mobile_e164']}" string="Dial" type="object" attrs="{'invisible':[('mobile','=',False)]}"/> |
|||
</group> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue