File tree 5 files changed +37
-0
lines changed
setup/mail_no_portal_button
5 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
1
+ ../../../../mail_no_portal_button
Original file line number Diff line number Diff line change
1
+ import setuptools
2
+
3
+ setuptools .setup (
4
+ setup_requires = ['setuptools-odoo' ],
5
+ odoo_addon = True ,
6
+ )
You can’t perform that action at this time.
0 commit comments