forked from OCA/server-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] website_sale_enterprise_remove: Add website_sale_enterprise_rem…
…ove to hide relevant enterprise settings.
- Loading branch information
Brett Wood
committed
Aug 5, 2016
1 parent
5c26f4f
commit 6e2479b
Showing
6 changed files
with
178 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
========================================= | ||
Website Sale - Remove Enterprise Features | ||
========================================= | ||
|
||
This module removes enterprise-only features from all website_sale views. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/odoo-enterprise-remove/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smashing it by providing a detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* Brett Wood <bwood@laslabs.com> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2016 LasLabs Inc. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2016 LasLabs Inc. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
'name': 'Website Sale - Remove Enterprise Features', | ||
'version': '9.0.1.0.0', | ||
'category': 'Maintenance', | ||
'website': "https://odoo-community.org/", | ||
'author': 'LasLabs, Odoo Community Association (OCA)', | ||
'license': 'AGPL-3', | ||
'application': False, | ||
'installable': True, | ||
'depends': [ | ||
'website_sale', | ||
], | ||
'data': [ | ||
'views/res_config_view.xml', | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions
79
website_sale_enterprise_remove/static/description/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
Copyright 2016 LasLabs Inc. | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
|
||
<odoo> | ||
|
||
<record id="view_website_config_settings" model="ir.ui.view"> | ||
<field name="name">Website settings</field> | ||
<field name="model">website.config.settings</field> | ||
<field name="inherit_id" ref="website_sale.website_config_settings_view_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//label[@for='module_delivery_ups']" position="attributes"> | ||
<attribute name="invisible">True</attribute> | ||
</xpath> | ||
<xpath expr="//div[field[@name='module_delivery_ups']]/.." position="attributes"> | ||
<attribute name="invisible">True</attribute> | ||
</xpath> | ||
<xpath expr="//label[@for='module_sale_ebay']" | ||
position="attributes"> | ||
<attribute name="invisible">True</attribute> | ||
</xpath> | ||
<xpath expr="//div[field[@name='module_sale_ebay']]" position="attributes"> | ||
<attribute name="invisible">True</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |