- May 25, 2023
-
-
Sébastien Theys authored
A raw query is not necessary to produce the desired result, found activities need to be kept only if the corresponding record can be found with standard search (which includes multi-company check). Part of task-3266643 closes odoo/odoo#122354 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
- Jun 22, 2022
-
-
diagnoza authored
Use dict.get() instead of a subscriptable call. This way we let through selection values that are not loaded into the registry, instead of raising an error. This is especially useful in the upgrade environment where such values may be unavailable (because of being lambda-defined in a custom module for instance). closes odoo/odoo#93780 X-original-commit: 87f2ced5 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Apr 19, 2022
-
-
Thibault Delavallée authored
Purpose is to test behavior when having multiple references in mail headers. We have to check that parent_id is correctly taken (as it impacts internal flag), and that flattening is performance when posting the message (always attaching to the thread first message being the default behavior). Note that tests highlighted that flattening is currently a bit broken as it does not go up until the first ancestor, which is the expected behavior for business documents having ``_mail_flat_thread``. Next commit will fix that. Task-2822652 (Mail: fix parent message fetch / flattening) Task-2643114 (Mail: Message-Id in references to ease thread formation) X-original-commit: odoo/odoo@9300fcc5ed95d4e4640b004a19baeabf220a0c7a Part-of: odoo/odoo#89058
-
- Sep 13, 2021
-
-
Jairo Llopis authored
Purpose of this commit is to highlight an issue that may happens easily with `crm` that is made generic here within `test_mail`. `crm` alters the context when creating a new record adding in this case `default_type` to it][1]. The returned record contains that altered context. his results in other records created from it trying to assign that same default value for `type`. This is a very common name for fields, and happens to exist in `ir.attachment` too. If you create an alias for incoming leads in your DB with default values `{"type": "lead"}` (something very common) and then an email comes to that alias that contains an inlined base64 image, the attachment creation process would simply fail. Obtained error is ``ValueError: Wrong value for ir.attachment.type: 'lead'`` . [1]: https://github.com/odoo/odoo/blob/272602193f5647f7f2270ed6ec68777625a139dd/addons/crm/models/crm_lead.py#L310-L311 X-original-commit: 890a91f5 Part-of: odoo/odoo#76159 Co-authored-by:
Thibault Delavallee <tde@odoo.com>
-
- Apr 22, 2020
-
-
Thibault Delavallée authored
PURPOSE Have a cleaner test_mail addons SPECIFICATIONS Keep only mail-related tests, move odoobot in test mail full, send "update notification" tests in mail (specific to mail). Merge some test files to lessen number of files, perform light file renaming. Split test mail models file to prepare some cleaning in those models and tests. LINKS Prepares Task ID 2238597 (clean notification models) Prepares Task ID 2083854 (improve mass mailing technical flows) PR #49891
-
- Mar 20, 2020
-
-
Victor Feyens authored
ir.rule are default values but can be customized based on the company's policy and needs. This is typically a record that is in noupdate as should be customization-friendly.
-
- Feb 05, 2020
-
-
Raphael Collet authored
Also delay the tracking until pre-commit, so that several updates on a record generate a single tracking message.
-
- Nov 19, 2019
-
-
Kevin Baptiste authored
The tracked field is now a relation to the corresponding ir.model.field. This prevents potential privacy issues should the field be deleted or renamed. closes odoo/odoo#39232 Taskid: 2088634 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- May 29, 2019
-
-
Yannick Tivisse authored
-
- Mar 28, 2019
-
-
XavierDo authored
*: crm, project, maintenance, hr_recruitment When a record is created from an email, cc can be lost. This commit proposes a new mixin to keep cc on the record and allows to create partner for each of them when sending a message from the chatter. The mixin is added on the mail recors that can be created from mail.alias: document helpdesk.ticket mrp.eco quality.alert hr.applicant crm.lead project.task mail.channel maintenance.equipment Task: 1925001
-
- Apr 26, 2019
-
-
Thibault Delavallée authored
This commit add some tests related to the mail gateway: more bounce management tests and some additional thread formation tests. Some test asserts about bounce / blacklist management are commented as they are not completely working currently. This will be improved in master soon. Some cleaning in also done in all mail gateway tests. Notably some call to tool methods are cleaned / simplified, duplicate tests are removed. Some low-level checks are removed. A new test model is added for mail gateway: mail.test.gateway. It is a chatter model with blacklist enabled on it. It allows to tests the various blacklist-related overrides and features as well as all basic mail gateway features. Sub-part of task 1853147 (pre-cleaning before implementing mail gateway improvements) Linked to PR #32974
-
- Nov 29, 2017
-
-
Thibault Delavallée authored
Purpose: avoid having useless tables for test models in a production environment.
-
Thibault Delavallée authored
Test performance will now hold the base class for performance tests as well as tests related to the ORM, depending only on base. A new module test_mail is introduced at this commit that contains performance tests related to mail module. This commit contains only code move and should not impact anything. Future commits will move mail tests into test_mail so that all mail related tests are located in the same optional module. This allows notably to avoid creating a lot of unnecessary tables when installing mail module on production databases.
-