From d1fb0f45176c6805aecd42fcd8864389ff4609d3 Mon Sep 17 00:00:00 2001 From: Osval Reyes Date: Thu, 19 Nov 2015 15:00:13 -0430 Subject: [PATCH] [ADD] crm_rma_lot_mass_return module --- crm_rma_lot_mass_return/README.rst | 86 +++ crm_rma_lot_mass_return/__init__.py | 10 +- crm_rma_lot_mass_return/__openerp__.py | 59 +- crm_rma_lot_mass_return/crm_rma_view.xml | 16 - .../demo/purchase_order.xml | 69 +++ crm_rma_lot_mass_return/demo/sale_order.xml | 67 ++ .../demo/stock_production_lot.xml | 37 ++ .../demo/transfer_details.xml | 196 ++++++ .../i18n/crm_rma_lot_mass_return.pot | 154 ++++- crm_rma_lot_mass_return/i18n/es.po | 181 ++++++ crm_rma_lot_mass_return/i18n/es_MX.po | 16 + crm_rma_lot_mass_return/i18n/es_PA.po | 16 + crm_rma_lot_mass_return/i18n/es_VE.po | 16 + crm_rma_lot_mass_return/models/__init__.py | 22 + crm_rma_lot_mass_return/models/crm_claim.py | 58 ++ .../static/src/js/barcode_text.js | 115 ++++ .../templates/search_view.xml | 11 + crm_rma_lot_mass_return/tests/__init__.py | 25 + .../tests/test_constrains.py | 48 ++ .../tests/test_crm_rma_lot_mass_return.py | 157 +++++ .../tests/test_crm_rma_lot_mass_return_2.py | 209 +++++++ crm_rma_lot_mass_return/views/crm_claim.xml | 19 + .../wizard/returned_lines_from_serial.py | 267 -------- ...returned_lines_from_serial_wizard_view.xml | 73 --- .../{wizard => wizards}/__init__.py | 8 +- .../wizards/returned_lines_from_serial.py | 586 ++++++++++++++++++ .../returned_lines_from_serial_wizard.xml | 104 ++++ 27 files changed, 2212 insertions(+), 413 deletions(-) create mode 100644 crm_rma_lot_mass_return/README.rst delete mode 100644 crm_rma_lot_mass_return/crm_rma_view.xml create mode 100644 crm_rma_lot_mass_return/demo/purchase_order.xml create mode 100644 crm_rma_lot_mass_return/demo/sale_order.xml create mode 100644 crm_rma_lot_mass_return/demo/stock_production_lot.xml create mode 100644 crm_rma_lot_mass_return/demo/transfer_details.xml create mode 100644 crm_rma_lot_mass_return/i18n/es.po create mode 100644 crm_rma_lot_mass_return/i18n/es_MX.po create mode 100644 crm_rma_lot_mass_return/i18n/es_PA.po create mode 100644 crm_rma_lot_mass_return/i18n/es_VE.po create mode 100644 crm_rma_lot_mass_return/models/__init__.py create mode 100644 crm_rma_lot_mass_return/models/crm_claim.py create mode 100644 crm_rma_lot_mass_return/static/src/js/barcode_text.js create mode 100644 crm_rma_lot_mass_return/templates/search_view.xml create mode 100644 crm_rma_lot_mass_return/tests/__init__.py create mode 100644 crm_rma_lot_mass_return/tests/test_constrains.py create mode 100644 crm_rma_lot_mass_return/tests/test_crm_rma_lot_mass_return.py create mode 100644 crm_rma_lot_mass_return/tests/test_crm_rma_lot_mass_return_2.py create mode 100644 crm_rma_lot_mass_return/views/crm_claim.xml delete mode 100644 crm_rma_lot_mass_return/wizard/returned_lines_from_serial.py delete mode 100644 crm_rma_lot_mass_return/wizard/returned_lines_from_serial_wizard_view.xml rename crm_rma_lot_mass_return/{wizard => wizards}/__init__.py (82%) create mode 100644 crm_rma_lot_mass_return/wizards/returned_lines_from_serial.py create mode 100644 crm_rma_lot_mass_return/wizards/returned_lines_from_serial_wizard.xml diff --git a/crm_rma_lot_mass_return/README.rst b/crm_rma_lot_mass_return/README.rst new file mode 100644 index 00000000..4a05587f --- /dev/null +++ b/crm_rma_lot_mass_return/README.rst @@ -0,0 +1,86 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +============================ +RMA Claim Mass Return by Lot +============================ + +This module adds possibility to return a whole lot of product from an invoice +and create a incoming shipment for them based on serial/lot for a product or +invoice number. + +Installation +============ + +To install this module, just select it from availables modules + +Configuration +============= + +No configuration is need for this module + +Usage +===== + +To use this module, you need to: + +* Go into Sales > After-Sale services > Claims + +* A button named "Mass return from serial/lot or invoice" will appear in the + form view when creating or editing an existing claim. + +* Enter into the wizard and introduce serial/lot for an invoiced product or + invoice number and press enter. + +* A list of selectable items it will show below or next to the input box + depending upon is introduced either invoice number or serial/lot number + respectively. When finish adding, click on Validate button and then Ok + to exit of wizard and continue editing the claim. + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/145/8.0 + + +For further information, please visit: + +* https://www.odoo.com/forum/help-1 + +Known issues / Roadmap +====================== + +* No issues are registered + +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 +`here `_. + + +Credits +======= + +Contributors +------------ + +* Yanina Aular +* Osval Reyes + +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 http://odoo-community.org. diff --git a/crm_rma_lot_mass_return/__init__.py b/crm_rma_lot_mass_return/__init__.py index c4de8d31..c8229dc7 100644 --- a/crm_rma_lot_mass_return/__init__.py +++ b/crm_rma_lot_mass_return/__init__.py @@ -1,9 +1,11 @@ # -*- coding: utf-8 -*- ############################################################################## # +# Copyright 2015 Vauxoo # Copyright 2013 Camptocamp -# Copyright 2009-2013 Akretion, -# Author: Emmanuel Samyn, Raphaël Valyi, Sébastien Beau, Joel Grand-Guillaume +# Copyright 2009-2013 Akretion, +# Author: Emmanuel Samyn, Raphaël Valyi, Sébastien Beau, +# Joel Grand-Guillaume # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -19,4 +21,6 @@ # along with this program. If not, see . # ############################################################################## -from . import wizard + +from . import models +from . import wizards diff --git a/crm_rma_lot_mass_return/__openerp__.py b/crm_rma_lot_mass_return/__openerp__.py index fae33b73..c0bf52b9 100644 --- a/crm_rma_lot_mass_return/__openerp__.py +++ b/crm_rma_lot_mass_return/__openerp__.py @@ -1,9 +1,12 @@ # -*- coding: utf-8 -*- ############################################################################## # +# Copyright 2015 Vauxoo # Copyright 2013 Camptocamp -# Copyright 2009-2013 Akretion, -# Author: Emmanuel Samyn, Raphaël Valyi, Sébastien Beau, Joel Grand-Guillaume +# Copyright 2009-2013 Akretion, +# Author: Emmanuel Samyn, Raphaël Valyi, Sébastien Beau, +# Joel Grand-Guillaume, +# Yanina Aular, Osval Reyes # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -20,31 +23,29 @@ # ############################################################################## -{'name': 'RMA Claims Mass Return by Lot', - 'version': '1.0', - 'category': 'Generic Modules/CRM & SRM', - 'depends': ['crm_claim_rma' - ], - 'author': "Akretion,Odoo Community Association (OCA)", - 'license': 'AGPL-3', - 'website': 'http://www.akretion.com', - 'description': """ -RMA Claim Mass Return by Lot -============================ - -This module adds possibility to return a whole lot of product from a Claim -and create a incoming shipment for them. - - -WARNING: This module is currently not yet completely debugged and is waiting his author to be. - -""", - 'images': [], - 'demo': [], - 'data': [ - 'wizard/returned_lines_from_serial_wizard_view.xml', - 'crm_rma_view.xml', - ], - 'installable': False, - 'application': True, +{ + 'name': 'RMA Claims Mass Return by Lot', + 'version': '8.0.1.0.0', + 'category': 'Generic Modules/CRM & SRM', + 'author': 'Vauxoo,Akretion,Odoo Community Association (OCA)', + 'license': 'AGPL-3', + 'website': 'http://www.vauxoo.com, http://www.akretion.com', + 'depends': [ + 'crm_claim_rma', + 'crm_rma_prodlot_invoice', + 'crm_rma_prodlot_supplier', + ], + 'data': [ + 'wizards/returned_lines_from_serial_wizard.xml', + 'views/crm_claim.xml', + 'templates/search_view.xml' + ], + 'demo': [ + 'demo/stock_production_lot.xml', + 'demo/purchase_order.xml', + # 'demo/sale_order.xml', + 'demo/transfer_details.xml', + ], + 'installable': True, + 'auto_install': False } diff --git a/crm_rma_lot_mass_return/crm_rma_view.xml b/crm_rma_lot_mass_return/crm_rma_view.xml deleted file mode 100644 index b71614e0..00000000 --- a/crm_rma_lot_mass_return/crm_rma_view.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - CRM - Claim product return Form - crm.claim - - - -