Browse Source

[ADD] project_enterprise_remove: Add project_enterprise_remove to hide relevant enterprise settings.

pull/505/head
Brett Wood 9 years ago
committed by Pedro M. Baeza
parent
commit
005256d1af
  1. 52
      project_enterprise_remove/README.rst
  2. 3
      project_enterprise_remove/__init__.py
  3. 20
      project_enterprise_remove/__openerp__.py
  4. BIN
      project_enterprise_remove/static/description/icon.png
  5. 33
      project_enterprise_remove/views/res_config_view.xml

52
project_enterprise_remove/README.rst

@ -0,0 +1,52 @@
.. 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

@ -0,0 +1,3 @@
# -*- 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

@ -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': '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

After

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

33
project_enterprise_remove/views/res_config_view.xml

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