event_ticket_views.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo><data>
  3. <!-- EVENT.TYPE.TICKET -->
  4. <record id="event_type_ticket_view_tree_from_type" model="ir.ui.view">
  5. <field name="name">event.type.ticket.view.tree.inherit.sale</field>
  6. <field name="model">event.type.ticket</field>
  7. <field name="inherit_id" ref="event.event_type_ticket_view_tree_from_type"/>
  8. <field name="arch" type="xml">
  9. <field name="name" position="after">
  10. <field name="product_id" context="{'default_detailed_type': 'event'}"/>
  11. </field>
  12. <field name="description" position="after">
  13. <field name="price"/>
  14. </field>
  15. </field>
  16. </record>
  17. <record id="event_type_ticket_view_form_from_type" model="ir.ui.view">
  18. <field name="name">event.type.ticket.view.form.inherit.sale</field>
  19. <field name="model">event.type.ticket</field>
  20. <field name="inherit_id" ref="event.event_type_ticket_view_form_from_type"/>
  21. <field name="arch" type="xml">
  22. <field name="name" position="after">
  23. <field name="product_id" context="{'default_detailed_type': 'event'}"/>
  24. </field>
  25. <field name="description" position="after">
  26. <field name="price"/>
  27. </field>
  28. </field>
  29. </record>
  30. <!-- EVENT.TICKET -->
  31. <record id="event_event_ticket_view_tree_from_event" model="ir.ui.view">
  32. <field name="name">event.event.ticket.view.tree.from.event.inherit.sale</field>
  33. <field name="model">event.event.ticket</field>
  34. <field name="inherit_id" ref="event.event_event_ticket_view_tree_from_event"/>
  35. <field name="arch" type="xml">
  36. <field name="start_sale_datetime" position="attributes">
  37. <attribute name="string">Sales Start</attribute>
  38. </field>
  39. <field name="end_sale_datetime" position="attributes">
  40. <attribute name="string">Sales End</attribute>
  41. </field>
  42. <field name="name" position="after">
  43. <field name="product_id" context="{'default_detailed_type': 'event'}"/>
  44. </field>
  45. <field name="description" position="after">
  46. <field name="price"/>
  47. </field>
  48. </field>
  49. </record>
  50. <record id="event_event_ticket_view_form_from_event" model="ir.ui.view">
  51. <field name="name">event.event.ticket.view.form.from.event.inherit.sale</field>
  52. <field name="model">event.event.ticket</field>
  53. <field name="inherit_id" ref="event.event_event_ticket_view_form_from_event"/>
  54. <field name="arch" type="xml">
  55. <field name="name" position="after">
  56. <field name="product_id" context="{'default_detailed_type': 'event'}"/>
  57. </field>
  58. <field name="description" position="after">
  59. <field name="price"/>
  60. </field>
  61. </field>
  62. </record>
  63. <record id="event_event_ticket_view_kanban_from_event" model="ir.ui.view">
  64. <field name="name">event.event.ticket.view.kanban.from.event</field>
  65. <field name="model">event.event.ticket</field>
  66. <field name="inherit_id" ref="event.event_event_ticket_view_kanban_from_event"/>
  67. <field name="arch" type="xml">
  68. <field name="name" position="after">
  69. <field name="product_id"/>
  70. <field name="price"/>
  71. </field>
  72. <xpath expr="//div[hasclass('col-8')]" position="after">
  73. <div class="col-4 text-end"><strong> <t t-out="record.price.value"/></strong></div>
  74. </xpath>
  75. <xpath expr="//div[hasclass('row')]" position="after">
  76. <div t-out="record.product_id.value"/>
  77. </xpath>
  78. </field>
  79. </record>
  80. <record id="event_event_ticket_form_view" model="ir.ui.view">
  81. <field name="name">event.event.ticket.view.form.inherit.sale</field>
  82. <field name="model">event.event.ticket</field>
  83. <field name="inherit_id" ref="event.event_event_ticket_form_view"/>
  84. <field name="arch" type="xml">
  85. <field name="end_sale_datetime" position="after">
  86. <field name="price"/>
  87. <field name="price_reduce" groups="base.group_no_one"/>
  88. </field>
  89. <field name="seats_used" position="after">
  90. <field name="product_id"/>
  91. </field>
  92. </field>
  93. </record>
  94. </data></odoo>