diff options
| author | Thibault Delavallée <tde@odoo.com> | 2018-11-06 10:03:39 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-01-04 11:46:14 +0000 |
| commit | b8197ff1784094a21f3df077e55bcdd23df157eb (patch) | |
| tree | a503b6d3b5977a92c0e2215039fe84527922c57f /addons/resource/models | |
| parent | 09ad56bcd647d94b08615e5a92974d450a9c9737 (diff) | |
[REF] various: update tracking parameters
Purpose is to clean the use of tracking parameters on fields. Parameters are
merged and is now tracking=<int> or tracking=True.
This commit is linked to task ID 1903814 and PR #28430.
Diffstat (limited to 'addons/resource/models')
| -rw-r--r-- | addons/resource/models/resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/resource/models/resource.py b/addons/resource/models/resource.py index 742eac7cee7..0caafc4e88c 100644 --- a/addons/resource/models/resource.py +++ b/addons/resource/models/resource.py @@ -439,7 +439,7 @@ class ResourceResource(models.Model): name = fields.Char(required=True) active = fields.Boolean( - 'Active', default=True, track_visibility='onchange', + 'Active', default=True, tracking=True, 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', string='Company', default=lambda self: self.env['res.company']._company_default_get()) resource_type = fields.Selection([ |
