Commit Graph
74384 Commits
Author SHA1 Message Date
Frédéric van der Essen 95f57faabd [MERGE] from trunk
bzr revid: fva@openerp.com-20130919134832-tg2v5vrozfzwcpoq
2013-09-19 15:48:32 +02:00
Frédéric van der Essen 9ddaf705cf [FIX] point_of_sale: hr demo data products shouldn't be available in the point of sale by default
bzr revid: fva@openerp.com-20130919132435-dpr8antwh2e5c6bh
2013-09-19 15:24:35 +02:00
Frédéric van der Essen 91763dbd57 [IMP] point_of_sale: confirmation message on session close when there are unposted orders
bzr revid: fva@openerp.com-20130919131228-hhrp3guno8ddt5m2
2013-09-19 15:12:28 +02:00
Frédéric van der Essen 316d079b59 [IMP] point_of_sale: remove empty payment lines when going back to product screen
bzr revid: fva@openerp.com-20130919131012-ylnqrab48a9746l6
2013-09-19 15:10:12 +02:00
Thibault Delavallée 3a163c1932 [IMP] addons: cleaned spaces and indentation of help messages of various res_config fields
bzr revid: tde@openerp.com-20130918080910-l6os3d4rff1p7vzd
2013-09-18 10:09:10 +02:00
Launchpad Translations on behalf of openerp fb7d1001dd Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130918044924-csoci28hkz0lyqm3
2013-09-18 04:49:24 +00:00
Frédéric van der Essen 6bb396eb68 [MERGE] point_of_sale: various fixes and improvements
bzr revid: fva@openerp.com-20130917162146-40l4zmby8lmo2dtn
2013-09-17 18:21:46 +02:00
Frédéric van der Essen 14dd9656e2 [MERGE] from trunk
bzr revid: fva@openerp.com-20130917152501-2uohstpmkf5jrcvr
2013-09-17 17:25:01 +02:00
Darshan Kalola (OpenERP) d1a23edd2e [IMP]align multi-line string
bzr revid: dka@tinyerp.com-20130917130814-wikgcy25594gk8dx
2013-09-17 18:38:14 +05:30
Frédéric van der Essen 0d826f64ca [FIX] point_of_sale: missing renamings from the JobQueue refactor
bzr revid: fva@openerp.com-20130917124615-kqtix2atp1xguszw
2013-09-17 14:46:15 +02:00
Darshan Kalola (OpenERP) 21876a5810 [MERGE]merged with main addons
bzr revid: dka@tinyerp.com-20130917123814-wqx07inh0ckcqdgw
2013-09-17 18:08:14 +05:30
Frédéric van der Essen ad6bbe490a [FIX] point_of_sale: scaled product weren't ordered with the correct weight
bzr revid: fva@openerp.com-20130917123446-671ijt70i93p0w67
2013-09-17 14:34:46 +02:00
Frédéric van der Essen 674054c97e [IMP] point_of_sale: removed ProductWidget for faster product list updates
bzr revid: fva@openerp.com-20130917122929-8pybdbvgrv8kbgru
2013-09-17 14:29:29 +02:00
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
Frédéric van der Essen c33fd59465 [MERGE] from upstream
bzr revid: fva@openerp.com-20130917101910-4h2g2njs2e9toc36
2013-09-17 12:19:10 +02:00
Frédéric van der Essen 65c70b85a7 [IMP + FIX] point_of_sale: plugged the memory leaks
- correctly call destroy on widgets
 - unbind backbone events on destroy
 - jquery show() hide() flooded jQuery.cache
 - introduced automated ui tests

bzr revid: fva@openerp.com-20130917101420-g76gos2qjjaii3zf
2013-09-17 12:14:20 +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