Browse Source

[NEW] Module that links the pos order with it respective picking

FIX typo
pull/114/head
sadamo 8 years ago
parent
commit
5437211c4f
  1. 44
      pos_order_picking_link/README.rst
  2. 5
      pos_order_picking_link/__init__.py
  3. 18
      pos_order_picking_link/__openerp__.py
  4. 5
      pos_order_picking_link/models/__init__.py
  5. 13
      pos_order_picking_link/models/stock.py
  6. BIN
      pos_order_picking_link/static/description/icon.png
  7. 18
      pos_order_picking_link/views/stock_view.xml

44
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 <https://github.com/OCA/pos/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 <daniel.sadamo@kmee.com.br>
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.

5
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

18
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,
}

5
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

13
pos_order_picking_link/models/stock.py

@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
# © 2016 KMEE(<http://www.kmee.com.br>)
# 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)

BIN
pos_order_picking_link/static/description/icon.png

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

18
pos_order_picking_link/views/stock_view.xml

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- stock.picking -->
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock_picking_invoice_link.stock.picking.form</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock_account.view_picking_inherit_form2"/>
<field name="arch" type="xml">
<field name="invoice_state" position="after">
<field name="pos_order_ids" widget="many2one"/>
</field>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save