From c9f8b986f08d289671e98dc8d20e611bb427bccb Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 12 Mar 2015 08:59:33 +0100 Subject: [PATCH 1/8] [PORT] Move account_move_batch_validate out of __unported__ --- .../__init__.py | 0 .../__openerp__.py | 0 .../account.py | 0 .../account_view.xml | 0 .../i18n/account_move_batch_validate.pot | 0 .../i18n/fr.po | 0 .../test/batch_validate.yml | 0 .../test/batch_validate_then_delete_move.yml | 0 .../test/batch_validate_then_unmark.yml | 0 .../wizard/__init__.py | 0 .../wizard/move_marker.py | 0 .../wizard/move_marker_view.xml | 0 12 files changed, 0 insertions(+), 0 deletions(-) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/__init__.py (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/__openerp__.py (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/account.py (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/account_view.xml (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/i18n/account_move_batch_validate.pot (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/i18n/fr.po (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/test/batch_validate.yml (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/test/batch_validate_then_delete_move.yml (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/test/batch_validate_then_unmark.yml (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/wizard/__init__.py (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/wizard/move_marker.py (100%) rename {__unported__/account_move_batch_validate => account_move_batch_validate}/wizard/move_marker_view.xml (100%) diff --git a/__unported__/account_move_batch_validate/__init__.py b/account_move_batch_validate/__init__.py similarity index 100% rename from __unported__/account_move_batch_validate/__init__.py rename to account_move_batch_validate/__init__.py diff --git a/__unported__/account_move_batch_validate/__openerp__.py b/account_move_batch_validate/__openerp__.py similarity index 100% rename from __unported__/account_move_batch_validate/__openerp__.py rename to account_move_batch_validate/__openerp__.py diff --git a/__unported__/account_move_batch_validate/account.py b/account_move_batch_validate/account.py similarity index 100% rename from __unported__/account_move_batch_validate/account.py rename to account_move_batch_validate/account.py diff --git a/__unported__/account_move_batch_validate/account_view.xml b/account_move_batch_validate/account_view.xml similarity index 100% rename from __unported__/account_move_batch_validate/account_view.xml rename to account_move_batch_validate/account_view.xml diff --git a/__unported__/account_move_batch_validate/i18n/account_move_batch_validate.pot b/account_move_batch_validate/i18n/account_move_batch_validate.pot similarity index 100% rename from __unported__/account_move_batch_validate/i18n/account_move_batch_validate.pot rename to account_move_batch_validate/i18n/account_move_batch_validate.pot diff --git a/__unported__/account_move_batch_validate/i18n/fr.po b/account_move_batch_validate/i18n/fr.po similarity index 100% rename from __unported__/account_move_batch_validate/i18n/fr.po rename to account_move_batch_validate/i18n/fr.po diff --git a/__unported__/account_move_batch_validate/test/batch_validate.yml b/account_move_batch_validate/test/batch_validate.yml similarity index 100% rename from __unported__/account_move_batch_validate/test/batch_validate.yml rename to account_move_batch_validate/test/batch_validate.yml diff --git a/__unported__/account_move_batch_validate/test/batch_validate_then_delete_move.yml b/account_move_batch_validate/test/batch_validate_then_delete_move.yml similarity index 100% rename from __unported__/account_move_batch_validate/test/batch_validate_then_delete_move.yml rename to account_move_batch_validate/test/batch_validate_then_delete_move.yml diff --git a/__unported__/account_move_batch_validate/test/batch_validate_then_unmark.yml b/account_move_batch_validate/test/batch_validate_then_unmark.yml similarity index 100% rename from __unported__/account_move_batch_validate/test/batch_validate_then_unmark.yml rename to account_move_batch_validate/test/batch_validate_then_unmark.yml diff --git a/__unported__/account_move_batch_validate/wizard/__init__.py b/account_move_batch_validate/wizard/__init__.py similarity index 100% rename from __unported__/account_move_batch_validate/wizard/__init__.py rename to account_move_batch_validate/wizard/__init__.py diff --git a/__unported__/account_move_batch_validate/wizard/move_marker.py b/account_move_batch_validate/wizard/move_marker.py similarity index 100% rename from __unported__/account_move_batch_validate/wizard/move_marker.py rename to account_move_batch_validate/wizard/move_marker.py diff --git a/__unported__/account_move_batch_validate/wizard/move_marker_view.xml b/account_move_batch_validate/wizard/move_marker_view.xml similarity index 100% rename from __unported__/account_move_batch_validate/wizard/move_marker_view.xml rename to account_move_batch_validate/wizard/move_marker_view.xml From 3a7443ba241bd04fb9f7120bc4eb3eb267c9fc2d Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 12 Mar 2015 09:00:48 +0100 Subject: [PATCH 2/8] [PORT][account_move_batch_validate] Set installable True --- account_move_batch_validate/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_move_batch_validate/__openerp__.py b/account_move_batch_validate/__openerp__.py index 88b191ee9..f565af162 100644 --- a/account_move_batch_validate/__openerp__.py +++ b/account_move_batch_validate/__openerp__.py @@ -75,7 +75,7 @@ 'test/batch_validate_then_unmark.yml', 'test/batch_validate_then_delete_move.yml', ], - 'installable': False, + 'installable': True, 'images': [], 'license': 'AGPL-3', } From 0d2b36b2897f1391f354932367311bbb83651cd5 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 12 Mar 2015 09:09:17 +0100 Subject: [PATCH 3/8] [ADD][account_move_batch_validate] Add README.rst --- account_move_batch_validate/README.rst | 58 ++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 account_move_batch_validate/README.rst diff --git a/account_move_batch_validate/README.rst b/account_move_batch_validate/README.rst new file mode 100644 index 000000000..1cde01f27 --- /dev/null +++ b/account_move_batch_validate/README.rst @@ -0,0 +1,58 @@ +Account Move Batch Validate +=========================== + +This module provides a wizard to post many Journal Entries in batch. it +uses the queue system introduced by the OpenERP Connector to handle a +big quantity of moves in batch. + +The module account_default_draft_move introdoces a workflow where the +Journal Entries are always entered in OpenERP in draft state, and the +posting happens later, for example at the end of the period. The core +account module provides a wizard to post all the moves in the period, +but that is problematic when there are many moves. + +The posting of a move takes some time, and doing that synchronously, +in one transaction is problematic. + +In this module, we leverage the power of the queue system of the +OpenERP Connector, that can be very well used without other concepts +like Backends and Bindings. + +This approach provides many advantages, similar to the ones we get +using that connector for e-commerce: + +- Asynchronous: the operation is done in background, and users can + continue to work. +- Dedicated workers: the queued jobs are performed by specific workers + (processes). This is good for a long task, since the main workers are + busy handling HTTP requests and can be killed if operations take + too long, for example. +- Multiple transactions: this is an operation that doesn't need to be + atomic, and if a line out of 100,000 fails, it is possible to catch + it, see the error message, and fix the situation. Meanwhile, all + other jobs can proceed. + +Credits +======= + +Contributors +------------ + +* Leonardo Pistone +* Nicolas Bessi +* Rudolf Schnapka +* Stéphane Bidoul (ACSONE) +* Adrien Peiffer (ACSONE) + +Maintainer +---------- + +.. image:: http://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://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 http://odoo-community.org. \ No newline at end of file From ce7892e3fc966ae40f469d2979992ceb67c2bee5 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 12 Mar 2015 09:10:26 +0100 Subject: [PATCH 4/8] [IMP][account_move_batch_validate] Spelling mistake --- account_move_batch_validate/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_move_batch_validate/README.rst b/account_move_batch_validate/README.rst index 1cde01f27..e808422e3 100644 --- a/account_move_batch_validate/README.rst +++ b/account_move_batch_validate/README.rst @@ -5,7 +5,7 @@ This module provides a wizard to post many Journal Entries in batch. it uses the queue system introduced by the OpenERP Connector to handle a big quantity of moves in batch. -The module account_default_draft_move introdoces a workflow where the +The module account_default_draft_move introduces a workflow where the Journal Entries are always entered in OpenERP in draft state, and the posting happens later, for example at the end of the period. The core account module provides a wizard to post all the moves in the period, From 0f4661100c922750a2fc959968467863709b3cf2 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 12 Mar 2015 09:11:23 +0100 Subject: [PATCH 5/8] [DEL][account_move_batch_validate] Remove description from __openerp__ --- account_move_batch_validate/__openerp__.py | 35 ---------------------- 1 file changed, 35 deletions(-) diff --git a/account_move_batch_validate/__openerp__.py b/account_move_batch_validate/__openerp__.py index f565af162..ac875ad10 100644 --- a/account_move_batch_validate/__openerp__.py +++ b/account_move_batch_validate/__openerp__.py @@ -30,41 +30,6 @@ 'account_default_draft_move', 'connector', ], - 'description': """ - Account Move Batch Validate - - This module provides a wizard to post many Journal Entries in batch. it - uses the queue system introduced by the OpenERP Connector to handle a - big quantity of moves in batch. - - The module account_default_draft_move introdoces a workflow where the - Journal Entries are always entered in OpenERP in draft state, and the - posting happens later, for example at the end of the period. The core - account module provides a wizard to post all the moves in the period, - but that is problematic when there are many moves. - - The posting of a move takes some time, and doing that synchronously, - in one transaction is problematic. - - In this module, we leverage the power of the queue system of the - OpenERP Connector, that can be very well used without other concepts - like Backends and Bindings. - - This approach provides many advantages, similar to the ones we get - using that connector for e-commerce: - - - Asynchronous: the operation is done in background, and users can - continue to work. - - Dedicated workers: the queued jobs are performed by specific workers - (processes). This is good for a long task, since the main workers are - busy handling HTTP requests and can be killed if operations take - too long, for example. - - Multiple transactions: this is an operation that doesn't need to be - atomic, and if a line out of 100,000 fails, it is possible to catch - it, see the error message, and fix the situation. Meanwhile, all - other jobs can proceed. - - """, 'website': 'http://www.camptocamp.com', 'data': [ 'account_view.xml', From e75860b88da3594e02b128d626fb02a92c72e451 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 12 Mar 2015 09:11:57 +0100 Subject: [PATCH 6/8] [DEL][account_move_batch_validate] Remove maintainer key from __openerp__ --- account_move_batch_validate/__openerp__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/account_move_batch_validate/__openerp__.py b/account_move_batch_validate/__openerp__.py index ac875ad10..d445da382 100644 --- a/account_move_batch_validate/__openerp__.py +++ b/account_move_batch_validate/__openerp__.py @@ -22,7 +22,6 @@ 'name': "Account Move Batch Validate", 'version': '0.2', 'author': "Camptocamp,Odoo Community Association (OCA)", - 'maintainer': 'Camptocamp', 'category': 'Finance', 'complexity': 'normal', 'depends': [ From 9f3e54f1c861bee9caf6e841235b8cc30aadaaae Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 12 Mar 2015 09:58:29 +0100 Subject: [PATCH 7/8] [FIX] Uncomment connector on travis file --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a7db1591b..3686f4671 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ virtualenv: install: - git clone https://github.com/OCA/reporting-engine ${HOME}/reporting-engine -b ${VERSION} - git clone https://github.com/oca/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools - #- git clone https://github.com/OCA/connector $HOME/connector -b ${VERSION} + - git clone https://github.com/OCA/connector $HOME/connector -b ${VERSION} - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} - travis_install_nightly ${VERSION} From 625fde44e39ae30732fbf2e265c8929cf99aa410 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Fri, 13 Mar 2015 09:06:30 +0100 Subject: [PATCH 8/8] [IMP] Add AGPL-3 badge on readme file --- account_move_batch_validate/README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/account_move_batch_validate/README.rst b/account_move_batch_validate/README.rst index e808422e3..8585cac33 100644 --- a/account_move_batch_validate/README.rst +++ b/account_move_batch_validate/README.rst @@ -1,3 +1,6 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License + Account Move Batch Validate ===========================