Commit Graph
74 Commits
Author SHA1 Message Date
dht-odoo 66b0fede39 [IMP] crm: improve update of probabilities from settings
Right now there is a button in the CRM settings called 'Update Probabilities'.
When clicking on it probabilities of leads created after certain date
are updated. Problem with this flow is that user can click on the button by
mistake and there is no going back.

Moreover this does not trigger a save on settings and changes done by user
are not saved. This is standard behavior of config settings.

This commit improves the behavior by opening a wizard on click of the button
instead of directmy updating the probabilities. It allows users to change
fields used in PLS, change start date, or even cancel the update process.

Task ID-2355562

closes odoo/odoo#60733

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-02-02 16:19:41 +00:00
David BeguinandThibault Delavallée 5f551d235c [REF] (sale_)crm: remove crm.partner.binding mixin
PURPOSE

This refactoring commit removes the crm.partner.binding mixin. Indeed it
defines a mixin for unnecessary fields, generally either redefined in
inheriting models, either not used at all. It also holds an utility method
we moved directly on crm.lead model.

SPECIFICATIONS

Code move

  * move _find_matching_partner to crm.lead model;
  * move action field into inheriting models, except crm.lead.convert2ticket
    that does not use it;
  * move partner_id to inheriting models;
  * remove crm.partner.binding model and inheritance;

Improve behavior

  * correctly store lead and partner many2one fields on all inheriting
    models. It allows to support a default_lead_id instead of always
    relying on active_model / active_id, making the wizards more generic;
  * update default_get accordingly in various inheriting models in order to
    correctly compute lead / partner values;

LINKS

Part of Task ID 2056759 (remove crm.partner.binding mixin)
Part of Task ID 2088565 (crm onchange -> compute)
Community PR odoo/odoo#44970
Enterprise PR odoo/enterprise#8307
Upgrade PR odoo/upgrade#750

Related: odoo/enterprise#8307
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: David Beguin <dbe@odoo.com>
Co-authored-by: Thibault Delavallée <tde@odoo.com>
2020-02-13 15:29:40 +00:00
Thibault Delavallée 5f6e94165b [MOV] crm: move lead to opportunity in mass wizard in its own files
Lead 2 opportunity wizard file actually holds 2 wizards. Let us split files
especially that naming is quite obfuscated.

LINKS

Side effect of Task ID 2056759 (remove crm.partner.binding mixin)
Side effect of Task ID 2088565 (crm onchange -> compute)
Community PR #43127
Enterprise PR odoo/enterprise#7656
2020-01-10 16:06:44 +00:00
Richard Mathot e330567707 [MOV] base,crm: make contact deduplication wizard available for all apps 2017-12-21 12:59:23 +01:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Ravi Gadhia 87e457158e [IMP] crm, website_crm: replace support of activities
crm.lead model now supports activities. Filters have been added to ease
their management. Mail activities replace the old crm.activity model. All code
related to crm.activity is then removed, including views and custom widget.
Standard activities feature is now used widely in Odoo addons and replace
those custom activities.

A small update is required in website_crm_partner_assign. Now the portal user
can only update or create its own activities aka assigned to him. If he has
an activity assigned to him it is displayed in the opportunity website view.
If not editing the opportunity will create a new activity assigned to him.
2016-12-21 10:58:49 +01:00
Jérome Maes fa7fdc525a [MOV] crm : reoganize module directory and files 2016-07-04 17:28:03 +02:00
Fabien Pinckaers 60c010d306 [IMP] crm: activities reloaded
Activities in opportunities are now handled through a wizard and not through
the form view anymore. The wizard is called via a Log an activity button. The
wizard allows to log an activity and to schedule the next activity. It
replaces the various <next activities> / Done / Cancel link buttons on the
form view that nobody seemed to inderstand.
2015-11-26 10:48:25 +01:00
Hitesh Trivedi 30a7ef804a [IMP] crm: usability improvements
Among various small fixes, some changes :
- correct computation of default sales team, located in sales_team with a
small code cleaning. Rely on this method everywhere it is necessary.
- add a configuration option to enable the use of leads in sales team;
otherwise it is hidden
- better display of alias in empty list help;
- add a menu for next activities, that are the opportunities with an action
whose deadline is near assigned to the current user;
- automatic update of aliases configuration on sales team, based on whether
they use leads and/or opportunities;
- add a wizard to log the lost reasong when deactivating a lead or an
opportunity
2015-08-11 10:56:09 +02:00
Jay Patel ff2b14d4c3 [IMP][ADD] crm: add the concept of activities, allowing
to define custom light workflows on opportunities.

