Add module mail_no_portal

This commit is contained in:
Alexis de Lattre
2022-05-18 19:42:39 +02:00
parent 9507d1fbd8
commit 174fac6d88
3 changed files with 43 additions and 0 deletions

View File

View File

@@ -0,0 +1,25 @@
# Copyright 2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Mail no portal',
'version': '14.0.1.0.0',
'category': 'Productivity/Discuss',
'license': 'AGPL-3',
'summary': 'Remove portal button in mails sent by Odoo',
'description': """
This module remove the buttons such as *View Request for Quotation* in emails sent by Odoo.
This module has been written by Alexis de Lattre from Akretion
<alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'maintainers': ['alexis-via'],
'website': 'https://www.akretion.com',
'depends': ['mail'],
'data': [
'data/mail.xml',
],
'installable': True,
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<template id="mail_notification_paynow" inherit_id="mail.mail_notification_paynow">
<xpath expr="//t[@t-set='is_online']" position="attributes">
<attribute name="t-value">False</attribute>
</xpath>
</template>
</odoo>