Browse Source

[ADD] Module which enable tracking history during import.

pull/907/head
Benjamin Willig 7 years ago
parent
commit
657107e525
  1. 55
      base_import_default_enable_tracking/README.rst
  2. 0
      base_import_default_enable_tracking/__init__.py
  3. 23
      base_import_default_enable_tracking/__manifest__.py
  4. BIN
      base_import_default_enable_tracking/static/description/icon.png
  5. 12
      base_import_default_enable_tracking/static/src/xml/base_import.xml
  6. 1
      setup/base_import_default_enable_tracking/odoo/__init__.py
  7. 1
      setup/base_import_default_enable_tracking/odoo/addons/__init__.py
  8. 1
      setup/base_import_default_enable_tracking/odoo/addons/base_import_default_enable_tracking
  9. 6
      setup/base_import_default_enable_tracking/setup.py

55
base_import_default_enable_tracking/README.rst

@ -0,0 +1,55 @@
.. 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 Import Default Enable Tracking
===================================
This modules simply enables history tracking when doing an import.
Installation
============
To install this module, you need click on install button.
Configuration
=============
No configuration required.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/server-tools/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
------------
* Benjamin Willig <benjamin.willig@acsone.eu>
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.

0
base_import_default_enable_tracking/__init__.py

23
base_import_default_enable_tracking/__manifest__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Base Import Default Enable Tracking',
'summary': """
This modules simply enables history tracking when doing an import.""",
'version': '10.0.1.0.0',
'license': 'AGPL-3',
'author': 'ACSONE SA/NV, Odoo Community Association (OCA)',
'website': 'https://www.acsone.eu',
'depends': [
'base_import',
],
'data': [
],
'demo': [
],
'qweb': [
'static/src/xml/base_import.xml',
],
}

BIN
base_import_default_enable_tracking/static/description/icon.png

After

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

12
base_import_default_enable_tracking/static/src/xml/base_import.xml

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<templates xml:space="preserve">
<t t-extend="ImportView">
<t t-jquery="input#oe_import_tracking" t-operation="replace">
<input type="checkbox" id="oe_import_tracking" checked="true"/>
</t>
</t>
</templates>

1
setup/base_import_default_enable_tracking/odoo/__init__.py

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

1
setup/base_import_default_enable_tracking/odoo/addons/__init__.py

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

1
setup/base_import_default_enable_tracking/odoo/addons/base_import_default_enable_tracking

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

6
setup/base_import_default_enable_tracking/setup.py

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