Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ line_length=79
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
known_third_party=
known_third_party=checksumdir
81 changes: 81 additions & 0 deletions pos_container/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
=============
POS Container
=============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/12.0/pos_container
:alt: OCA/pos
.. |badge3| 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_container
:alt: Translate me on Weblate
.. |badge4| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4|

This module allows to handle use of reusable containers in POS,
this is useful to handle selling product in bulk without having to calculate
the tare of the container.

Each container is identified by a barcode, the weight is stored in Odoo.

**Table of contents**

.. contents::
:local:

Usage
=====

You have to create a Barcode Nomenclature to handle containers before using the
module.

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 <https://github.com/OCA/pos/issues/new?body=module:%20pos_container%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Coop IT Easy SCRLfs

Contributors
~~~~~~~~~~~~

* Pierrick Brun <[email protected]>
* Robin Keunen <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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 <https://github.com/OCA/pos/tree/12.0/pos_container>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions pos_container/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
24 changes: 24 additions & 0 deletions pos_container/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2019 Coop IT Easy SCRLfs
# Robin Keunen <[email protected]>
# Pierrick Brun <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).{
{
"name": "POS Container",
"version": "12.0.1.0.0",
"summary": """
Allows managing pre-weighted containers for bulk shop""",
"author": "Coop IT Easy SCRLfs, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/pos/",
"category": "Point of Sale",
"depends": ["point_of_sale"],
"data": [
"data/product.xml",
"views/container.xml",
"templates/templates.xml",
"security/ir.model.access.csv",
],
"demo": ["demo/demo.xml"],
"qweb": ["static/src/xml/pos.xml"],
"installable": True,
}
41 changes: 41 additions & 0 deletions pos_container/data/product.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<odoo>
<record id="temporary_container_product" model="product.product">
<field name="name">Container without product</field>
<!-- The barcode is used to find it from the POS -->
<field name="barcode">CONTAINER</field>
<field name="uom_id" ref="uom.product_uom_kgm"/>
<field name="uom_po_id" ref="uom.product_uom_kgm"/>
<field name="purchase_ok" eval="False"/>
<field name="description">
This product is used to describe POS order lines having a container but no product yet
</field>
<field name="list_price">0</field>
<field name="available_in_pos" eval="True"/>
<field name="to_weight" eval="True"/>
<field name="active" eval="False"/>
</record>
<record id="temporary_container_product_product_template" model="product.template">
<field name="active" eval="False"/>

</record>
<record id="temporary_returnable_container_product" model="product.product">
<field name="name">Returnable Container</field>
<!-- The barcode is used to find it from the POS -->
<field name="barcode">RETURNABLE</field>
<field name="uom_id" ref="uom.product_uom_unit"/>
<field name="uom_po_id" ref="uom.product_uom_unit"/>
<field name="purchase_ok" eval="False"/>
<field name="description">
This product is used to describe POS order lines having a returnable container
</field>
<field name="type">consu</field>
<field name="taxes_id" eval="[]"/>
<field name="list_price">0</field>
<field name="available_in_pos" eval="True"/>
<field name="to_weight" eval="False"/>
<field name="active" eval="False"/>
</record>
<record id="temporary_returnable_container_product_product_template" model="product.template">
<field name="active" eval="False"/>
</record>
</odoo>
19 changes: 19 additions & 0 deletions pos_container/demo/demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<odoo>
<record id="container_1" model="pos.container">
<field name="name">Container 1</field>
<field name="barcode">0498765456789</field>
<field name="weight">0.123</field>
</record>

<record id="container_2" model="pos.container">
<field name="name">Container 2</field>
<field name="barcode">0490987654356</field>
<field name="weight">0.234</field>
</record>

<record id="container_3" model="pos.container">
<field name="name">Container 3</field>
<field name="barcode">0490987654398</field>
<field name="weight">0.567</field>
</record>
</odoo>
Loading