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.

47 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- Copyright 2019 Tecnativa - David Vidal
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record id="global_discount_view_tree" model="ir.ui.view">
  6. <field name="model">global.discount</field>
  7. <field name="arch" type="xml">
  8. <tree string="Global Discounts" editable="bottom">
  9. <field name="sequence" widget="handle" />
  10. <field name="name" />
  11. <field name="discount" />
  12. <field name="discount_scope" />
  13. <field name="company_id" />
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="global_discount_view_form" model="ir.ui.view">
  18. <field name="model">global.discount</field>
  19. <field name="arch" type="xml">
  20. <form string="Global Discounts">
  21. <sheet>
  22. <group col="4">
  23. <field name="name" />
  24. <field name="sequence" />
  25. <field name="discount" />
  26. <field name="discount_scope" />
  27. <field name="company_id" />
  28. </group>
  29. </sheet>
  30. </form>
  31. </field>
  32. </record>
  33. <record id="action_global_discount_tree" model="ir.actions.act_window">
  34. <field name="name">Global Discounts</field>
  35. <field name="type">ir.actions.act_window</field>
  36. <field name="res_model">global.discount</field>
  37. <field name="view_mode">tree,form</field>
  38. </record>
  39. <menuitem
  40. id="menu_global_discount"
  41. action="action_global_discount_tree"
  42. name="Global Discounts"
  43. sequence="1"
  44. parent="base.menu_ir_property"
  45. groups="base_global_discount.group_global_discount"
  46. />
  47. </odoo>