summaryrefslogtreecommitdiff
path: root/addons/resource/resource.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2015-09-02 10:22:16 +0200
committerRaphael Collet <rco@openerp.com>2015-09-02 14:29:42 +0200
commited95043d7e0c04efd46f033f41bb401a3c24ea91 (patch)
tree397c41994a91377c296ea720d971b32632807f42 /addons/resource/resource.py
parent8af431d9063bf36e10278b4a1e7b9391dc6e2bda (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/resource/resource.py')
-rw-r--r--addons/resource/resource.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/resource/resource.py b/addons/resource/resource.py
index 6f558c04392..250cca8d1bb 100644
--- a/addons/resource/resource.py
+++ b/addons/resource/resource.py
@@ -666,7 +666,8 @@ class resource_resource(osv.osv):
_columns = {
'name': fields.char("Name", required=True),
'code': fields.char('Code', size=16, copy=False),
- 'active' : fields.boolean('Active', help="If the active field is set to False, it will allow you to hide the resource record without removing it."),
+ 'active' : fields.boolean('Active', track_visibility='onchange',
+ help="If the active field is set to False, it will allow you to hide the resource record without removing it."),
'company_id' : fields.many2one('res.company', 'Company'),
'resource_type': fields.selection([('user','Human'),('material','Material')], 'Resource Type', required=True),
'user_id' : fields.many2one('res.users', 'User', help='Related user name for the resource to manage its access.'),