Odoo modules related to events management
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.

46 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="event_event_view_form_inherit" model="ir.ui.view">
  4. <field name="name">event.event.view.form.inherit</field>
  5. <field name="model">event.event</field>
  6. <field name="inherit_id" ref="website_event_questions.event_event_view_form" />
  7. <field name="arch" type="xml">
  8. <xpath expr="//field[@name='once_per_order']/.." position="attributes">
  9. <attribute name="class">o_label_nowrap</attribute>
  10. </xpath>
  11. <field name="once_per_order" position="after">
  12. <field name="add_products" />
  13. <field name="qty_by_attendees" />
  14. </field>
  15. <xpath expr="//field[@name='question_ids']/form//tree" position="attributes">
  16. <attribute name="editable">0</attribute>
  17. </xpath>
  18. <xpath expr="//field[@name='question_ids']/form//tree" position="inside">
  19. <field name="extra_product_ids" widget="one2many" options="{'no_quick_create': 1}"
  20. attrs="{'cdolumn_invisible':[('parent.add_products','!=',True)]}">
  21. <!-- <form>
  22. <group>
  23. <group>
  24. <field name="product_id" />
  25. <field name="price_unit" />
  26. </group>
  27. <group>
  28. <field name="quantity" />
  29. <field name="uom_id" />
  30. <field name="uom_category_id" invisible="1" />
  31. </group>
  32. </group>
  33. </form> -->
  34. <tree editable="bottom">
  35. <field name="product_id" />
  36. <field name="price_unit" />
  37. <field name="quantity" />
  38. <field name="uom_id" />
  39. <field name="uom_category_id" invisible="1" />
  40. </tree>
  41. </field>
  42. </xpath>
  43. </field>
  44. </record>
  45. </odoo>