diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-02-28 13:08:36 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-04-03 12:59:28 +0000 |
| commit | 9b76c6b7f1eec4057289de90d62b8a7a266b0aac (patch) | |
| tree | 3ca33ef870db9901b94187326dcebf5c0e0c382e /addons/phone_validation | |
| parent | 318f02b8e8581f9cab995ec5e1f8c3dceb2e1dbe (diff) | |
[IMP] crm: better use toggle_active and add business behavior in it
Purpose of this commit is to make use of toggle_active to implement business
behavior linked to active field being changed. In CRM notably
* when archiving: it is considered as lost, and therefore probability is
set to 0;
* when reactivating: void the lost reason and update probabilities for PLS;
In this commit we also update tracking subtype to more clearly track
lost / restored subtypes
* lost: writing a lost reason (resetting it is not lost), archiving
it if no other subtype;
* restored: activating it again;
Task ID 2170708
Community PR odoo/odoo#46563
Diffstat (limited to 'addons/phone_validation')
0 files changed, 0 insertions, 0 deletions
