diff --git a/pos_order_picking_link/README.rst b/pos_order_picking_link/README.rst new file mode 100644 index 00000000..2881f3c3 --- /dev/null +++ b/pos_order_picking_link/README.rst @@ -0,0 +1,44 @@ +.. 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 + +================================================= +Link between the picking and its source POS order +================================================= + +This module adds a link between pickings and its source POS order. +So that user can easily reach the pos order related to the picking +and see the pickings related to the pos order. This only applies +on the pickings generated from pos order. + + +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 + +Credits +======= + +Contributors +------------ + +* Daniel Sadamo + + +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. diff --git a/pos_order_picking_link/__init__.py b/pos_order_picking_link/__init__.py new file mode 100644 index 00000000..a66997ad --- /dev/null +++ b/pos_order_picking_link/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 KMEE INFORMATICA LTDA (https://kmee.com.br) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/pos_order_picking_link/__openerp__.py b/pos_order_picking_link/__openerp__.py new file mode 100644 index 00000000..4d731411 --- /dev/null +++ b/pos_order_picking_link/__openerp__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# © 2016 KMEE INFORMATICA LTDA (https://kmee.com.br) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'POS Order Picking Link', + 'version': '8.0.1.1.0', + 'category': 'Point of Sale', + 'summary': 'Adds link between Pos orders and generated pickings', + 'author': 'KMEE INFORMATICA LTDA, Odoo Community Association (OCA)', + 'website': 'http://www.kmee.com.br', + 'license': 'AGPL-3', + 'depends': ['point_of_sale'], + 'data': [ + 'views/stock_view.xml', + ], + 'installable': True, +} diff --git a/pos_order_picking_link/models/__init__.py b/pos_order_picking_link/models/__init__.py new file mode 100644 index 00000000..146761f4 --- /dev/null +++ b/pos_order_picking_link/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 KMEE INFORMATICA LTDA (https://kmee.com.br) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import stock diff --git a/pos_order_picking_link/models/stock.py b/pos_order_picking_link/models/stock.py new file mode 100644 index 00000000..37e95d84 --- /dev/null +++ b/pos_order_picking_link/models/stock.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# © 2016 KMEE() +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp import fields, models + + +class StockPicking(models.Model): + _inherit = "stock.picking" + + pos_order_ids = fields.One2many(comodel_name='pos.order', + inverse_name='picking_id', copy=False, + string='POS order', readonly=True) diff --git a/pos_order_picking_link/static/description/icon.png b/pos_order_picking_link/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/pos_order_picking_link/static/description/icon.png differ diff --git a/pos_order_picking_link/views/stock_view.xml b/pos_order_picking_link/views/stock_view.xml new file mode 100644 index 00000000..9c0e7767 --- /dev/null +++ b/pos_order_picking_link/views/stock_view.xml @@ -0,0 +1,18 @@ + + + + + + + stock_picking_invoice_link.stock.picking.form + stock.picking + + + + + + + + + +