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/gamification/models/challenge.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/gamification/models/challenge.py')
| -rw-r--r-- | addons/gamification/models/challenge.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/gamification/models/challenge.py b/addons/gamification/models/challenge.py index 1c088cd2bac..bf8e17fa4a2 100644 --- a/addons/gamification/models/challenge.py +++ b/addons/gamification/models/challenge.py @@ -781,7 +781,7 @@ class ChallengeLine(models.Model): sequence = fields.Integer('Sequence', help='Sequence number for ordering', default=1) target_goal = fields.Float('Target Value to Reach', required=True) - name = fields.Char("Name", related='definition_id.name') + name = fields.Char("Name", related='definition_id.name', readonly=False) condition = fields.Selection("Condition", related='definition_id.condition', readonly=True) definition_suffix = fields.Char("Unit", related='definition_id.suffix', readonly=True) definition_monetary = fields.Boolean("Monetary", related='definition_id.monetary', readonly=True) |
