Browse Source

Merge pull request #546 from laslabs/bugfix/9.0/LABS-247-merge-enterprise_remove-into-single-module

[9.0][IMP] Add res_config_settings_enterprise_remove
pull/559/head
Dave Lasley 8 years ago
committed by GitHub
parent
commit
e5d8501db6
  1. 20
      account_enterprise_remove/__openerp__.py
  2. 40
      account_enterprise_remove/views/res_config_view.xml
  3. 52
      base_setup_enterprise_remove/README.rst
  4. BIN
      base_setup_enterprise_remove/static/description/icon.png
  5. 24
      base_setup_enterprise_remove/views/res_config_view.xml
  6. 52
      mass_mailing_enterprise_remove/README.rst
  7. 3
      mass_mailing_enterprise_remove/__init__.py
  8. 20
      mass_mailing_enterprise_remove/__openerp__.py
  9. BIN
      mass_mailing_enterprise_remove/static/description/icon.png
  10. 21
      mass_mailing_enterprise_remove/views/res_config_view.xml
  11. 52
      project_enterprise_remove/README.rst
  12. 3
      project_enterprise_remove/__init__.py
  13. 20
      project_enterprise_remove/__openerp__.py
  14. BIN
      project_enterprise_remove/static/description/icon.png
  15. 33
      project_enterprise_remove/views/res_config_view.xml
  16. 18
      res_config_settings_enterprise_remove/README.rst
  17. 2
      res_config_settings_enterprise_remove/__init__.py
  18. 8
      res_config_settings_enterprise_remove/__openerp__.py
  19. 2
      res_config_settings_enterprise_remove/models/__init__.py
  20. 54
      res_config_settings_enterprise_remove/models/res_config_settings.py
  21. 0
      res_config_settings_enterprise_remove/static/description/icon.png
  22. 52
      sale_enterprise_remove/README.rst
  23. 3
      sale_enterprise_remove/__init__.py
  24. 20
      sale_enterprise_remove/__openerp__.py
  25. BIN
      sale_enterprise_remove/static/description/icon.png
  26. 25
      sale_enterprise_remove/views/res_config_view.xml
  27. 1
      setup/account_enterprise_remove/odoo_addons/__init__.py
  28. 1
      setup/account_enterprise_remove/odoo_addons/account_enterprise_remove
  29. 6
      setup/account_enterprise_remove/setup.py
  30. 1
      setup/base_setup_enterprise_remove/odoo_addons/__init__.py
  31. 1
      setup/base_setup_enterprise_remove/odoo_addons/base_setup_enterprise_remove
  32. 6
      setup/base_setup_enterprise_remove/setup.py
  33. 1
      setup/mass_mailing_enterprise_remove/odoo_addons/__init__.py
  34. 1
      setup/mass_mailing_enterprise_remove/odoo_addons/mass_mailing_enterprise_remove
  35. 6
      setup/mass_mailing_enterprise_remove/setup.py
  36. 1
      setup/project_enterprise_remove/odoo_addons/__init__.py
  37. 1
      setup/project_enterprise_remove/odoo_addons/project_enterprise_remove
  38. 6
      setup/project_enterprise_remove/setup.py
  39. 1
      setup/sale_enterprise_remove/odoo_addons/__init__.py
  40. 1
      setup/sale_enterprise_remove/odoo_addons/sale_enterprise_remove
  41. 6
      setup/sale_enterprise_remove/setup.py
  42. 1
      setup/stock_enterprise_remove/odoo_addons/__init__.py
  43. 1
      setup/stock_enterprise_remove/odoo_addons/stock_enterprise_remove
  44. 6
      setup/stock_enterprise_remove/setup.py
  45. 1
      setup/website_sale_enterprise_remove/odoo_addons/__init__.py
  46. 1
      setup/website_sale_enterprise_remove/odoo_addons/website_sale_enterprise_remove
  47. 6
      setup/website_sale_enterprise_remove/setup.py
  48. 52
      stock_enterprise_remove/README.rst
  49. 3
      stock_enterprise_remove/__init__.py
  50. 20
      stock_enterprise_remove/__openerp__.py
  51. BIN
      stock_enterprise_remove/static/description/icon.png
  52. 32
      stock_enterprise_remove/views/res_config_view.xml
  53. 52
      website_sale_enterprise_remove/README.rst
  54. 3
      website_sale_enterprise_remove/__init__.py
  55. 20
      website_sale_enterprise_remove/__openerp__.py
  56. BIN
      website_sale_enterprise_remove/static/description/icon.png
  57. 31
      website_sale_enterprise_remove/views/res_config_view.xml

