b296e076d465c9d1d5c04255584f51174aa5a967
Right now, in our mass mailing, marketing users refine the audience they are going to reach with our beautiful domain selector/editor. The problem here is that the criteria that 'filters' audience can be very common and might be used in many mailings. Such filters have to be re-created manually each time they are needed unless one duplicates a sent mailing. Another possible workaround is to access this form view while in debug mode so that one can copy and paste those domain expressions. Unfortunately, none of those solutions are either ideal or convenient. Especially during the onboarding where new users are not very familiar with those notions yet. This commit allow users to save filters on the mass mailings. That way favorite filters can be re-used on the next mailing. For that, we added a new model 'mailing.filter'. We do not use existing 'ir.filter' model as its usage is not completely the same and as we do not want to bloat view filters with filters created on the fly in marketing application. This new model contains the following fields: - name (given by user while saving the filter) - mailing_domain - mailing_model_id (m2o for the recipient model) - mailing_model_name (technical name of recipient model) Users can create the filters by setting domain and then hitting hollow star icon next to 'Filter' m2o and saving it with the name they want. Same way to delete the saved filter, user simply have to click the filled star icon when filter is already set. This is done through a new widget that adds its own behavior on top of m2o widget. The saved filters can be also managed with a new menu named 'Favorite Filters' under 'Configuration' menu of Email marketing. Task-2092853 closes odoo/odoo#70859 Related: odoo/enterprise#21049 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%