'requirements': fields.text('Requirements'),
'department_id': fields.many2one('hr.department', 'Department'),
'company_id': fields.many2one('res.company', 'Company'),
- 'state': fields.selection([('open', 'In Position'),('recruit', 'In Recruitement'),('done', 'Done')], 'Status', readonly=True, required=True, help='By default all job are \'In position\', set it \'In Recruitment\' if recruitment process is going on for this job position.'),
+ 'state': fields.selection([('open', 'In Position'),('recruit', 'In Recruitement')], 'Status', readonly=True, required=True, help='By default all job are \'In position\', set it \'In Recruitment\' if recruitment process is going on for this job position.'),
}
_defaults = {
'expected_employees': 1,
self.write(cr, uid, ids, {'state': 'open', 'no_of_recruitment': 0})
return True
- def job_done(self, cr, uid, ids, *args):
- self.write(cr, uid, ids, {'state': 'done', 'no_of_recruitment': 0})
- return True
-
hr_job()
class hr_employee(osv.osv):
<form layout="manual">
<header>
<button name="job_recruitement" string="In Recruitement" states="open" type="object"/>
- <button name="job_done" string="Recruitment Done" states="recruit" type="object"/>
+ <button name="job_open" string="Recruitment Done" states="recruit" type="object"/>
<field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
</header>
<sheet string="Job" layout="auto">
<data>
<record id="action_view_holiday_status_manager_board" model="ir.actions.act_window">
- <field name="name">Leaves To Validate</field>
+ <field name="name">Leaves To Approved</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">hr.holidays</field>
<field name="view_type">form</field>
for obj in self.browse(cr, uid, ids):
if obj.holiday_status_id.double_validation:
self.message_append_note(cr, uid, [obj.id], _('System notification'),
- _("The %s request has been <b>validated</b>. A second validation is necessary and is now pending.")
+ _("The %s request has been <b>Approved</b>. A second validation is necessary and is now pending.")
% ('leave' if obj.type == 'remove' else 'allocation',), type='notification', context=context)
else:
self.message_append_note(cr, uid, [obj.id], _('System notification'),
- _("The %s request has been <b>validated</b>. The validation process is now over.")
+ _("The %s request has been <b>Approved</b>. The validation process is now over.")
% ('leave' if obj.type == 'remove' else 'allocation',), type='notification', context=context)
def holidays_valid2_notificate(self, cr, uid, ids, context=None):
else:
holiday_type=('validate')
else:
- type="Confirmed and Validated"
+ type="Approved and Confirmed"
holiday_type=('confirm','validate')
date_xml.append('<from>%s</from>\n'% (str(rml_obj.formatLang(som.strftime("%Y-%m-%d"),date=True))))
date_xml.append('<to>%s</to>\n' %(str(rml_obj.formatLang(eom.strftime("%Y-%m-%d"),date=True))))
<field name="model">hr.holidays.summary.employee</field>
<field name="type">form</field>
<field name="arch" type="xml">
- <form string="Employee's Leaves">
+ <form string="Leaves Summary">
<group col="4" colspan="6">
<field name="date_from"/>
<newline/>
</record>
<record id="action_hr_holidays_summary_employee" model="ir.actions.act_window">
- <field name="name">Employee's Leaves</field>
+ <field name="name">Leaves Summary</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">hr.holidays.summary.employee</field>
<field name="view_type">form</field>
<record model="ir.values" id="hr_holidays_summary_employee_value">
<field name="model_id" ref="hr.model_hr_employee" />
- <field name="name">Employee's Leaves</field>
+ <field name="name">Leaves Summary</field>
<field name="key2">client_print_multi</field>
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_hr_holidays_summary_employee'))" />
<field name="key">action</field>