Commit Graph

74369 Commits

Author SHA1 Message Date
Darshan Kalola (OpenERP) d1a23edd2e [IMP]align multi-line string
bzr revid: dka@tinyerp.com-20130917130814-wikgcy25594gk8dx
2013-09-17 18:38:14 +05:30
Darshan Kalola (OpenERP) 21876a5810 [MERGE]merged with main addons
bzr revid: dka@tinyerp.com-20130917123814-wqx07inh0ckcqdgw
2013-09-17 18:08:14 +05:30
Thibault Delavallée 1f3195c271 [MERGE] [IMP] purchase: misc menu improvements
- Pricelists menu now in Configuration / Pricelists
- Partner Categories menu renamed to Partner Tags

bzr revid: tde@openerp.com-20130917114853-2stgi1xyh6bh8tex
2013-09-17 13:48:53 +02:00
Thibault Delavallée 2a3a631ef4 [MERGE] [ADD] mass mailing module: handle mass mailing campaigns, get statistics of email waves
This module allows to define mass mailing campaigns and to have statistics about mass mailings. Each campaign holds several waves of mass mailing. Tracked statistics are the opening datetime, the reply datetime, the bounce datetime. The statistics are stored onto a mail.mail.statistics model. This allows to delete emails without loosing statistics.

Emails sent using mass mailing use a blank image linked to a controller that allows to track the opening of the email. When a reply goes through the mail gateway, the message_id in the email references is used to find its parent and, if found, update its replied date.

This module adds a new parameter, the bounce alias. If set, the Return-Path of sent emails is set to bounce_alias@alias_domain (i.e. bounce@mydomain.com). Any email coming through the mail gateway using this alias set its parent, if found, as bounced. If the related model has a message_bounce field, this field is incremented. This is for example the case for crm.lead model, allowing to filter and delete leads linked to a wrong address.

Misc :
- mail: test_mail_base is now called common; moved mail.group tests into their own file
- mail: fixed some issues in controllers (forgotten import, controllers not updated to new specifications of oe framework)
- mail, email_template, mail.compose.message: template rendering is now done in batch; now each template is rendered for all res_ids. Refactored email or mail_message value creation in mail.compose.message, to extract value creation from the process of sending emails. This allows to ease the inheritance.
- mail.compose.message: in mass_mailing, default value is to create a pure email mailing, not mass posting on document (aka, post is now False by default)
- mail.message, mail.followers: cleaned posting and notification email process, to lessen the number of queries to execute (read -> browse, refactored some methods)
- mail.message: cleaned form view, removing unnecessary group_by
- mail.message: reply_to and message_id computation in create now have their own methods located in mail_message.py (and not in mail_mail.py anymore for reply_to)
- mail.mail: slightly cleaned form view
- mail.thread: processing of routes in mail gateway is now done in message_route_process, extracted from message_route, to ease inheritance
- base_setup: added field in res_config to install mass_mailing
- crm: added message_bounce field

bzr revid: tde@openerp.com-20130917110214-z8494dfuok1g89lh
2013-09-17 13:02:14 +02:00
Thibault Delavallée ff0eb116ea [MERGE] [IMP] tools: added a regex for bounce email addresses
[IMP] read_group: added possibility to customize the group_by on datetime fields. A special context key can be used for datetime fields : datetime_format.
context[datetime_format] = {
    'field_name': {
        groupby_format: format for to_char (default: yyyy-mm)
        display_format: format for displaying the value in the result (default: MMM yyyy)
        interval: day, month or year; used for begin and end date of group_by
                  intervals computation (default: month)
    }
}

bzr revid: tde@openerp.com-20130917110040-l3b5i0vk8qiwy0cm
2013-09-17 13:00:40 +02:00
Thibault Delavallée 8ae3b158db [IMP] cleaning before merging :
- added fields on mail.mail.statistics form view to have all data;
- added comments;
- cleaned get_mail_values override now that statistics are created using o2m command

