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.

84 lines
3.7 KiB

9.0 add date range Sorrento Delivery * [ADD] Basic structure for the new date range module * [IMP] Add a basic description into the README * [IMP] Basic implementation * [IMP] First working implementation * [IMP] Improve datamodel * [ADD] Add basic tests for date.range * [PEP8] * [PYLINT] * [DEL] Remove unused code * [IMP] Remove unsused dependencies into the JS * [IMP] Better operator label for date range * [DEL] Remove unused file * [IMP] Better user experience by showing the select input only once empty * [FIX]Try to fix tests that fails only on travis by adding an explicit cast on the daterange methods parameters * [FIX]Try to fix tests that fails only on travis by adding an explicit cast on the daterange methods parameters * [FIX]Try to fix tests that fails only on travis by using postgresql 9.4 * [FIX]Try with postgresql 9.2 since the daterange method has appeared in 9.2 * [IMP] Add a limitation into the module description to warm about the minimal version of postgresql to use * [IMP]Add multi-company rules * [IMP]Remove unused files * [FIX] Add missing brackets into JS * [FIX] Overlap detection when company_id is False * [IMP] Add default order for date.range * [IMP] Add date range generator * [FIX] OE compatibility * [FIX] Travis * [IMP] Code cleanup and improves test coverage * [FIX] Add missing dependency on 'web' * [PYLINT] remove unused import * [FIX] Add missing copyright * [FIX] Limits are included into the range * [IMP][date_range] Security * [IMP] Improve module description * [IMP] Spelling
9 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="view_date_range_tree" model="ir.ui.view">
  4. <field name="name">date.range.tree</field>
  5. <field name="model">date.range</field>
  6. <field name="arch" type="xml">
  7. <tree editable="bottom" string="Date range">
  8. <field name="name"/>
  9. <field name="type_id"/>
  10. <field name="date_start"/>
  11. <field name="date_end"/>
  12. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  13. <field name="active"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="view_date_range_form_view" model="ir.ui.view">
  18. <field name="name">date.range.form</field>
  19. <field name="model">date.range</field>
  20. <field name="arch" type="xml">
  21. <form string="Date Range">
  22. <group col="4">
  23. <field name="name"/>
  24. <field name="type_id"/>
  25. <field name="date_start"/>
  26. <field name="date_end"/>
  27. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  28. <field name="active"/>
  29. </group>
  30. </form>
  31. </field>
  32. </record>
  33. <record id="view_date_range_type_tree" model="ir.ui.view">
  34. <field name="name">date.range.type.tree</field>
  35. <field name="model">date.range.type</field>
  36. <field name="arch" type="xml">
  37. <tree editable="bottom" string="Date range type">
  38. <field name="name"/>
  39. <field name="allow_overlap"/>
  40. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  41. <field name="active"/>
  42. </tree>
  43. </field>
  44. </record>
  45. <record id="view_date_range_type_form_view" model="ir.ui.view">
  46. <field name="name">date.range.type.form</field>
  47. <field name="model">date.range.type</field>
  48. <field name="arch" type="xml">
  49. <form string="Date Range Type">
  50. <group col="4">
  51. <field name="name"/>
  52. <field name="allow_overlap"/>
  53. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  54. <field name="active"/>
  55. </group>
  56. </form>
  57. </field>
  58. </record>
  59. <record id="date_range_action" model="ir.actions.act_window">
  60. <field name="name">Date Ranges</field>
  61. <field name="type">ir.actions.act_window</field>
  62. <field name="res_model">date.range</field>
  63. <field name="view_type">form</field>
  64. <field name="view_mode">tree,form</field>
  65. <field name="view_id" ref="view_date_range_tree"/>
  66. <field name="domain">[]</field>
  67. <field name="context">{}</field>
  68. </record>
  69. <record id="date_range_type_action" model="ir.actions.act_window">
  70. <field name="name">Date Range Types</field>
  71. <field name="type">ir.actions.act_window</field>
  72. <field name="res_model">date.range.type</field>
  73. <field name="view_type">form</field>
  74. <field name="view_mode">tree,form</field>
  75. <field name="view_id" ref="view_date_range_type_tree"/>
  76. <field name="domain">[]</field>
  77. <field name="context">{}</field>
  78. </record>
  79. <menuitem id="menu_date_range" name="Date ranges"
  80. parent="base.menu_custom" sequence="1"/>
  81. <menuitem action="date_range_action" id="menu_date_range_action" parent="menu_date_range"/>
  82. <menuitem action="date_range_type_action"
  83. id="menu_date_range_type_action" parent="menu_date_range"/>
  84. </odoo>