Commit Graph

3722 Commits

Author SHA1 Message Date
Thibault Delavallée 307119bd55 [IMP] mail: message_last_update -> message_last_post + only update when having a subtype
bzr revid: tde@openerp.com-20140305094042-6f1cne3srq7y1ffn
2014-03-05 10:40:42 +01:00
Thibault Delavallée 72fac9527e [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140305085545-0uy3b0k71hkqe20j
2014-03-05 09:55:45 +01:00
Thibault Delavallée b54b8681a0 [MERGE] [ADD] crm_project_issue module: create issues from leads.
This bridge and optional module add a button on the lead form view to
allow users to create issues from leads. The lead is distroyed during
the operation. All communication history is kept and transferred to the
new issue.

bzr revid: tde@openerp.com-20140304170544-kp624l6vhj0s1rwc
2014-03-04 18:05:44 +01:00
Launchpad Translations on behalf of openerp 9863dbe5c8 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140304075238-yra39uwmwahmrnf3
2014-03-04 07:52:38 +00:00
Jérôme f664ff2ace [FIX] : tde's last remark correction
bzr revid: jem@openerp.com-20140226164521-gccablfi8b6e36qr
2014-02-26 17:45:21 +01:00
Thibault Delavallée d7c974aa5b [MERGE] [IMP] mail: subtype: order by application + allow to hide technical subtypes + updated addons subtypes
- mail.message.subtype:
-- added sequence field, used to order subtypes when displaying them
-- added hidden field, used to hide some subtypes. Subtypes like 'Task Created' or 'Issue Created' are not necessary on a task or issue, but useful on the project form view. Indeed by following the task created subtype on the project, the user is notified of new tasks. However on the task itself it makes no sense to be able to follow task created. This subtype has to exist due to the technical implementation, but should be hidden in the followers widget of the task.
- mail: updated followers widget accordingly, and display subtypes by application with a visual border to separate them

- project, crm, sale_crm: updated hidden and sequence of subtypes

bzr revid: tde@openerp.com-20140221122036-m30laylmb4tqndkh
2014-02-21 13:20:36 +01:00
Thibault Delavallée 0b21db907e [MERGE] Sync with trunk, because trunk was broken at last update
bzr revid: tde@openerp.com-20140221115207-oussz4cxss9u99vw
2014-02-21 12:52:07 +01:00
Thibault Delavallée 587c8474b0 [FIX] mail: fixed regression caused by forward-porting saas-3: re-removed
the hack in mail_thread about subscription in create mode.

bzr revid: tde@openerp.com-20140221113919-3b51stz2u9rj4kcz
2014-02-21 12:39:19 +01:00
Thibault Delavallée d3ea25c0ba [IMP] crm: added sequence on subtypes
bzr revid: tde@openerp.com-20140221112915-1o9pk3gjohtl558w
2014-02-21 12:29:15 +01:00
Thibault Delavallée 6813592da8 [IMP] mail: subtype model: cleaning + improved form view to add the new fields
bzr revid: tde@openerp.com-20140221112904-ijgkqy5zhco5a9i4
2014-02-21 12:29:04 +01:00
Thibault Delavallée e2eb37efe2 [IMP] mail: do not fetch hidden subtypes in follower widgets
bzr revid: tde@openerp.com-20140221112816-xhtc97az72ip355o
2014-02-21 12:28:16 +01:00
Thibault Delavallée 09c90c3a53 [ADD] mail: mail_message_subtype: add a hidden field, to hide some subtypes from
the followers widget. This will be used to hide the created
subtype on the task or issues for example, while still available
on the related project. The subtype on the task is necessary
to trigger the various autosubscription and notification mechanisms
but its display on task/issue is not.

bzr revid: tde@openerp.com-20140221102823-ca1bvw3qi9kf61uq
2014-02-21 11:28:23 +01:00
Thibault Delavallée fc7f21e4bf [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140221102322-oi7wa2sc3867g81d
2014-02-21 11:23:22 +01:00
Christophe Simonis 4769ff5e5d [FIX] mail: fix IndentationError introduced in last commit
bzr revid: chs@openerp.com-20140220172926-4fy9x1i1q4wknfqx
2014-02-20 18:29:26 +01:00
Christophe Simonis 4b72678bc7 [MERGE] forward port of branch saas-2 up to revid 9195 chs@openerp.com-20140220154517-6y531n1mqtnfnsmr
bzr revid: chs@openerp.com-20140220163815-69sza1kclnh5mavs
2014-02-20 17:38:15 +01:00
Thibault Delavallée f9993774f1 [IMP] note: user_id owner field added in model, allowing to tune a bit
the access rules, notably about reading and creation. This allows by the way
to remove the hack about the operation in context when subscribing
users on a document.
The new rules on create and read now include user_id, aka the owner of a note
can always create (default value) and read its notes.
Also removed an unnecessary field (current_partner_id), as it was buggy and
unnecessary; view udpated accordingly.

[IMP] mail: removed a hack introduced in saas-3 with the current orm operation
in context to by-pass some access rules when subscribing someone on a document.

bzr revid: tde@openerp.com-20140219111330-l3hw5324hvuikpjc
2014-02-19 12:13:30 +01:00
Darshan Kalola (OpenERP) b3722090cc [IMP]add help in sequence field.
bzr revid: dka@tinyerp.com-20140219110845-r8r90mzkw73otdx1
2014-02-19 16:38:45 +05:30
Darshan Kalola (OpenERP) 1f71463cfc [IMP] extract subtype ordering from lp:~openerp-dev/openobject-addons/trunk-visibility-hr_holidays-darshan.
bzr revid: dka@tinyerp.com-20140219105246-qmm78w81erhfvhlc
2014-02-19 16:22:46 +05:30
Jérôme 41a4d00abe [FIX] : modified according to tde's remarks
bzr revid: jem@openerp.com-20140218143038-msk038rdmrp1fox1
2014-02-18 15:30:38 +01:00
Jérôme 0ff108c00c [ADD] change the link between lead and issue. Now : transfrom a lead into a issue and modify the mail thread
bzr revid: jem@openerp.com-20140217135731-538vluw7i1gverjf
2014-02-17 14:57:31 +01:00
Olivier Dony 0227d6a056 [FIX] mail: adapt `assertRaises` test after corresponding code change in last forward-port
bzr revid: odo@openerp.com-20140217095143-ibhqyzflle2hbimy
2014-02-17 10:51:43 +01:00
Olivier Dony 76d89c0477 [MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 9133 dle@openerp.com-20140214131810-9abebxpfeoga1crn
bzr revid: odo@openerp.com-20140217091203-kmeg4qsn2qyvll23
2014-02-17 10:12:03 +01:00
Denis Ledoux 0ef17beed0 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9846 revid:dle@openerp.com-20140217124044-o8sgz1esfqeha01f
bzr revid: dle@openerp.com-20140214100922-m6rf7c6x85nv67sl
bzr revid: dle@openerp.com-20140214114713-oab4kbearvv7g3nh
bzr revid: dle@openerp.com-20140214131810-9abebxpfeoga1crn
bzr revid: dle@openerp.com-20140217124230-ov201kfep88f5tn7
2014-02-17 13:42:30 +01:00
Launchpad Translations on behalf of openerp 5d2f1c68ac Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140216064134-tam102h50au851o1
bzr revid: launchpad_translations_on_behalf_of_openerp-20140215073800-2219ymc7ijxq57aa
bzr revid: launchpad_translations_on_behalf_of_openerp-20140216064223-17h9wz07b2siswzs
bzr revid: launchpad_translations_on_behalf_of_openerp-20140217060328-7qh928zk8ro30qzb
2014-02-17 06:03:28 +00:00
Denis Ledoux 677c972e85 [FIX] mail: word wrapping in pre tags (for mails without html in chatter)
bzr revid: dle@openerp.com-20140214131705-efs3bggixyjalxun
2014-02-14 14:17:05 +01:00
Thibault Delavallée 8409791018 [FIX] [IMP] mail: Wall widget: clickable links on the wall now use
the mail.action_mail_redirect client action that redirects to the correct
form view, like the link used in notification emails.

bzr revid: tde@openerp.com-20140213151638-ev2va4y3tmm9m7i8
2014-02-13 16:16:38 +01:00
Thibault Delavallée ec5291c130 [IMP] fetchmail: try / except the processinf of each email and log any exception
found during processing. This way, all emails in the queue are managed and
all failed emails have their own exception in the logs, allowing easier
debugging.
Note that a failed email is set as seen to avoid processing it every time
the scheduler runs.

bzr revid: tde@openerp.com-20140213095717-tcwgkl143i3ujw8h
2014-02-13 10:57:17 +01:00
Thibault Delavallée dca7f71d71 [DOC] mail_thread: docstrings to add raised exceptions in message_process and message_route
bzr revid: tde@openerp.com-20140213090122-0gwin1pjigwu42sz
2014-02-13 10:01:22 +01:00
Olivier Dony bbd813e76e [MERGE] Forward-port of latest saas-2 (incl. 7.0) bugfixes, up to rev. 9127 odo@openerp.com-20140212122042-3m2tysmr31mtecnc
bzr revid: odo@openerp.com-20140212175141-i9yz8zlseglrk8sb
2014-02-12 18:51:41 +01:00
Thibault Delavallée e09f5cd264 [FIX] mail: fixed tests, no more assertionerror, but valueerror
bzr revid: tde@openerp.com-20140212153141-ajwmd26of69tfoer
2014-02-12 16:31:41 +01:00
Thibault Delavallée 150d5a9e18 [IMP] mail: mail_thread: message routing: raise exceptions instead of using asserts.
Indeed assert are statements meant to be used when developping, for
debug purpose. In a production environment it is safer to use real
exceptions that can be managed accordingly.

bzr revid: tde@openerp.com-20140212152737-c7q339psd9hi4iwd
2014-02-12 16:27:37 +01:00
Thibault Delavallée 96d3693441 [FIX] mail_alias: avoid performing tracking when migrating to
alias. Indeed in this method, we have unitialized inherited fields because the orm
is updating. A new no_track key (already intorduced in 7.0, added in this branch because
of a missing forward-port) in mail_thread allows to avoid doing the tracking of values
and is used in mail_alias.

bzr revid: tde@openerp.com-20140210171350-ajwxwau2ar1gu9io
2014-02-10 18:13:50 +01:00
Thibault Delavallée 4be860c167 [REVIEW] mail: mail_thread: cleaned comment of modified code in get_empty_list_help
bzr revid: tde@openerp.com-20140210144611-16nkcju2yerc80e5
2014-02-10 15:46:11 +01:00
Thibault Delavallée 622cb42fe6 [CLEAN] mail: mail_alias: alias name cleaning + find as unique in its own method, called by create and write
bzr revid: tde@openerp.com-20140210144346-ropiufpicvlivhb2
2014-02-10 15:43:46 +01:00
Denis Ledoux 0043f81e33 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9824 revid:dle@openerp.com-20140210134603-ck0jr56xhl8xgzg2
bzr revid: dle@openerp.com-20140210141704-sjzjwhe7fh5gszxr
2014-02-10 15:17:04 +01:00
Turkesh Patel (Open ERP) ee471832f9 [IMP] improved code to show default alias id
bzr revid: tpa@tinyerp.com-20140210131609-v5cxl5pexk37pt6d
2014-02-10 18:46:09 +05:30
Thibault Delavallée 759ed5bbb6 [IMP] mail: subscription: if no-one to (un)subscribe, already return. This is not
necessary for computation, but saves some browse / access right checking.

bzr revid: tde@openerp.com-20140210115827-2y451i0edgve59mi
2014-02-10 12:58:27 +01:00
Denis Ledoux bd0f05690c [FIX] mail: do no pop reply_to if same thread or post in the document is false
Otherwiwse if same thread is checked and post not, the reply_to is forced to the user email to avoid the email to be regarded as private without having a parent mail (has the parent is not posted in the thread), which is not what is expected

bzr revid: dle@openerp.com-20140210092301-1bdyvdwgekwgo9rh
2014-02-10 10:23:01 +01:00
Martin Trigaux 54a1ffc480 [FIX] mail: priority -10 on message_follower_ids to make sure executed before other function field that may use the followers (eg: note.note for access rights)
bzr revid: mat@openerp.com-20140210083130-ag95lqwlpkv7ceqc
2014-02-10 09:31:30 +01:00
Turkesh Patel (Open ERP) f94df0e389 [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20140210072100-p3ry9oq4eklwt9k0
2014-02-10 12:51:00 +05:30
Launchpad Translations on behalf of openerp 8d85c23e4a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065003-9soyulgvssk8n5ci
bzr revid: launchpad_translations_on_behalf_of_openerp-20140208071621-b018rnkhyxmmm5jk
bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065224-kih7tx56elds0zok
bzr revid: launchpad_translations_on_behalf_of_openerp-20140210055324-raxopm5ej680oc73
2014-02-10 05:53:24 +00:00
Thibault Delavallée c2b51ee58a [FIX] mail: mail_followers.js: fixed the fix about is_follower, use the right variable
bzr revid: tde@openerp.com-20140207084946-mkh0ht44x5byhrdj
2014-02-07 09:49:46 +01:00
Olivier Dony f7c1afffcb [FIX] mail.thread: avoid tracking multiple temporary changes during copy
bzr revid: odo@openerp.com-20140206173251-1njroiu08fzgdbyp
2014-02-06 18:32:51 +01:00
Denis Ledoux 15c105d95f [FIX] mail: re-apply security fix correctly from 9812 revid:mat@openerp.com-20140206121438-epghqo042ync24v5 of 7.0 branch
bzr revid: dle@openerp.com-20140206170829-918bxb88qh415w9e
2014-02-06 18:08:29 +01:00
Denis Ledoux 8e4279835b [FIX]mail: fix indentation problem from previous forward port
bzr revid: dle@openerp.com-20140206165630-13w44y6iewdrsl02
2014-02-06 17:56:30 +01:00
Denis Ledoux 041f1db4a6 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9814 revid:dle@openerp.com-20140206163444-ckcmurcwk2vhi5vp
bzr revid: dle@openerp.com-20140206164522-fi05cb4mpg22rkv2
2014-02-06 17:45:22 +01:00
Martin Trigaux 5ebcb64c34 [IMP] mail: in case of creation, still check creation access rights for subscription
bzr revid: mat@openerp.com-20140206120109-6h2vz1ulu33t1509
2014-02-06 13:01:09 +01:00
Thibault Delavallée 4420bdf831 [FIX] mail: followers widget: is_follower was not computed if the current user
was not in the first 10 displayed followers of the document. Compute is_follower
based on all followers, not just the first 10.

bzr revid: tde@openerp.com-20140206112145-ibir7cj6wxe1ksgt
2014-02-06 12:21:45 +01:00
Martin Trigaux 922836d8cd [IMP] mail: check at least access_rights in case of creation
bzr revid: mat@openerp.com-20140206110327-zar4yl03r1lympx6
2014-02-06 12:03:27 +01:00
Christophe Simonis a69f789b41 [MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141-7e8bv8ordqqsswh7
bzr revid: dle@openerp.com-20140205105045-j95kduyjiq83e57z
bzr revid: dle@openerp.com-20140114173613-ruxye1m7fxtcjfim
bzr revid: dle@openerp.com-20140116161158-u95vcs3os4tk2zob
bzr revid: dle@openerp.com-20140121172737-gzawfi3ssg7xifef
bzr revid: chs@openerp.com-20140129094554-c3abc8x3qz9mpszr
bzr revid: chs@openerp.com-20140129140159-9vwkpr078shoonum
bzr revid: chs@openerp.com-20140206110220-myn57cryam1y4k9v
2014-02-06 12:02:20 +01:00