Activities are linked to mail.message.subtype through inheritance.
This means that the follow mechanism works for activities. When
an activity is done, a message with the matching subtype is posted
on the opportunity.

Activities are internal by default. They are only visible by
employees.

A shortcut in the 'log a note' chatter option allows to post a
note linked to an activity (subtype).
2015-07-08 17:15:22 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
ajay javiya (OpenERP) a0ab757537 [REM] : remove wizard of schedule/log a call ,
[IMP] : Rename in Opportunity and in Partner form the 'Meeting' into 'Schedule a Meeting' ,

bzr revid: aja@tinyerp.com-20130822092259-it5a1e1v1ed9s60a
2013-08-22 14:52:59 +05:30
Antonin Bourguignon 6974be3d6d [IMP] remove dead code from crm_partner_to_opportunity and crm_phonecall_to_opportunity
fp and al judged that phonecall2opp wizard was just a 'one more click' step
instead of the wizard, a phonecall will directly be converted into an opp when clicking on the 'Convert to opp' button (todo)
tests have been adapted, but some tests are still missing like 'merge lead with opp' or 'merge leads together' (todo)
documentation has been improved

bzr revid: abo@openerp.com-20121114184134-m37k9mwsq2hclgii
2012-11-14 19:41:34 +01:00
Antonin Bourguignon e6bfe6583e [IMP] rename lead2partner (again) into crm.partner.binding; also rephrase the documentation
bzr revid: abo@openerp.com-20121113172235-j6ngsolg0wbu84yg
2012-11-13 18:22:35 +01:00
Antonin Bourguignon 3b2b5f31b9 [WIP] rename 'lead2partner' into 'generate.partner' for more clarity
bzr revid: abo@openerp.com-20121112133033-urh3emybeabfvdxm
2012-11-12 14:30:33 +01:00
Antonin Bourguignon 5b5951143c [IMP] remove dead code from the deprecated phonecall2partner wizard view
bzr revid: abo@openerp.com-20121112121505-0oaozvs14xr8i1gv
2012-11-12 13:15:05 +01:00
Thibault Delavallée 4fad550d69 [MERGE] Merged with main addons.
bzr revid: tde@openerp.com-20120709081834-18pf4bol39s50uno
2012-07-09 10:18:34 +02:00
Thibault Delavallée 28611901c9 [REM] Removed crm_add_note.
bzr revid: tde@openerp.com-20120706155201-nsgixesgxgiru0bu
2012-07-06 17:52:01 +02:00
Raphael Collet 6b1606f8de [IMP] move crm.wizard.mail_compose_message to module mail, to reduce module dependencies on crm
bzr revid: rco@openerp.com-20120703131453-dz0gpdq3t9155bfw
2012-07-03 15:14:53 +02:00
Harry (OpenERP) 340c9c5576 [IMP] crm: clean test cases, APIs of crm.lead, crm.phonecall
bzr revid: hmo@tinyerp.com-20111024133010-ve55lvg2cie206l9
2011-10-24 19:00:10 +05:30
Olivier Dony 8f9f45ea94 [IMP] all: next pass of review/renaming for new mail API
bzr revid: odo@openerp.com-20110822171659-zxho36a6n628i10q
2011-08-22 19:16:59 +02:00
Yogesh (OpenERP) 368808a4bb [IMP] crm :- inherit email.compose.message wizard and override default_get method and set default value to related module.
bzr revid: ysa@tinyerp.com-20110221103907-l114g3ugjr57yxnd
2011-02-21 16:09:07 +05:30
Yogesh (OpenERP) d1dcd5a16f [IMP] remove duplicate code in crm, crm_claim. crm_helpdesk, event, hr_recruitment, project_issu relate to send mail wizard.and improve email.message.send wizard.
bzr revid: ysa@tinyerp.com-20110218124509-srcrk6lz4p4f3wlw
2011-02-18 18:15:09 +05:30
Fabien Pinckaers a80287f260 move
bzr revid: fp@tinyerp.com-20100921083659-asr13u4eyzjdr4sb
2010-09-21 10:36:59 +02:00
rpa (Open ERP) edc394a66b [MERGE]: Merge with lp:openobject-addons
bzr revid: rpa@tinyerp.com-20100915053125-s1shvfyx8ro7s53h
2010-09-15 11:01:25 +05:30
Fabien Pinckaers 04308844b8 [IMP] remove unused menu
bzr revid: fp@tinyerp.com-20100914222612-fs1b1dzegizkqnf5
2010-09-15 00:26:12 +02:00
rpa (Open ERP) f0282a8c72 [IMP]: crm*: Improvements for "Add note" wizard,
* Added field for attachment to add attachment in Notes
* Put proper icon
* Improvement in Display text when we add a new Note
* Added button for this wizard in all crm related modules

