86 lines
3.8 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
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
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="parent_id"/>
  14. <field name="active"/>
  15. </tree>
  16. </field>
  17. </record>
  18. <record id="view_date_range_form_view" model="ir.ui.view">
  19. <field name="name">date.range.form</field>
  20. <field name="model">date.range</field>
  21. <field name="arch" type="xml">
  22. <form string="Date Range">
  23. <group col="4">
  24. <field name="name"/>
  25. <field name="type_id"/>
  26. <field name="date_start"/>
  27. <field name="date_end"/>
  28. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  29. <field name="parent_id"/>
  30. <field name="active"/>
  31. </group>
  32. </form>
  33. </field>
  34. </record>
  35. <record id="view_date_range_type_tree" model="ir.ui.view">
  36. <field name="name">date.range.type.tree</field>
  37. <field name="model">date.range.type</field>
  38. <field name="arch" type="xml">
  39. <tree editable="bottom" string="Date range type">
  40. <field name="name"/>
  41. <field name="allow_overlap"/>
  42. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  43. <field name="active"/>
  44. </tree>
  45. </field>
  46. </record>
  47. <record id="view_date_range_type_form_view" model="ir.ui.view">
  48. <field name="name">date.range.type.form</field>
  49. <field name="model">date.range.type</field>
  50. <field name="arch" type="xml">
  51. <form string="Date Range Type">
  52. <group col="4">
  53. <field name="name"/>
  54. <field name="allow_overlap"/>
  55. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  56. <field name="active"/>
  57. </group>
  58. </form>
  59. </field>
  60. </record>
  61. <record id="date_range_action" model="ir.actions.act_window">
  62. <field name="name">Date Ranges</field>
  63. <field name="type">ir.actions.act_window</field>
  64. <field name="res_model">date.range</field>
  65. <field name="view_type">form</field>
  66. <field name="view_mode">tree,form</field>
  67. <field name="view_id" ref="view_date_range_tree"/>
  68. <field name="domain">[]</field>
  69. <field name="context">{}</field>
  70. </record>
  71. <record id="date_range_type_action" model="ir.actions.act_window">
  72. <field name="name">Date Range Types</field>
  73. <field name="type">ir.actions.act_window</field>
  74. <field name="res_model">date.range.type</field>
  75. <field name="view_type">form</field>
  76. <field name="view_mode">tree,form</field>
  77. <field name="view_id" ref="view_date_range_type_tree"/>
  78. <field name="domain">[]</field>
  79. <field name="context">{}</field>
  80. </record>
  81. <menuitem id="menu_date_range" name="Date ranges"
  82. parent="base.menu_custom" sequence="1"/>
  83. <menuitem action="date_range_action" id="menu_date_range_action" parent="menu_date_range"/>
  84. <menuitem action="date_range_type_action"
  85. id="menu_date_range_type_action" parent="menu_date_range"/>
  86. </odoo>