Commit Graph

6013 Commits

Author SHA1 Message Date
Olivier Dony ebb5ddcd65 [I18N] Sync latest translations from Launchpad (not the final one) 2015-05-21 14:42:20 +02:00
Denis Ledoux 612b44648e [FIX] crm: hide mark won/lost buttons when opportunity is won
When an opportunity has a 100% probability, it is regarded
as won. When the opportunity is regarded as done,
there is no more use to show the mark won/lost button.

opw-634420
2015-05-07 18:18:03 +02:00
Olivier Dony 622e00baa5 [I18N] Sync 8.0 translations from Launchpad 2015-04-28 09:45:53 +02:00
Denis Ledoux cf4d14ce39 [MERGE] forward port of branch saas-3 up to 09b277c 2015-04-27 14:02:52 +02:00
Denis Ledoux 09b277c008 [FIX] crm: fp mistakes during d6ae7fb7db.
`crm.meeting`
has been replaced by
`calendar.event`

`base_calendar.view_crm_meeting_search`
has been replaced by
`calendar.view_calendar_event_search`
2015-04-27 13:21:51 +02:00
Denis Ledoux 70d28a69b9 [FIX] crm: silly mistake during forward-port d6ae7fb7db
type="object" was already there, no need to set it twice.
2015-04-27 12:46:01 +02:00
Denis Ledoux d6ae7fb7db [MERGE] forward port of branch 7.0 up to 3e7d3c7 2015-04-27 12:19:43 +02:00
Martin Trigaux ab65c388cd [FIX] crm: list of meetings from opportunity
When opening the list of meetings from an opportunity, show only the meetings
linked to the current opportunity.
Use search_default_ to be able to remove the filter if not needed.
Remove context on meeting button as it's ignored in action_makeMeeting (and
there is no field attendee_id linked to a crm.lead anyway)
opw 614039
2015-04-23 10:00:01 +02:00
David Monjoie 8f90636686 [IMP] crm: Opportunities Analysis menu visible to Sale Manager
Before this commit, it was only visible by the admin user.

I used the crm.phonecall.report rules as an example, but I don't
think either of those or the opportunities ones are actually
used in the case of group_sale_salesman, because the submenu
Sales of the Reporting menu is only visible to the Sale Manager.

Fixes opw 615048.
2015-04-21 15:26:57 +02:00
Akash Balar 58fab75208 [FIX] CRM : won and lost stages are not required to be folded anymore
The domain was inconsistent with the error message.
2015-04-15 17:38:04 +02:00
Nicolas Lempereur 6aba1ac0c3 [FIX] crm: lead to opportunity
When converting a lead to an opportunity, there is a difference in
context than when going to an opportunity via the interface.

This leads to a difference when displaying a kanban view.

This commit adds what is needed in the context.

opw-632640
2015-04-15 17:45:02 +02:00
Rucha Dave 2596f39eef [FIX] crm: meeting time in user timezone
With UTC in <time> element in bonus.
opw 621772
2015-04-01 15:53:09 +02:00
Denis Ledoux 90f998da0b [FIX] *: alias help message
When going to logged calls through opportunities,
and no logged calls were listed,
the mail alias of opportunities was displayed
within the placeholder help message,
wrongly, as we were in the logged calls list.

This was due to a context propagation, due
to have defined empty_list_help_* keys within
window actions. It was the case in several
modules.

Besides, we do not find the usefulness of the
custom_context passed to the get_empty_list_help
method: indeed, none of the methods get_empty_list_help
overriden in modules need any other keys than
'default_type', which do not require an evaluated
context.

We therefore remove the whole code regarding this
custom_context, and we therefore get rid of this
useless context evaluation thing within one of
the most accessed method of the web client.

opw-630673
2015-04-01 10:52:37 +02:00
Denis Ledoux 6dad39297e [FIX] crm: open opportunity form from planned calls
This wasn't anymore possible to open the Lead/opp
form of a planned call if it was of type opp.

Regression introduced during rev. 81f56c9eda

opw-631807
2015-03-30 18:16:45 +02:00
Goffin Simon 497ce299e9 [FIX] crm: problem with planned revenues of the direct sales team opportunities
The action window "Opportunities Analysis" must use the "crm.opportunity.report" model.

