diff options
| author | Rémy Voet (ryv) <ryv@odoo.com> | 2020-10-20 08:07:40 +0000 |
|---|---|---|
| committer | Rémy Voet (ryv) <ryv@odoo.com> | 2020-10-30 14:56:39 +0000 |
| commit | 09d2ddecaf4fc6474c96acf1f4a12de4789caef8 (patch) | |
| tree | 87f39d220f2b03f393f824cc2def2b09bd0f3124 /odoo/models.py | |
| parent | 15368c6d1316d43b1591b88e4d5786d86403f8a1 (diff) | |
[FIX] base: fix `populate.randint` tool
The randint generator generated always `None`
because the `return` was forget in method of `populate.compute`.
- Add a test for the randint tool, and fix the issue.
- Change the documentation of `_populate_factories` to be more
explicit about the custom generator.
closes odoo/odoo#60327
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'odoo/models.py')
| -rw-r--r-- | odoo/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/odoo/models.py b/odoo/models.py index 62d8047bddb..5448ffdae66 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -6224,8 +6224,9 @@ Fields: It is the responsibility of the generator to handle the field_name correctly. The generator could generate values for multiple fields together. In this case, - the field_name should be more a "field_group", covering the different fields - updated by the generator (e.g. "_address" for a generator updating multiple address fields). + the field_name should be more a "field_group" (should be begin by a "_"), covering + the different fields updated by the generator (e.g. "_address" for a generator + updating multiple address fields). """ return [] |
