Commit Graph
2 Commits
Author SHA1 Message Date
Dharmraj Jhala 6f95973484 [IMP] crm: better access leads linked to a lost reason
This commit improves overall usability for lost reason wizard in CRM with
following improvements

  * prevent deletion of reason if any lead is still referencing it;
  * remove obsolete filter 'Include archived' for lost reason;
  * add new stat button for lost reason, to see the leads that were lost
    due to that particular reason;
  * add margin on the reason title to avoid ribbon glitch;

TaskID 2176323
PR #43541

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-27 09:57:03 +00:00
Thibault Delavallée 9219944a5a [REF] crm: quickly reorganize crm_lead file
In this commit we perform some small code move in order to better understand
the huge crm_lead.py file. Notably

  * add some code sections headers (actions, PLS, opp/leads merge);
  * move crm.lead.tag and crm.lost.reason in their own file;
  * reorganize fields by main category because it is a mess;
  * remove some unnecessary help messages on fields;
  * merge two _auto_init methods definitions;

No functional change occur with this commit as it contains only some code
move.

It prepares some further technical cleaning in CRM application, notably
onchange -> compute move.

LINKS

Related to Task ID 2092799 (not really spec, spotted while working on it)
PR odoo/odoo#42015

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-17 12:50:46 +00:00