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.

37 lines
1.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2014 Alexis de Lattre <alexis@via.ecp.fr>
  4. The licence is in the file __openerp__.py
  5. -->
  6. <openerp>
  7. <data>
  8. <record id="view_event_registration_form" model="ir.ui.view">
  9. <field name="name">event_phone.event_registration.form</field>
  10. <field name="model">event.registration</field>
  11. <field name="inherit_id" ref="event.view_event_registration_form"/>
  12. <field name="arch" type="xml">
  13. <field name="phone" position="attributes">
  14. <attribute name="widget">phone</attribute>
  15. </field>
  16. </field>
  17. </record>
  18. <record id="view_event_form" model="ir.ui.view">
  19. <field name="name">event_phone.event.form</field>
  20. <field name="model">event.event</field>
  21. <field name="inherit_id" ref="event.view_event_form"/>
  22. <field name="arch" type="xml">
  23. <xpath expr="//field[@name='registration_ids']/form//field[@name='phone']" position="attributes">
  24. <attribute name="widget">phone</attribute>
  25. </xpath>
  26. <xpath expr="////field[@name='registration_ids']/tree/field[@name='phone']" position="attributes">
  27. <attribute name="widget">phone</attribute>
  28. </xpath>
  29. </field>
  30. </record>
  31. </data>
  32. </openerp>