20
account_enterprise_remove/__openerp__.py

@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Account - Remove Enterprise Features',
'version': '9.0.1.0.0',
'category': 'Maintenance',
'website': "https://laslabs.com",
'author': 'LasLabs, Odoo Community Association (OCA)',
'license': 'AGPL-3',
'application': False,
'installable': True,
'depends': [
'account',
],
'data': [
'views/res_config_view.xml',
]
}

40
account_enterprise_remove/views/res_config_view.xml

@ -1,40 +0,0 @@
<?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_account_config_settings" model="ir.ui.view">
<field name="name">account settings</field>
<field name="model">account.config.settings</field>
<field name="inherit_id" ref="account.view_account_config_settings"/>
<field name="arch" type="xml">
<xpath expr="//div[field[@name='module_account_reports']]" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[@name='bank_statement_import_options']/preceding-sibling::*[1]"
position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[@name='bank_statement_import_options']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[@name='bank_payments']/preceding::*[1]" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[@name='bank_payments']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[field[@name='module_account_reports_followup']]" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[field[@name='module_account_batch_deposit']]" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</field>
</record>
</odoo>

52
base_setup_enterprise_remove/README.rst

@ -1,52 +0,0 @@
.. 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
=======================================
Base Setup - Remove Enterprise Features
=======================================
This module removes enterprise-only features from all base_setup views.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
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.

BIN
base_setup_enterprise_remove/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

24
base_setup_enterprise_remove/views/res_config_view.xml

@ -1,24 +0,0 @@
<?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_general_configuration" model="ir.ui.view">
<field name="name">General Settings</field>
<field name="model">base.config.settings</field>
<field name="inherit_id" ref="base_setup.view_general_configuration"/>
<field name="arch" type="xml">
<xpath expr="//label[@for='module_inter_company_rules']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[@name='inter_company']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</field>
</record>
</odoo>

52
mass_mailing_enterprise_remove/README.rst

@ -1,52 +0,0 @@
.. 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
=========================================
Mass Mailing - Remove Enterprise Features
=========================================
This module removes enterprise-only features from all mass_mailing views.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
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.

3
mass_mailing_enterprise_remove/__init__.py

@ -1,3 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

20
mass_mailing_enterprise_remove/__openerp__.py

@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Mass Mailing - Remove Enterprise Features',
'version': '9.0.1.0.0',
'category': 'Maintenance',
'website': "https://laslabs.com",
'author': 'LasLabs, Odoo Community Association (OCA)',
'license': 'AGPL-3',
'application': False,
'installable': True,
'depends': [
'mass_mailing',
],
'data': [
'views/res_config_view.xml',
]
}

BIN
mass_mailing_enterprise_remove/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

21
mass_mailing_enterprise_remove/views/res_config_view.xml

@ -1,21 +0,0 @@
<?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_mass_mailing_configuration" model="ir.ui.view">
<field name="name">Configure Mass Mailing</field>
<field name="model">mass.mailing.config.settings</field>
<field name="inherit_id" ref="mass_mailing.view_mass_mailing_configuration"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='module_mass_mailing_themes']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</field>
</record>
</odoo>

52
project_enterprise_remove/README.rst

@ -1,52 +0,0 @@
.. 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
====================================
Project - Remove Enterprise Features
====================================
This module removes enterprise-only features from all project views.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
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.

3
project_enterprise_remove/__init__.py

@ -1,3 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

20
project_enterprise_remove/__openerp__.py

@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Project - Remove Enterprise Features',
'version': '9.0.1.0.0',
'category': 'Maintenance',
'website': "https://laslabs.com",
'author': 'LasLabs, Odoo Community Association (OCA)',
'license': 'AGPL-3',
'application': False,
'installable': True,
'depends': [
'project',
],
'data': [
'views/res_config_view.xml',
]
}

BIN
project_enterprise_remove/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

33
project_enterprise_remove/views/res_config_view.xml

@ -1,33 +0,0 @@
<?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_config_settings" model="ir.ui.view">
<field name="name">project settings</field>
<field name="model">project.config.settings</field>
<field name="inherit_id" ref="project.view_config_settings"/>
<field name="arch" type="xml">
<xpath expr="//div[field[@name='module_project_forecast']]/../preceding-sibling::*[1]"
position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[field[@name='module_project_forecast']]/.." position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[field[@name='module_project_timesheet_synchro']]/preceding-sibling::*[1]"
position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[field[@name='module_project_timesheet_synchro']]"
position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</field>
</record>
</odoo>

