diff options
| author | Swapnesh Shah <swapneshshah111@gmail.com> | 2020-05-08 18:19:05 +0000 |
|---|---|---|
| committer | Swapnesh Shah <swapneshshah111@gmail.com> | 2020-05-09 05:24:38 +0000 |
| commit | 2eecd986798a6323d9d6a56a901144edf5446f81 (patch) | |
| tree | f91f4c4e7bf72cb3d2106e3cbfc95a7263353d7a /addons/resource/models | |
| parent | ce08c58f3156bccb1206149be9eec95f518fce36 (diff) | |
[IMP] resource: add possibility to archive resource calendar
Before this commit, It was not possible to Hide Working Time or Deleting Working Time if Resource is linked to it.
Now we add, Active field to Hide Working timw without removing it.
closes odoo/odoo#50963
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/resource/models')
| -rw-r--r-- | addons/resource/models/resource.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/resource/models/resource.py b/addons/resource/models/resource.py index 2f8029f3547..4c2f2409dc7 100644 --- a/addons/resource/models/resource.py +++ b/addons/resource/models/resource.py @@ -177,6 +177,8 @@ class ResourceCalendar(models.Model): return res name = fields.Char(required=True) + active = fields.Boolean("Active", default=True, + help="If the active field is set to false, it will allow you to hide the Working Time without removing it.") company_id = fields.Many2one( 'res.company', 'Company', default=lambda self: self.env.company) |
