diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2020-10-16 14:21:43 +0000 |
|---|---|---|
| committer | Nasreddin (bon) <bon@odoo.com> | 2020-10-19 07:21:16 +0000 |
| commit | 3d3aca543c051dfce1fcb87578d859caa0406f5e (patch) | |
| tree | 9e624d67a0d999b64b95759f6bcc12b6ef6c6115 /doc/reference/javascript_reference.rst | |
| parent | 8c8d803992c31ba68a12801fa6dd4dcf909d9ed9 (diff) | |
[FIX] project: wrong subtask count
Issue
- Install "Project" module
- Active "Sub Task" feature in settings
- Create a new project `X`
- Go to settings of project `X` and activate "sub task" feature
- Add a Task `A` in project `X`
- Add a subtask `B` to task `A`
- In menu, click on `Tasks` to list all tasks
- Edit view and add `subtask_count` field then save
Wrong value in `subtask_count` field.
Cause
Retrieving childs of self instead of "current" task (`for task in self:`).
Solution
Use "current" task instead of self.
opw-2361013
closes odoo/odoo#60229
X-original-commit: c961638d49a392468ac4a521bcb208dd9d68a99d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