opw:631427
2015-03-30 13:12:31 +02:00
Olivier Dony d544bb9b46 [FIX] base_partner_merge: cleaner test for function fields
After commit 0ed63d73a6,
the hack used to detect fields.function is not supported
anymore. Using `isinstance` is safer and cleaner anyway
(performance is not a concern here).
2015-03-24 15:43:37 +01:00
Christophe Simonis 416f0246ac [MERGE] forward port of branch saas-3 up to 4a3c471 2015-03-09 12:03:22 +01:00
Christophe Simonis 4a3c4713e9 [MERGE] forward port of branch 7.0 up to 209ce6f 2015-03-09 11:24:32 +01:00
Romain Deheele 56f3f01491 [FIX] crm: retrieve title and function of partner in leads
When setting a partner on the lead,
the on_change_partner method retrieves
the various partner field values.

title & function fields were omitted, without obvious reasons

opw-629374
Closes #5388
2015-03-03 17:59:46 +01:00
Olivier Dony 91d4b947f6 [I18N] Update translations from Launchpad 8.0 branches 2015-02-18 11:51:07 +01:00
Jeremy Kersten 5a26c2d3ec [FIX] crm,hr,base: disable the quick create for country field
The creation of a country is not something to create at flight !
The impact could be bigger that what people was expected (no accounting configured, ...).

The bad manipulation is more often the responsible, eg 'Belgium ' was creating a new country with a trailing whitespace, while the user didn't see the difference and use both country withtout making the diff.
2015-02-05 14:14:59 +01:00
Denis Ledoux a35e9858dc [FIX] crm: opportunity count on partner form
- When the partner is a company,
 the opportunity count should counts the opportunities
 of this company and all its contacts
 - When the partner is not a company,
 the opportunity count should only counts the opportunities
 of this lonely partner.

opw-626609
2015-01-27 19:15:42 +01:00
Olivier Dony 8e03852fd4 [I18N] Update translations from Launchpad 8.0 branches 2015-01-26 16:36:51 +01:00
Olivier Dony 495ec92251 [I18N] Update translations from Launchpad 8.0 branches 2015-01-21 15:36:54 +01:00
Olivier Dony 39f00b3637 [I18N] Update translation templates with latest terms
Total new terms: 270
Total deleted terms: 82
Total identical terms: 19653
Old total number of terms: 19735
New total number of terms: 19923
2015-01-21 15:31:22 +01:00
Denis Ledoux 68f3ed6569 [FIX] crm: convert to opportunity, avoid overwrite user defined action default 2015-01-20 16:37:57 +01:00
Christophe Simonis 7b7554c91f [MERGE] forward port of branch saas-3 up to cdb48d3 2015-01-19 12:16:33 +01:00
Denis Ledoux 65de6e7f27 [FIX] crm: convert to opp, link to an existing cstomer
When converting a lead to an opportunity, and choosing the option "link to an existing customer", the resulting opp wasn't actually linked to the ccustomer.
2015-01-15 16:09:46 +01:00
Olivier Dony d0cd92bb9f [I18N] Sync updated 7.0 translations from Launchpad 2015-01-07 17:57:28 +01:00
Aaron Bohy ba37ae3cf3 [DEL] Cleaning: key 'images' removed from all __openerp__.py 2015-01-06 14:20:38 +01:00
Denis Ledoux ea54d4af9f [FIX] crm: opportunities button in partner form only count opportunities
Before, all crm.lead of the partner were counted, whatever it was a lead or an opportunity, but the button opens the opportunity tree, which has a domain type = opportunity. So leads were not displayed, and the count was therefore misleading.

Besides, the button is called "Opportunities", and it was misleading to count leads for a button with such a name
2015-01-06 11:33:07 +01:00
Denis Ledoux a69076851a [FIX] crm: do not assign a salesteam to a lead if not in multi sales team env
on_change_user was used to assign the first team  in which the user is a member to the lead
When the user does not use the multi sales team, it therefore set a default sales team, but invisible to the user.