18
account_enterprise_remove/README.rst → res_config_settings_enterprise_remove/README.rst

@ -2,11 +2,14 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
====================================
Account - Remove Enterprise Features
====================================
===================================
Settings - Remove Enterprise Fields
===================================
This module removes enterprise-only features from all account views.
This module removes enterprise-only features from all settings views.
Note that it does not remove the possibility to install
Enterprise modules. If necessary, all Enterprise Edition code is still
available and can be manually installed via the Apps menu.
Usage
=====
@ -15,6 +18,13 @@ Usage
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
Known issues / Roadmap
======================
Keep in mind that this module does not mark the enterprise fields as invisible.
Instead, it completely removes them, so any modules that are referencing those fields in
the settings views will break.
Bug Tracker
===========

2
base_setup_enterprise_remove/__init__.py → res_config_settings_enterprise_remove/__init__.py

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models

8
base_setup_enterprise_remove/__openerp__.py → res_config_settings_enterprise_remove/__openerp__.py

@ -3,7 +3,8 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Base Setup - Remove Enterprise Features',
'name': 'Settings - Remove Enterprise Fields',
'summary': 'Remove fields in all settings views marked as enterprise',
'version': '9.0.1.0.0',
'category': 'Maintenance',
'website': "https://laslabs.com",
@ -12,9 +13,6 @@
'application': False,
'installable': True,
'depends': [
'base_setup',
'base',
],
'data': [
'views/res_config_view.xml',
]
}

2
account_enterprise_remove/__init__.py → res_config_settings_enterprise_remove/models/__init__.py

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import res_config_settings

54
res_config_settings_enterprise_remove/models/res_config_settings.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import api
from lxml import etree
from openerp.addons.base.res.res_config import \
res_config_settings
class ResConfigSettings(res_config_settings):
@api.model
def fields_view_get(self, view_id=None, view_type='form',
context=None, toolbar=False, submenu=False):
ret_val = super(ResConfigSettings, self).fields_view_get(
view_id=view_id,
view_type=view_type,
context=context,
toolbar=toolbar,
submenu=submenu,
)
page_name = ret_val['name']
doc = etree.XML(ret_val['arch'])
queries = []
if page_name == 'account settings':
queries += [
"//div[field[@name='module_account_reports' and \
@widget='upgrade_boolean']]",
"//div[field[@name='module_account_reports_followup' and \
@widget='upgrade_boolean']]",
"//div[field[@name='module_account_batch_deposit' and \
@widget='upgrade_boolean']]",
]
queries += [
"//div[div[field[@widget='upgrade_boolean']]] \
/preceding-sibling::label[1]",
"//div[div[field[@widget='upgrade_boolean']]]",
"//div[field[@widget='upgrade_boolean']] \
/preceding-sibling::label[1]",
"//div[field[@widget='upgrade_boolean']]",
"//field[@widget='upgrade_boolean']",
]
for query in queries:
for item in doc.xpath(query):
item.getparent().remove(item)
ret_val['arch'] = etree.tostring(doc)
return ret_val

0
account_enterprise_remove/static/description/icon.png → res_config_settings_enterprise_remove/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

52
sale_enterprise_remove/README.rst

@ -1,52 +0,0 @@
.. 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
=================================
Sale - Remove Enterprise Features
=================================
This module removes enterprise-only features from all sale views.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
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.

3
sale_enterprise_remove/__init__.py

@ -1,3 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

20
sale_enterprise_remove/__openerp__.py

@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Sale - Remove Enterprise Features',
'version': '9.0.1.0.0',
'category': 'Maintenance',
'website': "https://laslabs.com",
'author': 'LasLabs, Odoo Community Association (OCA)',
'license': 'AGPL-3',
'application': False,
'installable': True,
'depends': [
'sale',
],
'data': [
'views/res_config_view.xml',
]
}

BIN
sale_enterprise_remove/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

25
sale_enterprise_remove/views/res_config_view.xml

@ -1,25 +0,0 @@
<?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_sale_config_settings" model="ir.ui.view">
<field name="name">sale settings</field>
<field name="model">sale.config.settings</field>
<field name="inherit_id" ref="sale.view_sales_config"/>
<field name="arch" type="xml">
<xpath expr="//div[field[@name='module_sale_contract']]/preceding-sibling::*[1]"
position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[field[@name='module_sale_contract']]" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</field>
</record>
</odoo>

