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.

138 lines
6.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Working Time calendar -->
  5. <record id="worktime_9_18" model="resource.calendar">
  6. <field name="name">Working Days 09-13 14-18</field>
  7. </record>
  8. <record id="worktime 9_18_0M" model="resource.calendar.attendance">
  9. <field name="dayofweek">0</field>
  10. <field name="name">Monday Morning</field>
  11. <field name="hour_from">9</field>
  12. <field name="hour_to">13</field>
  13. <field name="calendar_id" ref="worktime_9_18" />
  14. </record>
  15. <record id="worktime 9_18_0A" model="resource.calendar.attendance">
  16. <field name="dayofweek">0</field>
  17. <field name="name">Monday Afternoon</field>
  18. <field name="hour_from">14</field>
  19. <field name="hour_to">18</field>
  20. <field name="calendar_id" ref="worktime_9_18" />
  21. </record>
  22. <record id="worktime 9_18_1M" model="resource.calendar.attendance">
  23. <field name="dayofweek">1</field>
  24. <field name="name">Tuesday Morning</field>
  25. <field name="hour_from">9</field>
  26. <field name="hour_to">13</field>
  27. <field name="calendar_id" ref="worktime_9_18" />
  28. </record>
  29. <record id="worktime 9_18_1A" model="resource.calendar.attendance">
  30. <field name="dayofweek">1</field>
  31. <field name="name">Tuesday Afternoon</field>
  32. <field name="hour_from">14</field>
  33. <field name="hour_to">18</field>
  34. <field name="calendar_id" ref="worktime_9_18" />
  35. </record>
  36. <record id="worktime 9_18_2M" model="resource.calendar.attendance">
  37. <field name="dayofweek">2</field>
  38. <field name="name">Wednesday Morning</field>
  39. <field name="hour_from">9</field>
  40. <field name="hour_to">13</field>
  41. <field name="calendar_id" ref="worktime_9_18" />
  42. </record>
  43. <record id="worktime 9_18_2A" model="resource.calendar.attendance">
  44. <field name="dayofweek">2</field>
  45. <field name="name">Wednesday Afternoon</field>
  46. <field name="hour_from">14</field>
  47. <field name="hour_to">18</field>
  48. <field name="calendar_id" ref="worktime_9_18" />
  49. </record>
  50. <record id="worktime 9_18_3M" model="resource.calendar.attendance">
  51. <field name="dayofweek">3</field>
  52. <field name="name">Thursday Morning</field>
  53. <field name="hour_from">9</field>
  54. <field name="hour_to">13</field>
  55. <field name="calendar_id" ref="worktime_9_18" />
  56. </record>
  57. <record id="worktime 9_18_3A" model="resource.calendar.attendance">
  58. <field name="dayofweek">3</field>
  59. <field name="name">Thursday Afternoon</field>
  60. <field name="hour_from">14</field>
  61. <field name="hour_to">18</field>
  62. <field name="calendar_id" ref="worktime_9_18" />
  63. </record>
  64. <record id="worktime 9_18_4M" model="resource.calendar.attendance">
  65. <field name="dayofweek">4</field>
  66. <field name="name">Friday Morning</field>
  67. <field name="hour_from">9</field>
  68. <field name="hour_to">13</field>
  69. <field name="calendar_id" ref="worktime_9_18" />
  70. </record>
  71. <record id="worktime 9_18_4A" model="resource.calendar.attendance">
  72. <field name="dayofweek">4</field>
  73. <field name="name">Friday Afternoon</field>
  74. <field name="hour_from">14</field>
  75. <field name="hour_to">18</field>
  76. <field name="calendar_id" ref="worktime_9_18" />
  77. </record>
  78. <!-- Set Project Calendar -->
  79. <record id="project.project_project_1" model="project.project">
  80. <field name="resource_calendar_id" ref="worktime_9_18" />
  81. </record>
  82. <!-- SLA Definition and Rules -->
  83. <record id="sla_resolution" model="project.sla">
  84. <field name="name">Standard Resolution Time</field>
  85. <field name="control_model">project.issue</field>
  86. <field name="control_field_id"
  87. ref="project_issue.field_project_issue_date_closed"/>
  88. </record>
  89. <record id="sla_resolution_rule1" model="project.sla.line">
  90. <field name="sla_id" ref="sla_resolution"/>
  91. <field name="sequence">10</field>
  92. <field name="name">Resolution in two business days</field>
  93. <field name="condition">obj.priority &lt;= '2'</field>
  94. <field name="limit_qty">16</field>
  95. <field name="warn_qty">8</field>
  96. </record>
  97. <record id="sla_resolution_rule2" model="project.sla.line">
  98. <field name="sla_id" ref="sla_resolution"/>
  99. <field name="sequence">20</field>
  100. <field name="name">Resolution in three business days</field>
  101. <field name="condition"></field>
  102. <field name="limit_qty">24</field>
  103. <field name="warn_qty">16</field>
  104. </record>
  105. <record id="sla_response" model="project.sla">
  106. <field name="name">Standard Response Time</field>
  107. <field name="control_model">project.issue</field>
  108. <field name="control_field_id"
  109. ref="project_issue.field_project_issue_date_open"/>
  110. </record>
  111. <record id="sla_response_rule1" model="project.sla.line">
  112. <field name="sla_id" ref="sla_response"/>
  113. <field name="sequence">10</field>
  114. <field name="name">Response in one business day</field>
  115. <field name="condition">obj.priority &lt;= '2'</field>
  116. <field name="limit_qty">8</field>
  117. <field name="warn_qty">4</field>
  118. </record>
  119. <record id="sla_response_rule2" model="project.sla.line">
  120. <field name="sla_id" ref="sla_response"/>
  121. <field name="sequence">20</field>
  122. <field name="name">Response in two business days</field>
  123. <field name="condition"></field>
  124. <field name="limit_qty">16</field>
  125. <field name="warn_qty">8</field>
  126. </record>
  127. <!-- Set Contract Resolution SLA Definition -->
  128. <record id="project.project_project_1_account_analytic_account" model="account.analytic.account">
  129. <field name="sla_ids" eval="[(6, 0, [ref('sla_resolution')])]" />
  130. </record>
  131. </data>
  132. </openerp>