Stages displayed in the kanban view are the lead sales team stages. In a non sales team env, only stages with no stages are displayed for new leads
If you added a new stage, in the kanban view, the stage is not assigned to a team
2014-12-11 13:26:07 +01:00
Géry Debongnie 3078cfbbd1 [FIX] remove filter for new leads/opportunity (crm)
requested by fp. the filter is wrong and not very useful from a
functional viewpoint.
2014-11-28 14:26:25 +01:00
Géry Debongnie 5f756d2510 [FIX] yet another filter fix... (crm reporting)
Same problem as before: filters do not compose properly with the implicit
'&', and they are filtering on the wrong model (should filter on probability
in the crm.case.stage model and not on the crm.opportunity.report)
2014-11-24 09:09:34 +01:00
Christophe Simonis 06246bac9a [FIX] crm: set the oldname of field crm.lead.medium_id 2014-11-21 15:03:12 +01:00
Géry Debongnie cd1eaabe11 [FIX] fix wrong filter in opportunity view (crm)
There was two problems:
* it was filtering on the probability of the opportunity, not on the
probability of the stage
* the filters were not prefixed with '&', which means that they gave
weird results when combined in the searchview (in a filter group, filters
are combined with '|', but it breaks when the filters are defined by
an implicit '&')
2014-11-20 13:23:04 +01:00
Olivier Dony a6d24db305 [I18N] Update translations from Launchpad 8.0 branches 2014-11-19 17:49:12 +01:00
Raphael Collet b8071bbaca [FIX] addons: incorrect new-api invocation of method write() with context
This fixes #3411.
2014-11-13 13:34:55 +01:00
Yajo 4d70b2ba8b [FIX] crm: Pending calls are also "To Do" 2014-11-12 12:10:10 +01:00
Christophe Simonis ec277732fe [MERGE] forward port of branch 7.0 up to 3e3e35e 2014-11-05 21:10:15 +01:00
Raphael Collet f2e4a10e1a [IMP] use model._fields instead of model._all_columns to cover all fields
The old-api model._all_columns contains information about model._columns and
inherited columns.  This dictionary is missing new-api computed non-stored
fields, and the new field objects provide a more readable api...

This commit contains the following changes:

 - adapt several methods of BaseModel to use fields instead of columns and
   _all_columns

 - copy all semantic-free attributes of related fields from their source

 - add attribute 'group_operator' on integer and float fields

 - base, base_action_rule, crm, edi, hr, mail, mass_mailing, pad,
   payment_acquirer, share, website, website_crm, website_mail: simply use
   _fields instead of _all_columns

 - base, decimal_precision, website: adapt qweb rendering methods to use fields
   instead of columns
