From a09c26c6f16d66f0f9902c1cf5442ce23db066b0 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 20 Aug 2019 10:35:14 +0200 Subject: [PATCH] [MIG] pos_picking_delayed: Migration to 11.0 - Backported from 12.0 --- oca_dependencies.txt | 1 + pos_picking_delayed/README.rst | 28 ++++++++++++++----- pos_picking_delayed/__manifest__.py | 4 ++- pos_picking_delayed/readme/CONTRIBUTORS.rst | 3 ++ .../static/description/index.html | 12 ++++++-- pos_picking_delayed/tests/test_module.py | 16 +++++++++-- pos_picking_delayed/views/view_pos_config.xml | 16 ++++++++--- 7 files changed, 62 insertions(+), 18 deletions(-) diff --git a/oca_dependencies.txt b/oca_dependencies.txt index c901b0bd..792bb069 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1,4 +1,5 @@ # list the OCA project dependencies, one per line # add a github url if you need a forked version account-payment +queue stock-logistics-workflow diff --git a/pos_picking_delayed/README.rst b/pos_picking_delayed/README.rst index 3c197534..870cf946 100644 --- a/pos_picking_delayed/README.rst +++ b/pos_picking_delayed/README.rst @@ -7,20 +7,20 @@ Point of Sale - Picking Creation Delayed !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png :target: https://odoo-community.org/page/development-status - :alt: Beta + :alt: Production/Stable .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github - :target: https://github.com/OCA/pos/tree/12.0/pos_picking_delayed + :target: https://github.com/OCA/pos/tree/11.0/pos_picking_delayed :alt: OCA/pos .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_picking_delayed + :target: https://translation.odoo-community.org/projects/pos-11-0/pos-11-0-pos_picking_delayed :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/184/12.0 + :target: https://runbot.odoo-community.org/runbot/184/11.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -72,7 +72,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -88,6 +88,9 @@ Contributors ~~~~~~~~~~~~ * Sylvain LE GAL +* `Tecnativa `_ + + * David Vidal Other credits ~~~~~~~~~~~~~ @@ -110,6 +113,17 @@ 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. -This module is part of the `OCA/pos `_ project on GitHub. +.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px + :target: https://github.com/legalsylvain + :alt: legalsylvain +.. |maintainer-chienandalu| image:: https://github.com/chienandalu.png?size=40px + :target: https://github.com/chienandalu + :alt: chienandalu + +Current `maintainers `__: + +|maintainer-legalsylvain| |maintainer-chienandalu| + +This module is part of the `OCA/pos `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/pos_picking_delayed/__manifest__.py b/pos_picking_delayed/__manifest__.py index 6cd178a8..bc0476f0 100644 --- a/pos_picking_delayed/__manifest__.py +++ b/pos_picking_delayed/__manifest__.py @@ -4,10 +4,12 @@ { 'name': 'Point of Sale - Picking Creation Delayed', 'summary': 'Delay the creation of the picking when PoS order is created', - 'version': '12.0.1.0.0', + 'version': '11.0.1.0.0', + 'development_status': "Production/Stable", 'category': 'Point Of Sale', 'author': 'GRAP, ' 'Odoo Community Association (OCA)', + 'maintainers': ['legalsylvain', 'chienandalu'], 'license': 'AGPL-3', 'website': 'https://www.github.com/OCA/pos', 'depends': [ diff --git a/pos_picking_delayed/readme/CONTRIBUTORS.rst b/pos_picking_delayed/readme/CONTRIBUTORS.rst index 9f76a75b..bb61703b 100644 --- a/pos_picking_delayed/readme/CONTRIBUTORS.rst +++ b/pos_picking_delayed/readme/CONTRIBUTORS.rst @@ -1 +1,4 @@ * Sylvain LE GAL +* `Tecnativa `_ + + * David Vidal diff --git a/pos_picking_delayed/static/description/index.html b/pos_picking_delayed/static/description/index.html index 56e64834..0995220c 100644 --- a/pos_picking_delayed/static/description/index.html +++ b/pos_picking_delayed/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runbot

+

Production/Stable License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runbot

This module extends the functionality of odoo Point Of Sale to reduce creation time of the PoS orders, via the front UI.

For that purpose, it delays the creation of the picking associated, that will @@ -421,7 +421,7 @@ be in a different color until the job is executed

Bugs are tracked on GitHub 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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -436,6 +436,10 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

Contributors

@@ -453,7 +457,9 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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.

-

This module is part of the OCA/pos project on GitHub.

+

Current maintainers:

+

legalsylvain chienandalu

+

This module is part of the OCA/pos project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/pos_picking_delayed/tests/test_module.py b/pos_picking_delayed/tests/test_module.py index 05bc7560..9bd95f84 100644 --- a/pos_picking_delayed/tests/test_module.py +++ b/pos_picking_delayed/tests/test_module.py @@ -11,9 +11,19 @@ class TestModule(TransactionCase): super(TestModule, self).setUp() self.PosOrder = self.env['pos.order'] self.QueueJob = self.env['queue.job'] - self.pos_product = self.env.ref('point_of_sale.whiteboard_pen') - self.pricelist = self.env.ref('product.list0') - + self.pos_product = self.env['product.product'].create({ + 'name': 'Test POS product', + 'type': 'product', + 'available_in_pos': True, + }) + self.pricelist = self.env['product.pricelist'].create({ + 'name': 'Test pricelist', + 'item_ids': [(0, 0, { + 'applied_on': '3_global', + 'compute_price': 'formula', + 'base': 'list_price', + })] + }) # Create a new pos config and open it self.pos_config = self.env.ref('point_of_sale.pos_config_main').copy() self.pos_config.open_session_cb() diff --git a/pos_picking_delayed/views/view_pos_config.xml b/pos_picking_delayed/views/view_pos_config.xml index 4c6f3314..4ffd85b7 100644 --- a/pos_picking_delayed/views/view_pos_config.xml +++ b/pos_picking_delayed/views/view_pos_config.xml @@ -8,10 +8,18 @@ pos.config - - - - + +
+
+ +
+
+
+