bzr revid: tde@openerp.com-20130917103555-jwhgl8y49g505ugz
2013-09-17 12:35:55 +02:00
Thibault Delavallée 2bc275457a [CLEAN] mail: removed unnecessary change
bzr revid: tde@openerp.com-20130917102046-8khoz9axz5vr6j13
2013-09-17 12:20:46 +02:00
Thibault Delavallée 54c014c4ea [IMP] read_group: group_by -> groupby (same variable, but was used in previous implementation, so I keep it)
bzr revid: tde@openerp.com-20130917100447-u0qhdsw14wdngxwc
2013-09-17 12:04:47 +02:00
Thibault Delavallée 643996de2b [FIX] mass_mailing: fixed bouncing tracking
mail_mail now have a statistics_ids field, allowing to create statistics when creating a mail.mail.
This is done in the mail composer, using classic o2m command. Mail_mail create is overrided to ipdate
the statistics value (message_id) that is computed directly in the create and not accessible
in the values dict.
Added model and res_id on stat model, to allow message_bounce update, without havign to rely
on the mail.mail existence.

bzr revid: tde@openerp.com-20130917094218-7jz5mnldogzhlioh
2013-09-17 11:42:18 +02:00
Thibault Delavallée a2d167bd0a [MERGE] Sybc with trunk
bzr revid: tde@openerp.com-20130917085022-a0u60kug7siqzksa
2013-09-17 10:50:22 +02:00
Thibault Delavallée fb4ab9dd0c [IMP] mass mailing: improvements :
- improved mass mailing wizard creation (everything is showed, better alignment, filter_id required, added default document on Partner)
- campaign: o2m is now readonly in form view, added an empty list help

bzr revid: tde@openerp.com-20130917085003-yof5gfy68y56ougf
2013-09-17 10:50:03 +02:00
Launchpad Translations on behalf of openerp bc0d066505 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130914054213-dq0kt273ooy6fozn
bzr revid: launchpad_translations_on_behalf_of_openerp-20130915055539-hzmy1ws1il6z8fji
bzr revid: launchpad_translations_on_behalf_of_openerp-20130915054954-zisp7huxai3ew84l
bzr revid: launchpad_translations_on_behalf_of_openerp-20130916054225-m0j262vooofcavqz
bzr revid: launchpad_translations_on_behalf_of_openerp-20130917043759-tke0eln0ca01hsm7
2013-09-17 04:37:59 +00:00
Thibault Delavallée 03ff00b63c [DOC] mail: updated changelog of mail to match the new implementation
bzr revid: tde@openerp.com-20130916115055-k08sdeiomriskbx9
2013-09-16 13:50:55 +02:00
Thibault Delavallée 63988959a7 [IMP] read_group: added forgottent year computation
bzr revid: tde@openerp.com-20130916114722-4742fhn4ilhf133e
2013-09-16 13:47:22 +02:00
Thibault Delavallée 1d76129a22 [FIX] mass_mailing:
- fixed forgottent import of mail_thread in mass_mailing, to enable bounce and replied tracking
- fixed replied computation in message_route_process, adding the original email in parameters
- fixed form view of campaign, to add edit and dlete now that clicking on it redirects to the waves
- added track field on mail_mail, to avoid creating too mush entries in mail.mail.statistics
- fixed mass_mailign controller

