parent
2b04f2f320
commit
8d3365c1ba
|
@ -32,8 +32,8 @@ AVAILABLE_STATES = [
|
|||
('draft', 'New'),
|
||||
('open', 'In Progress'),
|
||||
('pending', 'Pending'),
|
||||
('done', 'Closed'),
|
||||
('cancel', 'Cancelled'),
|
||||
('done', 'Closed'),
|
||||
|
||||
]
|
||||
|
||||
|
|
|
@ -52,8 +52,8 @@ class crm_phonecall(crm_base, osv.osv):
|
|||
('draft', 'Draft'),
|
||||
('open', 'Todo'),
|
||||
('pending', 'Not Held'),
|
||||
('done', 'Held'),
|
||||
('cancel', 'Cancelled'),
|
||||
('done', 'Held'),
|
||||
], 'State', size=16, readonly=True,
|
||||
help='The state is set to \'Todo\', when a case is created.\
|
||||
\nIf the case is in progress the state is set to \'Open\'.\
|
||||
|
|
|
@ -110,7 +110,7 @@ class hr_job(osv.osv):
|
|||
'requirements': fields.text('Requirements'),
|
||||
'department_id': fields.many2one('hr.department', 'Department'),
|
||||
'company_id': fields.many2one('res.company', 'Company'),
|
||||
'state': fields.selection([('open', 'In Position'),('old', 'Old'),('recruit', 'In Recruitement')], 'State', readonly=True, required=True),
|
||||
'state': fields.selection([('open', 'In Position'),('recruit', 'In Recruitement'),('old', 'Old')], 'State', readonly=True, required=True),
|
||||
}
|
||||
_defaults = {
|
||||
'expected_employees': 1,
|
||||
|
|
|
@ -163,8 +163,8 @@ class hr_evaluation(osv.osv):
|
|||
('draft','New'),
|
||||
('wait','Plan In Progress'),
|
||||
('progress','Waiting Appreciation'),
|
||||
('done','Done'),
|
||||
('cancel','Cancelled'),
|
||||
('done','Done'),
|
||||
], 'State', required=True, readonly=True),
|
||||
'date_close': fields.date('Ending Date', select=True),
|
||||
'progress': fields.float("Progress"),
|
||||
|
|
|
@ -162,7 +162,7 @@
|
|||
<button name="button_draft" string="Reset to Draft" states="cancel" type="object" icon="terp-stock_effects-object-colorize"/>
|
||||
<button name="button_cancel" string="Cancel" states="draft,wait,progress" type="object" icon="gtk-cancel"/>
|
||||
<div class="oe_right">
|
||||
<field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,progress,wait,done" statusbar_colors='{"progress":"blue"}'/>
|
||||
<field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,wait,done" statusbar_colors='{"progress":"blue"}'/>
|
||||
</div>
|
||||
</div>
|
||||
<sheet string="Appraisal" layout="auto">
|
||||
|
|
|
@ -80,10 +80,11 @@ class hr_expense_expense(osv.osv):
|
|||
'state': fields.selection([
|
||||
('draft', 'New'),
|
||||
('confirm', 'Waiting Approval'),
|
||||
('cancelled', 'Refused'),
|
||||
('accepted', 'Approved'),
|
||||
('invoiced', 'Invoiced'),
|
||||
('paid', 'Reimbursed'),
|
||||
('cancelled', 'Refused')],
|
||||
('paid', 'Reimbursed')
|
||||
],
|
||||
'State', readonly=True, help='When the expense request is created the state is \'Draft\'.\n It is confirmed by the user and request is sent to admin, the state is \'Waiting Confirmation\'.\
|
||||
\nIf the admin accepts it, the state is \'Accepted\'.\n If an invoice is made for the expense request, the state is \'Invoiced\'.\n If the expense is paid to user, the state is \'Reimbursed\'.'),
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
<button name="invoice" states="accepted" string="Invoice" type="object" icon="gtk-go-forward" groups="base.group_hr_user"/>
|
||||
<button name="refuse" states="confirm,accepted" string="Refuse" type="workflow" icon="gtk-no" groups="base.group_hr_user" />
|
||||
<div class="oe_right">
|
||||
<field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm,accepted,invoiced" statusbar_colors='{"confirm":"blue","cancelled":"red"}'/>
|
||||
<field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm,accepted" statusbar_colors='{"confirm":"blue","cancelled":"red"}'/>
|
||||
</div>
|
||||
</div>
|
||||
<sheet string="Expenses Sheet" layout="auto">
|
||||
|
|
|
@ -36,9 +36,9 @@ wizard.mail_compose_message.SUPPORTED_MODELS.append('hr.applicant')
|
|||
AVAILABLE_STATES = [
|
||||
('draft', 'New'),
|
||||
('open', 'In Progress'),
|
||||
('pending', 'Pending'),
|
||||
('cancel', 'Refused'),
|
||||
('done', 'Hired'),
|
||||
('pending', 'Pending')
|
||||
('done', 'Hired')
|
||||
]
|
||||
|
||||
AVAILABLE_PRIORITIES = [
|
||||
|
|
|
@ -76,8 +76,8 @@
|
|||
<field name="arch" type="xml">
|
||||
<form layout="manual">
|
||||
<div class="oe_form_topbar">
|
||||
<button name="case_open" string="In Progress" states="draft,pending" type="object" icon="gtk-go-forward"/>
|
||||
<button name="%(action_hr_recruitment_hired_employee)d" string="Hire" states="open,pending" type="action" icon="terp-partner"/>
|
||||
<button name="case_open" string="In Progress" states="draft,pending" type="object" icon="gtk-go-forward"/>
|
||||
<button name="case_pending" string="Pending" states="open" type="object" icon="gtk-media-pause"/>
|
||||
<button name="case_reset" string="Reset to New" states="done,cancel" type="object" icon="gtk-convert"/>
|
||||
<button name="case_cancel" string="Refuse" states="draft,open,pending" type="object" icon="gtk-cancel"/>
|
||||
|
|
Loading…
Reference in New Issue