bzr revid: rpa@tinyerp.com-20100907132140-9a9y8sigcktvdqk3
2010-09-07 18:51:40 +05:30
Daniel Watkins c5c5d8b0f4 Initial 'Add Note' functionality.
bzr revid: daniel.watkins@credativ.co.uk-20100831150921-gc7d0yfr0s034wmg
2010-08-31 16:09:21 +01:00
rpa (Open ERP) 9637ab6a49 [ADD]: crm: Added new wizard to merge Opportunity with Other Opportunities of the same partner
bzr revid: rpa@tinyerp.com-20100729070549-snt3yy0507xmxtfd
2010-07-29 12:35:49 +05:30
rpa (Open ERP) dc0b929b09 [ADD]: crm: * Added new objects for custom crm case and sections
* Added a wizard to create Menus for custom cases

bzr revid: rpa@tinyerp.com-20100710100016-n1tjsrvfnjgmifig
2010-07-10 15:30:16 +05:30
rpa (Open ERP) ceda4d163e [REM]: Removed Add CC wizard from crm and changes in crm + other modules for it
bzr revid: rpa@tinyerp.com-20100512071217-kbud9xl01sk9q6dh
2010-05-12 12:42:17 +05:30
Stephane Wirtel 714fdc0f98 [IMP] crm: Allow to an user to forward a lead to a partner
bzr revid: stephane@openerp.com-20100428115222-kjs3gikx24eztjo1
2010-04-28 13:52:22 +02:00
ksa (Open ERP) 80a2d0463f [IMP]: crm: Apply some changes and add function
bzr revid: ksa@tinyerp.co.in-20100401113130-48zf5bsafdt1x3p6
2010-04-01 17:01:30 +05:30
rpa (Open ERP) c184f21599 [REF]: crm: Separated osv_memory wizard for add cc from crm.py into wizard folder
bzr revid: rpa@tinyerp.com-20100323114455-hdla4728nv6cyx69
2010-03-23 17:14:55 +05:30
ksa (Open ERP) 765b10a0a4 [IMP]: crm: Converted Partner to Opportunity wizrd into osv memory wizard
bzr revid: ksa@tinyerp.co.in-20100322095754-dmmcfdjfb7nw1jvr
2010-03-22 15:27:54 +05:30
rpa (Open ERP) 0f6344b448 [IMP, REF]: crm: Renamed send new mail wizard to send mail wizard as its used for reply also + Improvement access rules
bzr revid: rpa@tinyerp.com-20100319111535-6h2he0v814u1lh09
2010-03-19 16:45:35 +05:30
rpa (Open ERP) 15e91924f2 [IMP]: crm: Improvement in crm send mail wizard, converted it into osv_memory wizard, Merged old send new mail and send mail wizards into new one
bzr revid: rpa@tinyerp.com-20100318135430-t7gfwb7n98poeorb
2010-03-18 19:24:30 +05:30
rpa (Open ERP) 1de1bbf6ec [IMP]: crm: Improvement in Phonecall to Meeting wizard, put proper docstring
bzr revid: rpa@tinyerp.com-20100318105245-8c5hojj4jru85ydb
2010-03-18 16:22:45 +05:30
rpa (Open ERP) 4470f8aad1 [IMP]: crm: Improvement in phonecall to partner wizard + Added proper docstring
bzr revid: rpa@tinyerp.com-20100317132704-4fzstp888prq7b3k
2010-03-17 18:57:04 +05:30
rpa (Open ERP) bd9e9ef507 [REF]: crm: * Improvement in lead, opportunity wizard
* Improved code quality
* Put proper docstring

