Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] crm: make pls test independant of demo data
As all won / lost leads will have an impact on the PLS frequency table, demo data will have one on the probabilities of leads without team_id set, as their probability is based on all leads, regardless on their team. The demo data also creates entries in the frequency table as some leads are lost / won. Therefore, make sure we unlink all leads and frequencies in the setUpClass, to avoid any interference with demo data. One should create leads directly in their test. The models are flushed too to account for the deletion. Follow up of ecac497 Task-3700966 closes odoo#165959 X-original-commit: c87da27 Signed-off-by: Noé Antoine (nan) <nan@odoo.com> Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
- Loading branch information