diff --git a/pos_order_return/README.rst b/pos_order_return/README.rst index 84d18dd1..597163ff 100644 --- a/pos_order_return/README.rst +++ b/pos_order_return/README.rst @@ -14,13 +14,13 @@ Point of Sale Order Return :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/11.0/pos_order_return + :target: https://github.com/OCA/pos/tree/12.0/pos_order_return :alt: OCA/pos .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/pos-11-0/pos-11-0-pos_order_return + :target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_order_return :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/11.0 + :target: https://runbot.odoo-community.org/runbot/184/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -87,7 +87,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. @@ -133,6 +133,6 @@ 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. +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_order_return/__manifest__.py b/pos_order_return/__manifest__.py index 23fbd5ac..fb210589 100644 --- a/pos_order_return/__manifest__.py +++ b/pos_order_return/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Point of Sale Order Return', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'category': 'Point Of Sale', 'author': 'La Louve, ' 'GRAP, ' diff --git a/pos_order_return/demo/product_product.xml b/pos_order_return/demo/product_product.xml index 67ead223..44f7a4a2 100644 --- a/pos_order_return/demo/product_product.xml +++ b/pos_order_return/demo/product_product.xml @@ -5,7 +5,7 @@ Returnable Bottle RET-BOTL - + diff --git a/pos_order_return/models/product_template.py b/pos_order_return/models/product_template.py index dab5859d..e86154e7 100644 --- a/pos_order_return/models/product_template.py +++ b/pos_order_return/models/product_template.py @@ -10,4 +10,5 @@ class ProductTemplate(models.Model): pos_allow_negative_qty = fields.Boolean( string='Allow Negative Quantity on PoS', + default=True, ) diff --git a/pos_order_return/static/description/index.html b/pos_order_return/static/description/index.html index d5c2d875..8e326baf 100644 --- a/pos_order_return/static/description/index.html +++ b/pos_order_return/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

+

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

This module extends the functionality of odoo Point Of Sale about POS Order returns.

With this module, it is now forbidden to return more quantity than the initial @@ -427,7 +427,7 @@ not indicated:

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.

@@ -467,7 +467,7 @@ 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.

+

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_order_return/tests/test_pos_order_return.py b/pos_order_return/tests/test_pos_order_return.py index 17340f6c..b174be4a 100644 --- a/pos_order_return/tests/test_pos_order_return.py +++ b/pos_order_return/tests/test_pos_order_return.py @@ -47,23 +47,33 @@ class TestPOSOrderReturn(common.HttpCase): 'session_id': self.pos_config.current_session_id.id, 'partner_id': self.partner.id, 'pricelist_id': self.partner.property_product_pricelist.id, + 'amount_tax': 0, + 'amount_total': 2700, + 'amount_paid': 2700, + 'amount_return': 0, 'lines': [ (0, 0, { 'name': 'POSLINE/0001', 'product_id': self.product_1.id, 'price_unit': 450, + 'price_subtotal': 450, + 'price_subtotal_incl': 450, 'qty': 2.0, }), (0, 0, { 'name': 'POSLINE/0002', 'product_id': self.product_2.id, 'price_unit': 450, + 'price_subtotal': 450, + 'price_subtotal_incl': 450, 'qty': 2.0, }), (0, 0, { 'name': 'POSLINE/0003', 'product_id': self.product_1.id, 'price_unit': 450, + 'price_subtotal': 450, + 'price_subtotal_incl': 450, 'qty': 2.0, }), ], diff --git a/pos_order_return/wizard/pos_partial_return_wizard.py b/pos_order_return/wizard/pos_partial_return_wizard.py index 08e13626..e3db24fc 100644 --- a/pos_order_return/wizard/pos_partial_return_wizard.py +++ b/pos_order_return/wizard/pos_partial_return_wizard.py @@ -7,6 +7,7 @@ from odoo import api, fields, models class PosPartialReturnWizard(models.TransientModel): _name = 'pos.partial.return.wizard' + _description = 'Partial Return Wizard' order_id = fields.Many2one( comodel_name='pos.order', @@ -43,6 +44,7 @@ class PosPartialReturnWizard(models.TransientModel): class PosPartialReturnWizardLine(models.TransientModel): _name = 'pos.partial.return.wizard.line' + _description = 'Partial Return Wizard Line' wizard_id = fields.Many2one( comodel_name='pos.partial.return.wizard',