bzr revid: rpa@tinyerp.com-20100317125711-z59f06w4x8fdefl1
2010-03-17 18:27:11 +05:30
rpa (Open ERP) b509b2d086 [IMP]: crm: Improvement in Opportunity to Phonecall wizard + Quality improvement
bzr revid: rpa@tinyerp.com-20100316130236-104ao8dh3zt1yspv
2010-03-16 18:32:36 +05:30
rpa (Open ERP) d8bdf800c2 [REM]: crm: Removed opportunity to Partner wizard
bzr revid: rpa@tinyerp.com-20100316122041-bf1rqhhkd5ujs17s
2010-03-16 17:50:41 +05:30
rpa (Open ERP) eba05bd705 [IMP]: crm: Improvement in Opportunity schedule meeting wizard + Quality improvement
bzr revid: rpa@tinyerp.com-20100316114531-ff8405ri69ciesvb
2010-03-16 17:15:31 +05:30
rpa (Open ERP) 96929a5705 [IMP]: crm: Improvement in lead to Opportunity wizard + Quality improvement
bzr revid: rpa@tinyerp.com-20100316110351-0qnwxoj7dj27xao9
2010-03-16 16:33:51 +05:30
rpa (Open ERP) c4d9dda495 [IMP]: crm: Improvement + Quality improvement in lead to partner wizard
bzr revid: rpa@tinyerp.com-20100316094634-1mygrhv8st9i1az0
2010-03-16 15:16:34 +05:30
sbh (Open ERP) a80894f402 [Add] crm: Add the osv_memory wizard of lead_opportunity and change the name of function
bzr revid: sbh@tinyerp.com-20100310110044-79cyfknveptf6so4
2010-03-10 16:30:44 +05:30
sbh (Open ERP) a36a2c70c1 [IMP] crm: improve the view of opportunity2phonecall and fix the field value in wizard
bzr revid: sbh@tinyerp.com-20100310064624-dlwt4rh32kl2ooqn
2010-03-10 12:16:24 +05:30
sbh (Open ERP) 5324e660c1 crm: add the missing file and add the wizard of opportunity2phonecall
bzr revid: sbh@tinyerp.com-20100310054717-taqd558s8p75hinr
2010-03-10 11:17:17 +05:30
sbh (Open ERP) 42c1d6d634 [Add] crm: add the osv_memory wizard of opportunity2meeting
bzr revid: sbh@tinyerp.com-20100309122938-x9a2c1hpnj7llqz3
2010-03-09 17:59:38 +05:30