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/digest/models | |
| 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/digest/models')
| -rw-r--r-- | addons/digest/models/digest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/digest/models/digest.py b/addons/digest/models/digest.py index d89016bd78b..7dc03b405a6 100644 --- a/addons/digest/models/digest.py +++ b/addons/digest/models/digest.py @@ -32,7 +32,7 @@ class Digest(models.Model): domain="[('model','=','digest.digest')]", default=lambda self: self.env.ref('digest.digest_mail_template'), required=True) - currency_id = fields.Many2one(related="company_id.currency_id", string='Currency') + currency_id = fields.Many2one(related="company_id.currency_id", string='Currency', readonly=False) company_id = fields.Many2one('res.company', string='Company', default=lambda self: self.env.user.company_id.id) available_fields = fields.Char(compute='_compute_available_fields') is_subscribed = fields.Boolean('Is user subscribed', compute='_compute_is_subscribed') |
