diff options
| author | Raphael Collet <rco@openerp.com> | 2015-09-02 10:22:16 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-09-02 14:29:42 +0200 |
| commit | ed95043d7e0c04efd46f033f41bb401a3c24ea91 (patch) | |
| tree | 397c41994a91377c296ea720d971b32632807f42 /addons/hr/hr_view.xml | |
| parent | 8af431d9063bf36e10278b4a1e7b9391dc6e2bda (diff) | |
[IMP] *: add archive/unarchive feature on some models
Add the statbutton, search filter, and enable the kanban column archiving on
models `res.partner`, `crm.lead`, `event.event`, `hr.employee`, `hr.applicant`,
`mail.mass_mailing`, `mail.mass_mailing.list`, `product.product`,
`project.project`, `project.task`, `project.issue`.
Diffstat (limited to 'addons/hr/hr_view.xml')
| -rw-r--r-- | addons/hr/hr_view.xml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index d95947029a1..03bc1f133f9 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -20,7 +20,13 @@ <field name="arch" type="xml"> <form string="Employee"> <sheet> - <div class="oe_button_box" name="button_box"/> + <div class="oe_button_box" name="button_box" groups="base.group_hr_user"> + <button name="toggle_active" type="object" + class="oe_stat_button" icon="fa-archive"> + <field name="active" widget="boolean_button" + options='{"terminology": "archive"}'/> + </button> + </div> <field name="image" widget='image' class="oe_avatar" options='{"preview_image":"image_medium"}'/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> @@ -75,7 +81,6 @@ <page string="HR Settings" groups="base.group_hr_user"> <group> <group string='Status' name="active_group"> - <field name="active"/> <field name="company_id" groups="base.group_multi_company" on_change="onchange_company(company_id)"/> <field name="user_id" on_change="onchange_user(name, image, user_id)" string="Related User" context="{'default_groups_ref': ['base.group_user']}"/> @@ -120,6 +125,7 @@ <field name="category_ids" groups="base.group_hr_user"/> <field name="job_id" /> <filter string="Important Messages" name="message_needaction" domain="[('message_needaction','=',True)]"/> + <filter string="Archived" name="inactive" domain="[('active','=',False)]"/> <group expand="0" string="Group By"> <filter string="Manager" domain="[]" context="{'group_by':'parent_id'}"/> <filter string="Coach" domain="[]" context="{'group_by':'coach_id'}"/> |
