diff --git a/account_financial_report_qweb_usability/__manifest__.py b/account_financial_report_qweb_usability/__manifest__.py index 41f5b55..a2f974c 100644 --- a/account_financial_report_qweb_usability/__manifest__.py +++ b/account_financial_report_qweb_usability/__manifest__.py @@ -23,6 +23,8 @@ This module has been written by Alexis de Lattre from Akretion + + + diff --git a/account_financial_report_qweb_usability/views/reports.xml b/account_financial_report_qweb_usability/views/reports.xml new file mode 100644 index 0000000..99376a4 --- /dev/null +++ b/account_financial_report_qweb_usability/views/reports.xml @@ -0,0 +1,32 @@ + + + + + Account financial report qweb horizontal paperformat + + custom + 297 + 210 + Landscape + 12 + 8 + 5 + 5 + + 10 + 110 + + + + + + + + + + + + + + + diff --git a/link_tracker_usability/__init__.py b/link_tracker_usability/__init__.py new file mode 100644 index 0000000..40a96af --- /dev/null +++ b/link_tracker_usability/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/link_tracker_usability/__manifest__.py b/link_tracker_usability/__manifest__.py new file mode 100644 index 0000000..1743b06 --- /dev/null +++ b/link_tracker_usability/__manifest__.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Copyright 2019 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Link Tracker Usability', + 'version': '10.0.1.0.0', + 'category': 'Marketing', + 'license': 'AGPL-3', + 'summary': 'Improve usability for link tracker', + 'description': """ +Link Tracker Usability +====================== + +Several small usability improvements. + +This module has been written by Alexis de Lattre from Akretion +. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['link_tracker'], + 'data': [ + 'link_tracker_view.xml', + ], + 'installable': True, +} diff --git a/link_tracker_usability/link_tracker_view.xml b/link_tracker_usability/link_tracker_view.xml new file mode 100644 index 0000000..8ce636c --- /dev/null +++ b/link_tracker_usability/link_tracker_view.xml @@ -0,0 +1,54 @@ + + + + + + + + graph,tree,form + + + + usability.link.tracker.click.tree + link.tracker.click + + + + + + + + + + usability.link.tracker.click.form + link.tracker.click + + + + + + + + + + + usability.link.tracker.click.search + link.tracker.click + + + + + + + + + + + + + + diff --git a/mail_usability/models/res_partner.py b/mail_usability/models/res_partner.py index f45a10b..dfbf693 100644 --- a/mail_usability/models/res_partner.py +++ b/mail_usability/models/res_partner.py @@ -14,6 +14,7 @@ class ResPartner(models.Model): selection_add=[ ('all_except_notification', 'All Messages Except Notifications')], default='all_except_notification') + opt_out = fields.Boolean(track_visibility='onchange') def _should_be_notify_by_email(self, message): if message.message_type == 'notification': diff --git a/mass_mailing_usability/__init__.py b/mass_mailing_usability/__init__.py new file mode 100644 index 0000000..dbe2de7 --- /dev/null +++ b/mass_mailing_usability/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import mail_mail_statistics +from . import link_tracker diff --git a/mass_mailing_usability/__manifest__.py b/mass_mailing_usability/__manifest__.py new file mode 100644 index 0000000..870834d --- /dev/null +++ b/mass_mailing_usability/__manifest__.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Copyright 2019 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Mass Mailing Campaigns Usability', + 'version': '10.0.1.0.0', + 'category': 'Marketing', + 'license': 'AGPL-3', + 'summary': 'Improve usability of mass mailing campaigns', + 'description': """ +Mass Mailing Campaigns Usability +================================ + +Several small usability improvements on the module mass_mailing: + +* show fields on link.tracker.click that are not displayed by default + +This module has been written by Alexis de Lattre from Akretion +. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['mass_mailing'], + 'data': [ + 'link_tracker_view.xml', + ], + 'installable': True, +} diff --git a/mass_mailing_usability/link_tracker.py b/mass_mailing_usability/link_tracker.py new file mode 100644 index 0000000..e81befe --- /dev/null +++ b/mass_mailing_usability/link_tracker.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# Copyright 2019 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +from odoo import fields, models + + +class LinkTrackerClick(models.Model): + _inherit = 'link.tracker.click' + + mail_stat_recipient = fields.Char( + related='mail_stat_id.recipient', store=True) diff --git a/mass_mailing_usability/link_tracker_view.xml b/mass_mailing_usability/link_tracker_view.xml new file mode 100644 index 0000000..209097c --- /dev/null +++ b/mass_mailing_usability/link_tracker_view.xml @@ -0,0 +1,48 @@ + + + + + + + + mm.usability.link.tracker.click.tree + link.tracker.click + + + + + + + + + + + mm.usability.link.tracker.click.form + link.tracker.click + + + + + + + + + + + + + mm.usability.link.tracker.click.search + link.tracker.click + + + + + + + + + diff --git a/mass_mailing_usability/mail_mail_statistics.py b/mass_mailing_usability/mail_mail_statistics.py new file mode 100644 index 0000000..35b9e86 --- /dev/null +++ b/mass_mailing_usability/mail_mail_statistics.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# Copyright 2019 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +from odoo import api, fields, models + + +class MailMailStatistics(models.Model): + _inherit = 'mail.mail.statistics' + + recipient = fields.Char(store=True) + + # add invalidation for 'recipient' field + @api.depends('res_id', 'model') + def _compute_recipient(self): + return super(MailMailStatistics, self)._compute_recipient() diff --git a/product_variant_csv_import/product_view.xml b/product_variant_csv_import/product_view.xml index 667e0a6..f73c612 100644 --- a/product_variant_csv_import/product_view.xml +++ b/product_variant_csv_import/product_view.xml @@ -17,7 +17,7 @@ diff --git a/stock_usability/stock_view.xml b/stock_usability/stock_view.xml index 9105a49..6d85824 100644 --- a/stock_usability/stock_view.xml +++ b/stock_usability/stock_view.xml @@ -353,7 +353,7 @@ should be able to access it. So I add a menu entry under Inventory Control. -->