bzr revid: tde@openerp.com-20130916114706-b9zyhp0ha6mr9fzg
2013-09-16 13:47:06 +02:00
Thibault Delavallée defa3adbe8 [DOC] read_group: added comments for the new formatting option
bzr revid: tde@openerp.com-20130916103047-lpbf7czflyvgtonu
2013-09-16 12:30:47 +02:00
Thibault Delavallée 20f9f42ea9 [IMP] mass_mailing: improved kanban view of campaign (clicking now reidrects to mass mailings, filtered by the campaign); added search views for the various models; re-ordered view file; put demo data into demo section; added JS file for click redirection
bzr revid: tde@openerp.com-20130916101035-qre7362jyxwl4xve
2013-09-16 12:10:35 +02:00
Thibault Delavallée d23f15e1b2 [MERGE] Sunc with trunk
bzr revid: tde@openerp.com-20130916092213-iuzc7lu5q0rc3hjm
2013-09-16 11:22:13 +02:00
Thibault Delavallée 8583ced4cc [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130910151742-rgmc2jwx6zyg38lp
bzr revid: tde@openerp.com-20130912073916-1ph4x7cw6oovdafl
bzr revid: tde@openerp.com-20130916092207-5rqco7ua9tbd1cvh
2013-09-16 11:22:07 +02:00
Thibault Delavallée 426abbc65e [IMP] mass_mailing: improved various views of new objects
bzr revid: tde@openerp.com-20130913140043-wfrk7yv3qx20e5on
2013-09-13 16:00:43 +02:00
Thibault Delavallée de43093621 [IMP] mass_mailing: removed duplicate view; added views for mail.mail;statistics
bzr revid: tde@openerp.com-20130913133841-gk6axalbo1dyayhe
2013-09-13 15:38:41 +02:00
Thibault Delavallée 71d2a97a50 [IMP] mail.compose.message: simplified mass mailing use in composer
Only remaining field is mass_mailing_campaign_id; if set, a new segment is automatically created
and its id is given to the created mail.mail.statistics using default value in context

bzr revid: tde@openerp.com-20130913132234-66vl19w54znky2rc
2013-09-13 15:22:34 +02:00
Thibault Delavallée 7b75c481d6 [IMP] base_setup: added option in sales to install mass mailing
bzr revid: tde@openerp.com-20130913132150-kq5bsantglfogizs
2013-09-13 15:21:50 +02:00
niv-openerp 6d411f7065 [FIX] really solve reload problem
lp bug: https://launchpad.net/bugs/1214814 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130913124026-yhchgik5yznkme19
2013-09-13 14:40:26 +02:00
Thibault Delavallée fbc6443692 [CLEAN] mail: cleaned some read -> browse + forgotten statement to remove
bzr revid: tde@openerp.com-20130913122956-6zkk9ucewbt6w407
2013-09-13 14:29:56 +02:00
Thibault Delavallée ed62d1dac7 [REF] mass_mailing: first refactor
Mail statistics are now stored onto a separated object (mail.mail.statistics), allowing to
handle emails separately from statistics (among other removing mail.mail entries while keeping
statistics).

Everything linnked to opened/replied/bounce is not managed by mass_mailing, removed added code
in mail module.

bzr revid: tde@openerp.com-20130913115408-322cyjipdg680as6
2013-09-13 13:54:08 +02:00
niv-openerp 56382a450a [FIX] problem with page reload after installing a module
lp bug: https://launchpad.net/bugs/1214814 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130913104026-rxtl7h1u7vuixyvm
2013-09-13 12:40:26 +02:00
niv-openerp 53b7baf1ce [FIX] fixed some problems related to magic guess of db, now only tries to perform the magic guess when the --dbfilter argument is specified
bzr revid: nicolas.vanhoren@openerp.com-20130913102444-u30boym4nklatnf1
2013-09-13 12:24:44 +02:00
Thibault Delavallée 2f9980881b [FORWARD] Forward-port of addons saas-1 until revision 8775 (revid tde@openerp.com-20130913092546-kzshg1a7sls566l8).
[FIX] account: trunk version of the fix added in version 9440 of 7.0 branch

bzr revid: tde@openerp.com-20130913095612-i2f0kd3mhxdavdp6
2013-09-13 11:56:12 +02:00
Denis Ledoux 546a191f0a [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9459 rev-id: fva@openerp.com-20130918153347-fy4nuvbm82ngfb8x
bzr revid: mat@openerp.com-20130826135110-f9q4p65ds2aholcw
bzr revid: dle@openerp.com-20130828141129-ecxl2vlpb8vw0o9f
bzr revid: dle@openerp.com-20130828162659-n8a0ku9o3h01qaov
bzr revid: dle@openerp.com-20130830094205-q3itwd7x0246d9n6
bzr revid: dle@openerp.com-20130830133604-mfnfbscn5wdk4vi4
bzr revid: dle@openerp.com-20130902131244-v9uh0s8rg4889i7j
bzr revid: mat@openerp.com-20130903134105-68ziuaccreu6rs61
bzr revid: chs@openerp.com-20130906171851-jtfsf4au1k30wwlr
bzr revid: dle@openerp.com-20130909103120-k5oefxgebhyslac3
bzr revid: dle@openerp.com-20130909170047-pbzw4ernvcpivbhh
bzr revid: chs@openerp.com-20130910122113-171osvcukxffxcry
bzr revid: tde@openerp.com-20130912121059-k840pi4rwdzpez8g
bzr revid: dle@openerp.com-20130913085251-p906ci2divy82jur
bzr revid: tde@openerp.com-20130913092546-kzshg1a7sls566l8
bzr revid: mat@openerp.com-20130917122102-drf8fj9lrjj0fvju
bzr revid: mat@openerp.com-20130917161614-w8u2c1ayeb5kxm30
bzr revid: dle@openerp.com-20130918161305-7ep1642nxzyy3vhd
2013-09-18 18:13:05 +02:00
Frédéric van der Essen 6fb8cb4756 [FIX] point_of_sale: barcode scanner was not working in firefox due to usage of event.keyCode instead of event.which
bzr revid: fva@openerp.com-20130918153347-fy4nuvbm82ngfb8x
2013-09-18 17:33:47 +02:00
Olivier Dony 130afb812d [FIX] ir.mail.server: improve support for user names with emails
The previous fix in revision 5072 only allowed user names
that contained the exact same emails, but users will do
the wildest things like having `someone@domain.com` as
name but setting their email to `someone@domain2.com`.

This was blocked by our sanity check looking for a single
email in the From header. As this check is only done
in order to provide a better error message, it should
not impact valid cases.
Modifying the check to pass when at least one email
was found should be enough to catch most invalid cases,
without requiring a more advanced analysis of the
header value (the RFCs allows very strange things!)

bzr revid: odo@openerp.com-20130918143807-wqqpqomyu1ppa2ih
2013-09-18 16:38:07 +02:00
Martin Trigaux f37b2a0db4 [IMP] account: performance improvement on the creation of new account.move (opw #597719)
bzr revid: mat@openerp.com-20130918143146-bnmoje96alatdyc1
2013-09-18 16:31:46 +02:00
Frédéric van der Essen d30f5e8be6 [IMP] point_of_sale: when the product search returns only one product, order it on 'enter' keypress
bzr revid: fva@openerp.com-20130918134208-t9g50q8whdft4xzq
2013-09-18 15:42:08 +02:00
Frédéric van der Essen 645c3ccf65 [FIX] point_of_sale: currency should be fetched from the pricelist instead of the company
bzr revid: fva@openerp.com-20130918122836-pqi1w41swu4rcrga
2013-09-18 14:28:36 +02:00
Olivier Dony ff9e90fad6 [MERGE] tools.translate: add compatibility with Babel v.1.3, courtesy of Stefan Rijnhart (Therp)
lp bug: https://launchpad.net/bugs/1226576 fixed

bzr revid: odo@openerp.com-20130918081216-8dnkmyp4wif3nm24
2013-09-18 10:12:16 +02:00
Stefan Rijnhart 7de17a9358 [FIX] Keep backwards compatibility with Babel 0.9.6
bzr revid: stefan@therp.nl-20130918074505-59q1fs3ixlev1ein
2013-09-18 09:45:05 +02:00
Stefan Rijnhart a9b8936a4d [RVT] Undo previous fix
bzr revid: stefan@therp.nl-20130918074407-ae6yu2f001vxl0le
2013-09-18 09:44:07 +02:00
Martin Trigaux eb26358196 [FIX] sale_crm: move code reverted at revision 9452 to the sale_crm module instead of project_mrp
bzr revid: mat@openerp.com-20130918073333-xikarmzmmmdzp3ia
2013-09-18 09:33:33 +02:00
Olivier Dony 54c4fe7f01 [MERGE] project_mrp: correct reference to process.node from sales process
The project_mrp process extends the sales process at
the procurement phase, however that part of the sales
process has now been moved to the `sale_stock` module,
which is not a dependency of `project_mrp` anymore.
There is however little reason to duplicate that
process node, so as a temporary hack, we can copy
its external ID, even though there is no direct
dependency between the two.

For next version we should fix this hack by moving
the node to a common dependency between sale_stock
and project_mrp, such as `sale`.

lp bug: https://launchpad.net/bugs/1223276 fixed

bzr revid: odo@openerp.com-20130918074002-wrhnq0w4t8xx3rgv
2013-09-18 09:40:02 +02:00
Launchpad Translations on behalf of openerp 99576f547c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130918051117-44x8mgdnm0ucqyp4
2013-09-18 05:11:17 +00:00
Martin Trigaux bdf2395e3a [FIX] project_mrp: revert addition in commit 9445 breaking databases withtout mrp module
bzr revid: mat@openerp.com-20130917160918-dohb1lb5vtqsy5lv
2013-09-17 18:09:18 +02:00
Olivier Dony 4116a38181 [FIX] project_mrp: correct reference to process.node from sales process
The project_mrp process extends the sales process at
the procurement phase, however that part of the sales
process has now been moved to the `sale_stock` module,
which is not a dependency of `project_mrp` anymore.
There is however little reason to duplicate that
process node, so as a temporary hack, we can copy
its external ID, even though there is no direct
dependency between the two.

For next version we should fix this hack by moving
the node to a common dependency between sale_stock
and project_mrp, such as `sale`.

lp bug: https://launchpad.net/bugs/1223276 fixed

bzr revid: odo@openerp.com-20130917160337-lih7bjqastozga8w
2013-09-17 18:03:37 +02:00
Stefan Rijnhart b224b40fac [FIX] Restore compatibility with Babel > 0.9.6
lp bug: https://launchpad.net/bugs/1226576 fixed

bzr revid: stefan@therp.nl-20130917122312-r6s7dgzdsfil7xyg
2013-09-17 14:23:12 +02:00
Martin Trigaux c0be2ae2a7 [MERGE] [FIX] base_calendar: Fix domain evaluation for calendar recursive and fix search method for recurrency date
bzr revid: mat@openerp.com-20130917093906-3oe3xr7zaoc1r80m
2013-09-17 11:39:06 +02:00
Martin Trigaux edf34053ad [FIX] stock: use user's language as default value to fetch product translation
bzr revid: mat@openerp.com-20130917074045-4o5t46t7fucqr354
2013-09-17 09:40:45 +02:00
Martin Trigaux f699c0cb6e [FIX] stock: decimal precision of new_price field on update cost price wizard is not same as defined in cost_price field
bzr revid: mat@openerp.com-20130917073805-dg4yvxrjkv35k7p1
2013-09-17 09:38:05 +02:00
Launchpad Translations on behalf of openerp a46cbb7a31 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130913060803-zltruvkg213vqm57
bzr revid: launchpad_translations_on_behalf_of_openerp-20130915061052-1kts2jol7uvq1n4f
bzr revid: launchpad_translations_on_behalf_of_openerp-20130917051850-e1s8v09muo1atjwh
bzr revid: launchpad_translations_on_behalf_of_openerp-20130917051903-257acdjbxi60zyv8
2013-09-17 05:19:03 +00:00
Martin Trigaux 7bdd9a6ad3 [FIX] hr_timesheet_sheet: use timezone in hour computation for timesheet
bzr revid: mat@openerp.com-20130916143300-sa3zpm505ac6r145
2013-09-16 16:33:00 +02:00
Martin Trigaux 461b5d8191 [MERGE] [FIX] mrp_subproduct: correctly take into account subproduct_factor when checking quantities on BoM
bzr revid: mat@openerp.com-20130916123442-cch34mghmwh1p18e
2013-09-16 14:34:42 +02:00