1
setup/account_enterprise_remove/odoo_addons/__init__.py

@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/account_enterprise_remove/odoo_addons/account_enterprise_remove

@ -1 +0,0 @@
../../../account_enterprise_remove

6
setup/account_enterprise_remove/setup.py

@ -1,6 +0,0 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

1
setup/base_setup_enterprise_remove/odoo_addons/__init__.py

@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/base_setup_enterprise_remove/odoo_addons/base_setup_enterprise_remove

@ -1 +0,0 @@
../../../base_setup_enterprise_remove

6
setup/base_setup_enterprise_remove/setup.py

@ -1,6 +0,0 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

1
setup/mass_mailing_enterprise_remove/odoo_addons/__init__.py

@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/mass_mailing_enterprise_remove/odoo_addons/mass_mailing_enterprise_remove

@ -1 +0,0 @@
../../../mass_mailing_enterprise_remove

6
setup/mass_mailing_enterprise_remove/setup.py

@ -1,6 +0,0 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

1
setup/project_enterprise_remove/odoo_addons/__init__.py

@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/project_enterprise_remove/odoo_addons/project_enterprise_remove

@ -1 +0,0 @@
../../../project_enterprise_remove

6
setup/project_enterprise_remove/setup.py

@ -1,6 +0,0 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

1
setup/sale_enterprise_remove/odoo_addons/__init__.py

@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/sale_enterprise_remove/odoo_addons/sale_enterprise_remove

@ -1 +0,0 @@
../../../sale_enterprise_remove

6
setup/sale_enterprise_remove/setup.py

@ -1,6 +0,0 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

1
setup/stock_enterprise_remove/odoo_addons/__init__.py

@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/stock_enterprise_remove/odoo_addons/stock_enterprise_remove

@ -1 +0,0 @@
../../../stock_enterprise_remove

6
setup/stock_enterprise_remove/setup.py

@ -1,6 +0,0 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

1
setup/website_sale_enterprise_remove/odoo_addons/__init__.py

@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/website_sale_enterprise_remove/odoo_addons/website_sale_enterprise_remove

@ -1 +0,0 @@
../../../website_sale_enterprise_remove

6
setup/website_sale_enterprise_remove/setup.py

@ -1,6 +0,0 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

52
stock_enterprise_remove/README.rst

@ -1,52 +0,0 @@
.. 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
==================================
Stock - Remove Enterprise Features
==================================
This module removes enterprise-only features from all stock views.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
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.

3
stock_enterprise_remove/__init__.py

@ -1,3 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

20
stock_enterprise_remove/__openerp__.py

@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Stock - Remove Enterprise Features',
'version': '9.0.1.0.0',
'category': 'Maintenance',
'website': "https://laslabs.com",
'author': 'LasLabs, Odoo Community Association (OCA)',
'license': 'AGPL-3',
'application': False,
'installable': True,
'depends': [
'stock',
],
'data': [
'views/res_config_view.xml',
]
}

BIN
stock_enterprise_remove/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

32
stock_enterprise_remove/views/res_config_view.xml

@ -1,32 +0,0 @@
<?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_stock_config_settings" model="ir.ui.view">
<field name="name">stock settings</field>
<field name="model">stock.config.settings</field>
<field name="inherit_id" ref="stock.view_stock_config_settings"/>
<field name="arch" type="xml">
<xpath expr="//div[field[@name='module_stock_barcode']]/../preceding-sibling::*[1]"
position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[field[@name='module_stock_barcode']]/.." position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[field[@name='module_delivery_dhl']]/../preceding-sibling::*[1]"
position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div[field[@name='module_delivery_dhl']]/.." position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</field>
</record>
</odoo>

52
website_sale_enterprise_remove/README.rst

@ -1,52 +0,0 @@
.. 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.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
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.

3
website_sale_enterprise_remove/__init__.py

@ -1,3 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

20
website_sale_enterprise_remove/__openerp__.py

@ -1,20 +0,0 @@
# -*- 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://laslabs.com",
'author': 'LasLabs, Odoo Community Association (OCA)',
'license': 'AGPL-3',
'application': False,
'installable': True,
'depends': [
'website_sale',
],
'data': [
'views/res_config_view.xml',
]
}

BIN
website_sale_enterprise_remove/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

31
website_sale_enterprise_remove/views/res_config_view.xml

@ -1,31 +0,0 @@
<?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>
Loading…
Cancel
Save