Monday, September 12, 2022
1 change · master
Resolved issues and error corrections
The CRM pipeline dashboard could fail to open because required start and end date fields were not included in the view data. This fix ensures cohort views automatically include those date fields, preventing the dashboard error and restoring access to reporting.
Original PR description
This follows revision odoo/odoo@4636620004f0cc0e504cd6694fe8ddb6758ba811 When accessing the dashboard view in CRM -> Reporting -> Pipeline an exception occurred: ``` UncaughtPromiseError > TypeError Uncaught Promise > fields[dateStop] is undefined ``` This is because the field in the cohort node attributes `date_start` and `date_stop` were not added automatically to the available fields of the view, hence these fields were not passed in the fields returned by `get_views`, because of the above mentioned revision. A similar code exists in `base` for the calendar view: https://github.com/odoo/odoo/blob/3a2196d73cfe5b5cd6cfda8e203b81969106831e/odoo/addons/base/models/ir_ui_view.py#L1157-L1160 Related to odoo/odoo#100021