2014-11-04 13:47:57 +01:00
Raphael Collet e9587bf130 [IMP] expression.py: add a check to forbid records in domains
Records in domains cause a "maximum recursion depth exceeded" error when
converted to SQL. Simply add a test to show a better error message.
2014-10-16 10:22:23 +02:00
Jeremy Kersten 5b1eee9a3a [FIX] crm_lead: don't rewrite user_id. Value has not been updated so it's useless. Some module check that user_id is in vals to trigger others actions for nothing. 2014-10-15 14:18:37 +02:00
Olivier Dony 7439421ad2 [I18N] Update translations from Launchpad 8.0 branches 2014-10-08 17:52:25 +02:00
Christophe Simonis e2e60bf4eb [MERGE] forward port of branch saas-3 up to fe8106f 2014-09-26 12:53:59 +02:00
Denis Ledoux 76067367b2 [MERGE] forward port of branch 7.0 up to 5f6d324 2014-09-25 15:10:37 +02:00
Simon Lejeune 5f6d324db6 [FIX] crm: merge the phonecalls during an opportunities merge 2014-09-25 13:40:45 +02:00
Martin Trigaux 81f56c9eda [IMP] crm: remove TODO posted by past me 2014-09-24 17:19:22 +02:00
Martin Trigaux 0c36f8a4ce Forward port of branch 7.0 up to 1933e92 2014-09-24 17:10:14 +02:00
Ravi Gohil 126ba0a9a8 [FIX] crm: correct open lead or opportunity view from calls
When opening a lead/opportunity from the phonecalls view, we did not open the correct view (always the lead).
This will use the type of the crm.lead to determine which view should be used, opw 608493.
2014-09-24 15:54:44 +02:00
Olivier Dony b74d830eb2 [I18N] Update translation templates with latest term changes 2014-09-23 19:13:50 +02:00
Olivier Dony 1c5b5e4290 [I18N] Update translations from Launchpad 8.0 branches
server: rev. 26 rev-id launchpad_translations_on_behalf_of_openerp-20140923072744-tkfs0yinu8msjh09
addons: rev. 39 rev-id launchpad_translations_on_behalf_of_openerp-20140923072715-5j7qvnuvmmb1zzy1
web: rev. 23 rev-id launchpad_translations_on_behalf_of_openerp-20140923072757-jvh9l6r2x0vfcyhb
2014-09-23 13:42:05 +02:00
Jeremy Kersten 9ca58db6be [IMP] crm: make code of merge opportunities overloadable 2014-09-22 16:14:04 +02:00
Olivier Dony 53aa92d3c9 [I18N] Update translations from Launchpad branches 2014-09-18 11:47:16 +02:00
Jeremy Kersten cfac9464a4 [FIX] website_hr_recruitment: add param to force all countries else it use GeoIP, check that country returned by GeoIP have jobs availables else fallback on all countries 2014-09-15 15:27:48 +02:00
Jeremy Kersten 2f1814088f [IMP] crm: Use cookies to save utm instead of session. 2014-09-09 16:51:35 +02:00
Olivier Dony fac96241df [I18N] Update 8.0 translations with latest changes from Launchpad 2014-09-08 19:04:25 +02:00
Martin Trigaux 8d23a3a86c [FIX] crm: avoid constraint errors when merging partners
As for the _update_foreign_keys, the _update_reference_fields method may raise an unique constraint when merging two partners.
In such case, the new record is not relevant and can be removed.
2014-09-03 08:44:33 +02:00
Jeremy Kersten 54bb165096 [FIX] crm: lead_to_opportunities, check that current active_id has not been already merged by another previous active_id. Else, we was trying to browse an lead which was already deleted by a previous merge in the same loop. 2014-09-02 09:48:50 +02:00
Antony Lesuisse 25b4d8a089 [FIX] crm lead fix search view 2014-08-29 15:57:29 +02:00
Jeremy Kersten e186de5006 [FIX] crm: onchage user_id, don't use the uid by default, but user the user_id. Else Saleteam are setted for current user who are editing and not salesman assigned. + Fix disintct name for attachment 2014-08-29 15:02:31 +02:00
Thibault Delavallée 32053a5bf3 [FIX] res_partner: Meetings button on form view was not correctly
filtering displayed meetings according to the selected partner.
2014-08-27 12:31:48 +02:00
Fabien Pinckaers 8aca457e34 [IMP] Updated website urls on modules and info page 2014-08-26 21:40:18 +02:00
Jeremy Kersten 720ddf86ee [FIX] crm_lead: add utm in the group by from opportunities search view 2014-08-26 15:06:51 +02:00
qdc f57787e07e [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-26 11:56:49 +02:00
Thibault Delavallée 78a9a6fcaa [FIX] crm, hr_recruitment, task, issue: fixed default priorities + order based on priority (desc for everyone now) 2014-08-22 14:39:36 +02:00
Christophe Simonis 5a5f811d23 [REVERT] commit 5e5c73e
Branch 8.0 is a **stable** branch. This mean no database schema
changes.
2014-08-22 13:59:22 +02:00
qdc 5e5c73e7ba [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-22 09:49:09 +02:00
Olivier Dony 50ef63881a [I18N] Update 8.0 translation with latest source code 2014-08-14 17:01:54 +02:00
Olivier Dony 85d2b45aaa [I18N] Update 7.0 translations with latest changes on Launchpad
See also https://github.com/odoo/odoo/wiki/GitHub-Transition#translations
2014-08-14 03:38:58 +02:00
Olivier Dony 96c36e895c [I18N] Update all 7.0 translation templates with latest terms and annotations
Total new terms: 168
Total deleted terms: 95
Total identical terms: 16329
(Some modules skipped, typically all l10n_* modules)
2014-08-14 02:24:24 +02:00
Fabien Pinckaers ef944dcd55 [IMP] Maifest for Github README.md on main apps 2014-08-12 11:33:15 +02:00
Fabien Pinckaers 8a2b0b4809 [ADD] README.md for CRM 2014-08-12 10:50:17 +02:00
Denis Ledoux ae65be2b2a [MERGE] forward port of branch saas-5 up to 0739bc4 2014-08-11 15:58:02 +02:00
Denis Ledoux 7c647ec876 [MERGE] forward port of branch saas-4 up to 0a1e4a0 2014-08-08 17:27:29 +02:00
Denis Ledoux 0a1e4a05b2 [MERGE] forward port of branch saas-3 up to 81a902a 2014-08-08 17:06:39 +02:00
Martin Trigaux 54857ec409 [IMP] crm: clean after partner merge
When trying to merge partners, an sql error may be violated (e.g. unique constraints).
In this case, catch the error and delete the problematic record as it will no longer be relevant with the old partner and left unconsistant data in the database.
2014-08-07 18:17:39 +02:00
Jeremy Kersten 6655a020c3 [FIX] calendar/crm: Add active_id (if in model partner_id) in defaults values from partner_ids when we creates a new meeting.
Bug was that when you click on meeting button from a res_partner form (Customers in menu), the button overwrites the context to use the active partner as a default in the calendar meeting. By consequence, the context overwritte the default partner who are the creator. Now the context could be removed from action and that is in get_default for partner_ids (from model calendar_event) that we add the creator AND the active_id if from a model res_partner.
2014-08-07 13:02:59 +02:00
Thibault Delavallée 2ca875572a [FIX] crm: fixed day_open and day_close computation (conditional store + be sure that date_open and date_closed fields are set) 2014-08-07 08:54:10 +02:00
Olivier Dony 494ecc620f [MERGE] Foward-port saas-5 up to ee4df1e 2014-08-01 14:24:07 +02:00
Olivier Dony ee4df1e397 [MERGE] Forward-port saas-4 up to 8b15482 2014-08-01 13:06:49 +02:00
Olivier Dony 8b15482e00 [MERGE] Forward-port saas-3 up to e79a367 2014-08-01 12:54:30 +02:00
Denis Ledoux 2d17c18c7d [FIX] crm: base_partner_merge, search with lowercase for name,email
and without spaces for vat
2014-07-31 19:38:00 +02:00
Denis Ledoux 6a26837d24 [ADD] crm: use company/contact name for fill partner_info in chatter
Sometimes, when you send an email in the chatter, a pop-up is displayed to fill the partner details
This case happens when the email address you send the email is not associated to an existing partner
In such cases, in lead, we use the company name and contact name to fill the partner name
2014-07-31 15:33:41 +02:00
Olivier Dony 6c4cf84ce8 [IMP] sale, crm: remove remaining interval filters, continuing 366a30d 2014-07-30 15:13:38 +02:00
Géry Debongnie 366a30db95 [FIX] correct various date issues in reporting
* remove old 'day', 'month', 'field' and replace them by the actual
date/datetime field
* remove weird cast to char when creating the view to prevent crash
when grouping on them
* remove duplicates (such as 'creation_date' and 'create_date')
* fix typing errors (field type date defined as a datetime in the
postgres view)
* fix search view definition
2014-07-30 15:11:22 +02:00
Géry Debongnie 6f563d6284 [FIX] correctly type date field in crm_lead_report
opening_date and date_closed were cast to char but are supposed to be
dates.  When you try to group crm_lead_report by one of them, postgres
was not happy.  Now, it properly tells postgres that they are of type
date.
2014-07-30 15:11:22 +02:00
Olivier Dony 57f79f9fa1 [REM] fields: remove fields.Any, temporary artifact for ill-typed fields
This was added in master-apiculture at f1f16a8 to
permit special function fields that return
structured JSON-like data.
This is unnecessary and caused typing problems, for
example for the type field of ir.model.fields, or
when you decide to store them.

It is simpler to explicitly declare these fields
as fields.Char and have them serialize their results
to JSON strings, or to declate them as fields.Binary
and return any opaque data they want.
2014-07-30 13:24:39 +02:00
Jeremy Kersten a052a72c8a [REF] crm analytics: refactor - lint 2014-07-29 17:10:03 +02:00
Jeremy Kersten 053d32d817 [IMP] crm: Add Campaign source and medium in group by + fix a bug when name_search return a tuple and not only the id. 2014-07-29 14:46:45 +02:00
Olivier Dony ef53a831c6 [MERGE] Forward-port saas-5 up to a5f7891 2014-07-23 16:58:00 +02:00
Denis Ledoux a5f7891b68 [MERGE] forward port of branch saas-4 up to 5739aebfb1 2014-07-23 13:18:30 +02:00
Denis Ledoux 5739aebfb1 [MERGE] forward port of branch saas-3 up to 474eae9a43 2014-07-23 12:14:14 +02:00
Denis Ledoux d9339e1e2d [FIX] sale, crm_claim, crm_helpdesk: report menus
crm claims and helpdesk reports should be in Sales Report menu, not in project
The sales report menu is now defined in sales_team, which is a common dependance between crm and sales, instead of redefining this menu in each modules
2014-07-22 19:13:13 +02:00
Martin Trigaux 1f878f152a [MERGE] forward port of branch 7.0 up to 680f955 2014-07-22 13:39:15 +02:00
Jérome Maes 738270557f [FIX] crm : propagate the lead_id when scheldule other phone calls 2014-07-18 13:02:07 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Thibault Delavallée c33863ed75 [FIX] crm: fixed fields defind in crm_lead_report_view for group_by. Some of them were incorrect. 2014-07-15 10:24:34 +02:00
Christophe Matthieu e26623da01 merge from 8.0 2014-07-09 09:43:02 +02:00
Jeremy Kersten faba7cd5aa [IMP] Crm: Add tracking mixin to manage utm campaign and add this mixin to mass_mailing, crm_lead and sale_order 2014-07-08 17:33:00 +02:00