diff options
| author | Adrian Torres <adt@odoo.com> | 2018-09-24 12:22:45 +0200 |
|---|---|---|
| committer | Adrian Torres <adt@odoo.com> | 2018-09-27 12:10:23 +0200 |
| commit | 3f4f77fd9d5c79c21665fa08d703bba7571decd8 (patch) | |
| tree | cb4c161d09ead94255ea40e545ed5225ab113a8a /addons/resource/models/resource_mixin.py | |
| parent | 52a8ed3c0c72b21baf589bc9b91a030d9da661a8 (diff) | |
[REF] *: adapt code to new related default behaviour
This commit adapts the business code to changes introduced by
the parent commit in order to keep the same behaviour as before.
All readonly=False fields will have to be checked afterwards to confirm
that the business case requires write access to the source field.
Diffstat (limited to 'addons/resource/models/resource_mixin.py')
| -rw-r--r-- | addons/resource/models/resource_mixin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/resource/models/resource_mixin.py b/addons/resource/models/resource_mixin.py index c74db075395..7770efb4633 100644 --- a/addons/resource/models/resource_mixin.py +++ b/addons/resource/models/resource_mixin.py @@ -22,13 +22,13 @@ class ResourceMixin(models.AbstractModel): company_id = fields.Many2one( 'res.company', 'Company', default=lambda self: self.env['res.company']._company_default_get(), - index=True, related='resource_id.company_id', store=True) + index=True, related='resource_id.company_id', store=True, readonly=False) resource_calendar_id = fields.Many2one( 'resource.calendar', 'Working Hours', default=lambda self: self.env['res.company']._company_default_get().resource_calendar_id, - index=True, related='resource_id.calendar_id', store=True) + index=True, related='resource_id.calendar_id', store=True, readonly=False) tz = fields.Selection( - string='Timezone', related='resource_id.tz', + string='Timezone', related='resource_id.tz', readonly=False, help="This field is used in order to define in which timezone the resources will work.") @api.model |
