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/analytic | |
| 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/analytic')
| -rw-r--r-- | addons/analytic/models/analytic_account.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/analytic/models/analytic_account.py b/addons/analytic/models/analytic_account.py index 199f6097ae1..46fdbb17259 100644 --- a/addons/analytic/models/analytic_account.py +++ b/addons/analytic/models/analytic_account.py @@ -14,7 +14,7 @@ class AccountAnalyticDistribution(models.Model): account_id = fields.Many2one('account.analytic.account', string='Analytic Account', required=True) percentage = fields.Float(string='Percentage', required=True, default=100.0) - name = fields.Char(string='Name', related='account_id.name') + name = fields.Char(string='Name', related='account_id.name', readonly=False) tag_id = fields.Many2one('account.analytic.tag', string="Parent tag", required=True) _sql_constraints = [ |
