You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
977 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Asterisk Click2dial CRM Claim module for OpenERP
  4. Copyright (C) 2013 Invitu <contact@invitu.com>
  5. The licence is in the file __openerp__.py
  6. Inherit crm_claim view to add 'Dial' button next to 'phone'
  7. field
  8. -->
  9. <openerp>
  10. <data>
  11. <record id="asterisk_crm_claim_form_dial" model="ir.ui.view">
  12. <field name="name">asterisk.crm_claim.form.dial</field>
  13. <field name="model">crm.claim</field>
  14. <field name="inherit_id" ref="crm_claim_phone.crm_case_claims_form_view"/>
  15. <field name="arch" type="xml">
  16. <field name="partner_phone" position="replace">
  17. <group colspan="2" col="3">
  18. <field name="partner_phone" colspan="2" widget="phone"/>
  19. <button name="action_dial" context="{'field2dial': 'partner_phone'}" string="Dial" type="object" attrs="{'invisible':[('partner_phone','=',False)]}"/>
  20. </group>
  21. </field>
  22. </field>
  23. </record>
  24. </data>
  25. </openerp>