diff options
| author | Raphael Collet <rco@odoo.com> | 2020-05-13 14:06:28 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-05-14 08:41:44 +0000 |
| commit | 8d99fd9448c53746a17d2be1b81e76a0539a9534 (patch) | |
| tree | 62813696b2d9ba0f402195576f0fcccb88d8e458 /odoo/addons/test_new_api | |
| parent | ac9fb3b120b37d27e8bb2db4188decffa23540b9 (diff) | |
[FIX] core: selection override with str or callable
If the original field is defined with a selection list, overrides with
method or methods names fall back on the list.
closes odoo/odoo#51232
X-original-commit: 272ba8d2238d1d1b87f47b114b55e6eed25314a8
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'odoo/addons/test_new_api')
| -rw-r--r-- | odoo/addons/test_new_api/models/test_new_api.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/addons/test_new_api/models/test_new_api.py b/odoo/addons/test_new_api/models/test_new_api.py index df270670a00..e6b0ec0e850 100644 --- a/odoo/addons/test_new_api/models/test_new_api.py +++ b/odoo/addons/test_new_api/models/test_new_api.py @@ -684,6 +684,7 @@ class Selection(models.Model): _description = "Selection" state = fields.Selection([('foo', 'Foo'), ('bar', 'Bar')]) + other = fields.Selection([('foo', 'Foo'), ('bar', 'Bar')]) class RequiredM2O(models.Model): |
