calendar_event.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_calendar_event_search" model="ir.ui.view">
  5. <field name="model">calendar.event</field>
  6. <field name="inherit_id" ref="calendar.view_calendar_event_search" />
  7. <field name="arch" type="xml">
  8. <xpath expr="." position="inside">
  9. <field name="account_invoice_id" />
  10. <filter name="account_invoices" string="Facturas" domain="[('account_invoice_id', '!=', False)]" />
  11. </xpath>
  12. </field>
  13. </record>
  14. <record id="view_calendar_event_calendar" model="ir.ui.view">
  15. <field name="model">calendar.event</field>
  16. <field name="inherit_id" ref="calendar.view_calendar_event_calendar" />
  17. <field name="arch" type="xml">
  18. <xpath expr="." position="inside">
  19. <field name="account_invoice_id" />
  20. <!-- <field name="location" position="attributes">
  21. <attribute name="invisible">1</attribute>
  22. </field> -->
  23. </xpath>
  24. </field>
  25. </record>
  26. <record id="view_calendar_event_form" model="ir.ui.view">
  27. <field name="model">calendar.event</field>
  28. <field name="inherit_id" ref="calendar.view_calendar_event_form" />
  29. <field name="arch" type="xml">
  30. <page string="Misc" position="inside">
  31. <label for="account_invoice_id" />
  32. <field name="account_invoice_id" />
  33. </page>
  34. </field>
  35. </record>
  36. <record id="view_calendar_event_form_popup" model="ir.ui.view">
  37. <field name="model">calendar.event</field>
  38. <field name="inherit_id" ref="calendar.view_calendar_event_form_popup" />
  39. <field name="arch" type="xml">
  40. <xpath expr="//group" position="inside">
  41. <group name="account_invoice_calendar_event">
  42. <field name="account_invoice_id" />
  43. </group>
  44. </xpath>
  45. </field>
  46. </record>
  47. </data>
  48. </openerp>