Skip to content

Commit 059313d

Browse files
author
Michael Michot
committed
[ADD] module mail_no_portal_button
1 parent e8fbf97 commit 059313d

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

mail_no_portal_button/__init__.py

Whitespace-only changes.

mail_no_portal_button/__manifest__.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2020 Pharmasimple (https://www.pharmasimple.be)
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "Mail Notification - Disable portal button",
5+
"category": "Custom",
6+
"summary": "Disable portal button on email notification ",
7+
"version": "14.0.1.0.0",
8+
"author": "Pharmasimple",
9+
"license": "AGPL-3",
10+
"website": "https://github.com/akretion/phs-addons",
11+
"depends": [
12+
"sale",
13+
],
14+
"data": [
15+
"views/mail_data.xml",
16+
],
17+
"installable": True,
18+
"application": False,
19+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo noupdate="1">
3+
<!-- Disable sale inherit of mail notification -->
4+
<record id="sale.mail_notification_paynow_online" model="ir.ui.view">
5+
<field name="active">False</field>
6+
</record>
7+
<!-- Remove view quotation button from Template and notification section -->
8+
<template id="mail_notification_paynow" inherit_id="mail.mail_notification_paynow">
9+
<xpath expr="//tr[2]//div[1]" position="replace" />
10+
</template>
11+
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../mail_no_portal_button

setup/mail_no_portal_button/setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)