hr_contract_demo.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="base.user_demo" model="res.users">
  4. <field name="groups_id" eval="[(4, ref('hr_contract.group_hr_contract_manager'))]"/>
  5. </record>
  6. <record id="hr_contract_admin" model="hr.contract">
  7. <field name="name">Mitchell Admin Contract</field>
  8. <field name="date_start" eval="time.strftime('%Y')+'-1-1'"/>
  9. <field name="date_end" eval="time.strftime('%Y-%m-15')"/>
  10. <field name="employee_id" ref="hr.employee_admin"/>
  11. <field name="job_id" model="hr.job"
  12. eval="obj().env.ref('hr.employee_admin').job_id.id"/>
  13. <field name="department_id" model="hr.department"
  14. eval="obj().env.ref('hr.employee_admin').department_id.id"/>
  15. <field eval="7540.0" name="wage"/>
  16. <field name="state">close</field>
  17. <field name="kanban_state">normal</field>
  18. <field name="resource_calendar_id" ref="resource.resource_calendar_std_38h"/>
  19. </record>
  20. <record id="hr_contract_admin_new" model="hr.contract">
  21. <field name="name">Contract For Mitchell Admin</field>
  22. <field name="date_start" eval="time.strftime('%Y-%m-16')"/>
  23. <field name="date_end" eval="time.strftime('%Y')+'-12-31'"/>
  24. <field name="structure_type_id" ref="hr_contract.structure_type_employee"/>
  25. <field name="employee_id" ref="hr.employee_admin"/>
  26. <field name="notes">This is Mitchell Admin's contract</field>
  27. <field eval="5500.0" name="wage"/>
  28. <field name="state">open</field>
  29. <field name="resource_calendar_id" ref="resource.resource_calendar_std"/>
  30. </record>
  31. <record id="hr_contract_al" model="hr.contract">
  32. <field name="name">Ronnie Hart Contract</field>
  33. <field name="date_start" eval="time.strftime('%Y')+'-1-1'"/>
  34. <field name="employee_id" ref="hr.employee_al"/>
  35. <field name="job_id" model="hr.job"
  36. eval="obj().env.ref('hr.employee_al').job_id.id"/>
  37. <field name="department_id" model="hr.department"
  38. eval="obj().env.ref('hr.employee_al').department_id.id"/>
  39. <field eval="4000.0" name="wage"/>
  40. <field name="state">open</field>
  41. <field name="kanban_state">normal</field>
  42. </record>
  43. <record id="hr_contract_mit" model="hr.contract">
  44. <field name="name">R&amp;D Dev Contract</field>
  45. <field name="date_start" eval="time.strftime('%Y')+'-3-1'"/>
  46. <field name="employee_id" ref="hr.employee_mit"/>
  47. <field name="job_id" model="hr.job"
  48. eval="obj().env.ref('hr.employee_mit').job_id.id"/>
  49. <field name="department_id" model="hr.department"
  50. eval="obj().env.ref('hr.employee_mit').department_id.id"/>
  51. <field eval="4500.0" name="wage"/>
  52. <field name="state">open</field>
  53. <field name="kanban_state">normal</field>
  54. </record>
  55. <record id="hr_contract_stw" model="hr.contract">
  56. <field name="name">Randall Lewis Contract</field>
  57. <field name="date_start" eval="time.strftime('%Y')+'-2-1'"/>
  58. <field name="date_end" eval="time.strftime('%Y')+'-12-1'"/>
  59. <field name="employee_id" ref="hr.employee_stw"/>
  60. <field name="job_id" model="hr.job"
  61. eval="obj().env.ref('hr.employee_stw').job_id.id"/>
  62. <field name="department_id" model="hr.department"
  63. eval="obj().env.ref('hr.employee_stw').department_id.id"/>
  64. <field eval="4500.0" name="wage"/>
  65. <field name="state">open</field>
  66. <field name="kanban_state">normal</field>
  67. </record>
  68. <record id="hr_contract_qdp" model="hr.contract">
  69. <field name="name">Demo Contract</field>
  70. <field name="date_start" eval="(DateTime.today() + relativedelta(years=-1, month=9))"/>
  71. <field name="employee_id" ref="hr.employee_qdp"/>
  72. <field name="job_id" model="hr.job"
  73. eval="obj().env.ref('hr.employee_qdp').job_id.id"/>
  74. <field name="department_id" model="hr.department"
  75. eval="obj().env.ref('hr.employee_qdp').department_id.id"/>
  76. <field eval="3750.0" name="wage"/>
  77. <field name="state">draft</field>
  78. <field name="kanban_state">normal</field>
  79. </record>
  80. <record id="hr.employee_qdp" model="hr.employee">
  81. <field name="contract_id" ref="hr_contract.hr_contract_qdp"/>
  82. </record>
  83. <record id="hr_contract_han" model="hr.contract">
  84. <field name="name">Walter Horton Contract</field>
  85. <field name="date_start" eval="time.strftime('%Y')+'-3-1'"/>
  86. <field name="employee_id" ref="hr.employee_han"/>
  87. <field name="job_id" model="hr.job"
  88. eval="obj().env.ref('hr.employee_han').job_id.id"/>
  89. <field name="department_id" model="hr.department"
  90. eval="obj().env.ref('hr.employee_han').department_id.id"/>
  91. <field eval="4600.0" name="wage"/>
  92. <field name="state">open</field>
  93. <field name="kanban_state">normal</field>
  94. </record>
  95. <record id="hr_contract_niv" model="hr.contract">
  96. <field name="name">Sharlene Rhodes Contract</field>
  97. <field name="date_start" eval="time.strftime('%Y-%m')+'-1'"/>
  98. <field name="date_end" eval="time.strftime('%Y')+'-12-1'"/>
  99. <field name="employee_id" ref="hr.employee_niv"/>
  100. <field name="job_id" model="hr.job"
  101. eval="obj().env.ref('hr.employee_niv').job_id.id"/>
  102. <field name="department_id" model="hr.department"
  103. eval="obj().env.ref('hr.employee_niv').department_id.id"/>
  104. <field eval="4000.0" name="wage"/>
  105. <field name="state">draft</field>
  106. <field name="kanban_state">normal</field>
  107. </record>
  108. <record id="hr_contract_jth" model="hr.contract">
  109. <field name="name">Toni Jimenez</field>
  110. <field name="date_start" eval="time.strftime('%Y-%m')+'-1'"/>
  111. <field name="date_end" eval="time.strftime('%Y')+'-12-1'"/>
  112. <field name="employee_id" ref="hr.employee_jth"/>
  113. <field name="job_id" model="hr.job"
  114. eval="obj().env.ref('hr.employee_jth').job_id.id"/>
  115. <field name="department_id" model="hr.department"
  116. eval="obj().env.ref('hr.employee_jth').department_id.id"/>
  117. <field eval="4200.0" name="wage"/>
  118. <field name="state">draft</field>
  119. <field name="kanban_state">normal</field>
  120. </record>
  121. <record id="hr_contract_chs" model="hr.contract">
  122. <field name="name">Jennie Fletcher Contract</field>
  123. <field name="date_start" eval="time.strftime('%Y-%m')+'-1'"/>
  124. <field name="employee_id" ref="hr.employee_chs"/>
  125. <field name="job_id" model="hr.job"
  126. eval="obj().env.ref('hr.employee_chs').job_id.id"/>
  127. <field name="department_id" model="hr.department"
  128. eval="obj().env.ref('hr.employee_chs').department_id.id"/>
  129. <field eval="3750.0" name="wage"/>
  130. <field name="state">cancel</field>
  131. <field name="kanban_state">normal</field>
  132. </record>
  133. <record id="hr_contract_jve" model="hr.contract">
  134. <field name="name">Paul Williams Contract</field>
  135. <field name="date_start" eval="time.strftime('%Y-%m')+'-1'"/>
  136. <field name="employee_id" ref="hr.employee_jve"/>
  137. <field name="job_id" model="hr.job"
  138. eval="obj().env.ref('hr.employee_jve').job_id.id"/>
  139. <field name="department_id" model="hr.department"
  140. eval="obj().env.ref('hr.employee_jve').department_id.id"/>
  141. <field eval="3950.0" name="wage"/>
  142. <field name="state">cancel</field>
  143. <field name="kanban_state">normal</field>
  144. </record>
  145. <record id="hr_contract_fme" model="hr.contract">
  146. <field name="name">Keith Byrd Contract</field>
  147. <field name="date_start" eval="'2015-1-1'"/>
  148. <field name="date_end" eval="time.strftime('%Y-%m-%d')"/>
  149. <field name="employee_id" ref="hr.employee_fme"/>
  150. <field name="job_id" model="hr.job"
  151. eval="obj().env.ref('hr.employee_fme').job_id.id"/>
  152. <field name="department_id" model="hr.department"
  153. eval="obj().env.ref('hr.employee_fme').department_id.id"/>
  154. <field eval="3650.0" name="wage"/>
  155. <field name="state">open</field>
  156. <field name="kanban_state">blocked</field>
  157. </record>
  158. <record id="hr_contract_fpi_previous" model="hr.contract">
  159. <field name="name">Audrey Peterson Contract</field>
  160. <field name="date_start" eval="'2014-1-1'"/>
  161. <field name="date_end" eval="'2014-12-31'"/>
  162. <field name="employee_id" ref="hr.employee_fpi"/>
  163. <field name="job_id" model="hr.job"
  164. eval="obj().env.ref('hr.employee_fpi').job_id.id"/>
  165. <field name="department_id" model="hr.department"
  166. eval="obj().env.ref('hr.employee_fpi').department_id.id"/>
  167. <field eval="3700.0" name="wage"/>
  168. <field name="state">close</field>
  169. <field name="kanban_state">normal</field>
  170. </record>
  171. <record id="hr_contract_fpi" model="hr.contract">
  172. <field name="name">Audrey Peterson Contract</field>
  173. <field name="date_start" eval="'2015-1-1'"/>
  174. <field name="date_end" eval="'2017-12-1'"/>
  175. <field name="employee_id" ref="hr.employee_fpi"/>
  176. <field name="job_id" model="hr.job"
  177. eval="obj().env.ref('hr.employee_fpi').job_id.id"/>
  178. <field name="department_id" model="hr.department"
  179. eval="obj().env.ref('hr.employee_fpi').department_id.id"/>
  180. <field eval="3750.0" name="wage"/>
  181. <field name="state">close</field>
  182. <field name="kanban_state">normal</field>
  183. </record>
  184. <record id="hr_contract_vad" model="hr.contract">
  185. <field name="name">Tina Williamson Contract</field>
  186. <field name="date_start" eval="'2015-1-1'"/>
  187. <field name="date_end" eval="'2018-2-1'"/>
  188. <field name="employee_id" ref="hr.employee_vad"/>
  189. <field name="job_id" model="hr.job"
  190. eval="obj().env.ref('hr.employee_vad').job_id.id"/>
  191. <field name="department_id" model="hr.department"
  192. eval="obj().env.ref('hr.employee_vad').department_id.id"/>
  193. <field eval="3750.0" name="wage"/>
  194. <field name="state">close</field>
  195. <field name="kanban_state">normal</field>
  196. </record>
  197. </odoo>