summaryrefslogtreecommitdiff
path: root/addons/mail/data
AgeCommit message (Collapse)Author
2021-04-23[FW][FIX] sale: correctly redirect customers in "Pay Now" templateThibault Delavallée
Mail holds a "Pay Now" notification template holding notably customized links to portal for records like sale orders or invoices. It allow to give a more personalized button than a plain simple "View document" link. Currently frontend / backend links are not always correctly computed in this template. This commit fixes that behavior. Task ID-2513724 COM PR #69607 ENT PR odoo/enterprise#17849 closes odoo/odoo#69714 X-original-commit: odoo/odoo@a55f125f5420797a9378925da5626e43d002b9b0 Related: odoo/enterprise#17889 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-02-05[IMP] mail: mark first welcome message as read for the adminDhruv Patel
Actually, We don't want to distract the admin with an unnecessary notification on General Channel. The main focus should be on odoobot's tour, not on the general channel's welcome message. And it is also not a good idea to remove the general channel as it would reduce the discoverability of the feature. So, we are marking the first message as read for at least admin user. therefore admin can not distract over unnecessary welcome notification and focus more on the rest of the functionality. Task : 2442023 closes odoo/odoo#65440 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-26[IMP] mail, mail_bot: move notif request and OdooBot name into mailDidier (did)
task-2282334 closes odoo/odoo#56584 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-07-09[FIX] mail: assign correct subtype to "general" demo messagesDidier (did)
Some demo messages have a grey background because they have the subtype_id set to NULL. The subtype should be `mail.mt_comment`, like other messages inside the general channel. task-2278438 closes odoo/odoo#54261 X-original-commit: 9be1079cc62699d119b9c2acc6282bd72f71f9af Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-06-15[REF] mail, *: refactor messaging with OWLSébastien Theys
This commit is a significant rewriting of client-side discuss, chatter, chat window, and messaging menu using OWL. The behavior should be broadly the same, with some slight functional changes here and there. From a technical standpoint, the code of messaging is mainly organized in 2 main groups of modules: - models, which are logical entities that depict the client-side state of messaging as a whole. - components, which are in charge of displaying information from models. This refactoring also introduces new JS guidelines regarding folder structure (/static) and naming rules for JS modules. Community PR: https://github.com/odoo/odoo/pull/39023 Enterprise PR: https://github.com/odoo/enterprise/pull/6249 Task-1914207 This PR is a collaborative work by Alexandre, Julien, Sébastien and Xavier, with the precious help of Lucas to speed it up towards the end. closes odoo/odoo#39023 Related: odoo/enterprise#6249 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Alexandre Kühn <aku@odoo.com> Co-authored-by: Julien Giannone <jgi@odoo.com> Co-authored-by: Lucas Perais <lpe@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com> Co-authored-by: Xavier Dubuc <xdu@odoo.com>
2020-06-15[MOV] mail: move message technical template into data and correctly name ↵Thibault Delavallée
assets file Task ID 2265592 PR #
2020-06-08[FIX] mail: channel `#general` with default messagesNidhi Patel
Before this commit, when starting a new database with demo data, the default channel `#general` had no messages initially. The demo data defines default messages in this channel, but were incorrectly linked to this channel, resulting in this channel containing no messages initially. The messages did not define `channel_ids`, so it was considered empty. This field is essential for displaying the message in channel, so by being omitted these messages are not properly linked to channels. This commit fixes the issue by correctly linked this demo messages to this demo channel, so that `#general` now contains some messages initially. This commit also removes unused context `mail_notify_noemail`. Task-Id 2186300 closes odoo/odoo#49539 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-04-20[FIX] mail: Fallback to default company logo instead of odoobotAndrea Grazioso (agr-odoo)
For some specific report (i.e account followup report) the mail_message sent will contains no company informations because it will be sent on the partner context, so when generating the template the logo will be retrieved from the route /logo.png?company=False which yield back the odoo company logo. Adding a default 0 allow to retrieve the company logo for the current user opw-2232184 closes odoo/odoo#49787 X-original-commit: eea99fe1e00eb2dbd2bbeaca3e2f09845b426267 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-12[IMP] mail: ease bounce email content update based on alias securityRémy Voet (ryv)
PURPOSE When incoming emails bounce due to alias security bounce email is quite generic. Purpose of this task is to ease its customization and update. SPECIFICATIONS In order to improve the flexibility of alias, add a customizable html field on the alias model. This html content will be send as bounce email core content in case of bounced/unauthorized mail received for this alias, Obviously it has no effect on 'everyone' security setting as no email will bounce due to that issue. If it is not set a default generic mail will be send depending on security setting. It allows to keep void html fields when no specific bounce content is required In HR, an old template allowing some light customization for employee based security option is removed as it is completely replaced by the new feature. Also add references message-id of the mail received to the answer so that threads are correctly set. LINKS Task ID 2126509
2020-01-13[IMP] mail: archive exception activity typeIpsita Borisagar
Currently, 'Exception' ativity type is visible in dropdown list of schedule activity. It is used by the system to generate warning activities on records. It is not meant to be used by the user when scheduling activities manually. By, giving active=false on mail.mail_activity_data_warning, we can hide 'Exception' activity type in dropdown list for user but available for the system to generate warning. task-2168569 closes odoo/odoo#43549 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-12-09[REV] web: reverts update to fontawesome 5.11.2Kevin Baptiste
This reverts commit ff1c35513aecef5fbc30f7c2f3834450e719714e. closes odoo/odoo#41480 X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc Related: odoo/enterprise#7110 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-12-02[IMP] mail: use _notify_get_action_link and not inline stringRomeo Fragomeli
Note that this also add data-oe-model and data-oe-id in XML. This allow us to avoid to load these links as external URL when a user receive it in inbox instead of external mail client. See file addons/mail/static/src/js/thread_widget.js -> _onClickRedirect Task ID: 1895451 closes odoo/odoo#39958 Related: odoo/enterprise#6414 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-11-28[IMP] web: update to fontawesome 4.7.0 to 5.11.2Kevin Baptiste
FontAwesome 5 introduced new names for some icons as described on https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes This commit replaces the old names to the new ones. closes odoo/odoo#35826 Taskid: 2050241 Related: odoo/enterprise#5180 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-20[REM] mail: remove unreachable demo dataThibault Delavallée
Mail contains demo data related to private discussions. However this kind of use of mail has been removed since several versions. This demo data only creates noise in mail.message without adding any real demo for any users. As messages should be linked to existing business documents, existing demo data in demo channel and additional messages coming in other applications should be sufficient. Let us remove those demo you can see only in technical menus. Task ID 2121319 PR #39907 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-01[FIX] mail: use correct template attributeHugo Adan
Custom CSS should be in style attribute Closes odoo/odoo#37638 closes odoo/odoo#37707 X-original-commit: c1254cca7aae54982d270227d58aad8bdf0a7804 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-05[IMP] mail, test_mail: new 'History' mailbox in DiscussNikunj Ladava
This commit adds a new mailbox in the Discuss app called 'History'. Messages that have been marked as read are moved to 'History'. Notifications are required to link history messages to users. So notifications are now deleted after they are more tha 6 months old. This means History mailbox keeps less than 6 months old messages. Note that this feature only works when user notifications are handled in Odoo. This can be set in the user preferences, under the "Notification Management" section. Task-ID 402597
2019-07-05[IMP] mail: do not log note if note is emptyRomainLibert
Because a note could be only False, not at least "<p></br></p>" TaskID: 2026295
2019-06-12[IMP] web,mail: support line break in activity feedbackVarun Raval
Purpose of the commit is when writing feedback on an activity it doesn't have a line break in it so feedback was printed in a single line. After this commit feedback will support line break. Split the line by '\n' in feedback xml template to avoid t-raw. Avoid `preventDefault` in kanban record when hitting <ENTER> on a textarea. Task #1965831 closes odoo/odoo#33212 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-06-05[REF] *: removes datas_fname from ir.attachmentThanh Dodeur
This commit removes the field `datas_fname` from `ir.attachment` as it was unnecessary and most of the time the duplicate of `name` or `url`. Task #1909865 closes odoo/odoo#32976 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-05-09[IMP] mail: improve "Pay Now" email notification layoutBarad Mahendra
In mail custom layout template display 'best regards' and signature in email only when user exists and is not odoobot. Border-bottom style is also now white-listed in sanitizer in order to ease customization of emails. Related to task ID 1873634 Linked to PR #28781
2019-03-12[IMP] mail,*: remove useless field `is_master_data`Christophe Simonis
This field is a non-sense. By using the same logic, it should be added to any low level model. Replace the check by a simple verification of presence of an XMLID. A more generic opt-in solution should be integrated into ORM. Partially revert commits 0db0e66e96a8f6b393565da6fbb8dce25ec960b7 and bbd64c22abc19558c1d83a892fc426bf99a094ce. See #29257 odoo/enterprise#3550 closes odoo/odoo#31778 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-21[MERGE] forward port branch 12.0 up to 84143a34b31Christophe Simonis
2019-02-06[FIX] *: share URL on the correct website if possibleSébastien Theys
* = base, auth_signup, mail, portal, sale, website, website_sale Before this commit, sending an object by email would always link to web.base.url even if the object was created from a specific website. Now if the object has a website, we use the URL of that website if it is set. The fallback will always be on the web.base.url. opw-1921030 PR: #30000
2019-01-31[MERGE] forward port branch 12.0 up to cb8fefa8999Christophe Simonis
2019-02-05[IMP] mail: improve usability of activitiesMohit Ghodasara
Purpose of the task is to improve the usability of activity types and activity scheduling. Another purpose is alto to protect some master data activity types by flagging them and preventing their deletion. Containing * make the activity type as master data so deletion will be prevented; * improve the usability of the activity type; * prevent the deletion of activity type which are used for automated activity; * change the usability of activity scheduling modal; This commit is linked to task ID 1907970 and PR #29257.
2019-02-04[MERGE] forward port branch saas-12.1 up to 4524ad06a8aChristophe Simonis
2019-01-29[FIX] mail: user signatureNicolas Martinelli
- Install Invoicing - Multi company Set up with no common contact book - Create & validate an invoice with user A in company 1 - Change to company 2 with user A - Connect with user B in company 1 - Send & Print the invoice An error is raised on the template rendering because user B cannot read info from user A. opw-1928676 closes odoo/odoo#30649
2019-01-09[MERGE] forward port branch 12.0 up to 3e4138deaa2Christophe Simonis
closes odoo/odoo#30045
2018-12-31[FIX] mail: Wrong message when closing activitiesJorge Pinna Puissant
opw-1916935 Before this commit, when a next activity was closed, the message said that the action was performed by the assigned person. Now, the message say that the action was performed by the person who closed the activity. closes odoo/odoo#29678
2018-12-12[MERGE] forward port branch 12.0 up to 047e2b28de4Christophe Simonis
2018-12-10[FIX] mail: model descriptionNicolas Martinelli
Do not use the model `_description` field which cannot be translated. Use the `display_name` of the corresponding model instead. Moreover, `<t t-esc="'%s' % model_description or 'document'"/>` gives `'None'`, while `'document'` is expected. This adds a query to some tests, which is expected since `display_name` requires information stored in the DB, while `_description` is defined at the Python level. opw-1908420
2018-11-16[MERGE] forward port branch 12.0 up to bc744a1da46Christophe Simonis
2019-01-17[IMP] mail: upload a file to mark activity as donejem-odoo
This commit introduces the "upload file" activity type category. For an activity of that time, uploading a file will mark the activity as done (and maybe create the forced next activities). This activity type is seen as a shortcut to upload a file with a reminder. Task-1915004 closes odoo/odoo#29861
2019-01-09[MERGE] forward port branch saas-12.1 up to 8aa8548d8abChristophe Simonis
2018-12-18[IMP] mail: improve activity done message templateXavierDo
Feedback should be the first part of the message without title to make it more concise. If the activity has a note, the note should be displayed but after the feedback. We can also remove the field feedback that was not so useful since it was only written just before unlink. Feedback is now passed as another parameter to the template. Task: 1918392 closes odoo/odoo#29605
2018-12-12[REF] mail: remove create_user_id field on activityThibault Delavallée
As activities are created using the current user there is no need anymore to have another field to store the activity creator. We can therefore remove create_user_id and replace its use by the magic create_uid field. This commit is linked to task ID 1856417 and PR #27619.
2018-11-06[MERGE] forward port branch 12.0 up to dd70c684268Christophe Simonis
2018-11-06[FIX] mail: no company printed in footerJulien (juc) Castiaux
In a multiple company account, when a parter is doesn't have a company, the mails he revieved have "Send by using odoo" as footer. This PR correct that by setting the footer to "Send using odoo" when there is no company. opw-1894825
2018-10-26[REF] mail: rename blablebluThibault Delavallée
Some people do not understand the old forgotten langage coming from R'yleh sub-city of Helk'Yizrk. Let us use standard naming then. closes odoo/odoo#28196
2018-10-22[MERGE] forward port branch saas-11.4 up to 3c108977c1eChristophe Simonis
2018-10-22[MERGE] forward port branch 12.0 up to b81c2bce846Christophe Simonis
2018-10-09[IMP] mail,crm,...: Replace occurences of name_get()[0][1] by display_nameTWA
Purpose ======= display_name is equal to doing name_get()[0][1] Replacing name_get()[0][1] by display_name could be good for 2 things: - Uniformization of the code - Probable optimization if name_get is used inside a for loop on a recordset (as the values will be prefetched and put in the cache). TaskID: 1849250 closes odoo/odoo#26341
2018-10-02[FIX] mail: make guideline template a qweb viewXavierDo
The mail template mail_template_channel_send_guidelines should only be used from send_guidelines action. Anyway, with mail_template on activity and all demo done to show this mechanic on contacts, trying to render this one will generate a traceback. This fix transforms the mail_template to qweb view so that it won't be available in mail template.
2018-10-01[FIX] mail: Hide system update notification cronAntony Lesuisse
Reducing the possiblity of enterprise users of locking themselves.
2018-09-19[IMP] various,sale: improve sign, pay and rejectSébastien Theys
Flow ==== Have one model field responsible of telling when the sales order has to be signed or paid to avoid inconsistencies. The general rule is: sign & pay are only used upfront to confirm a sales order. If a sales person starts to modify (confirm) it manually, we don't need those features. Especially at that point pay should be done with invoices. Modal ===== For the sign, we want to force refresh the page to update its state, and thus we need to show the confirmation message on the reloaded page. For sign and pay, we changed a bit the structure of the text in the modal to allow to translate it more easily. Also fixed the payment selection by moving it into the body instead of the footer. For the reject modal, we want the feedback field to be required, so we can see in the chatter by who and why it has been rejected. Misc ==== Moved remaining bits of code related to preview/pay/accept/decline from sale_management into sale, where it should have been in the first place. Sales Order: - Improved status/contextual alerts. - Hide discount from small to fix responsive. PR: #26801 task-1876864 remove sales help
2018-08-23[IMP] base: add regular user admin as uid 2Raphael Collet
User 1 simply becomes a technical user (inactive, no password).
2018-08-17[REF] mail,im_livechat,digest: rename 'chat_client_action' to 'Discuss'Alexandre Kühn
Revision on https://github.com/odoo/odoo/commit/02ec09cb1c3e2d7bc7968f40c18f2208d7f3f498#diff-6d76770b1b7cf716d60a4d76a1555c1d The commit above mostly renamed 'Client Action' to 'Discuss', but there were some leftovers.
2018-08-10[FIX] mail: fix data using an outdated fieldThibault Delavallée
Master is going wild. https://github.com/odoo/odoo/commit/b6f7ad3adb23fff1aa888d8315aca8157b555b03 added activity data but https://github.com/odoo/odoo/commit/83fc5dc03ce92df9b920386f9215cdc5504c3be1 renamed the field.
2018-08-10[IMP] mail: add global exception activity type as datajem-odoo
Add a data common for all models have the 'decoration' type set to 'warning' to schedule alert activities. This can be usefull when activities are generated on related model changes. Task #39340