Skip to content

[14.0][MIG] pos_tare: Migration to 14.0 #980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 28 commits into from
Closed
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
da44d2c
[ADD][8.0] pos_tare
legalsylvain Jan 8, 2020
354cca3
[REF] pos_tare: Black python code
legalsylvain Jan 8, 2020
db2d783
[MIG] pos_tare: Migration to 12.0
legalsylvain Jan 8, 2020
34df026
[UPD] Update pos_tare.pot
oca-travis Jul 23, 2020
dc4f41e
[UPD] README.rst
OCA-git-bot Jul 23, 2020
4690306
pos_tare 12.0.1.0.1
OCA-git-bot Jul 23, 2020
09ba906
Added translation using Weblate (Spanish)
danimv5 Jul 27, 2020
fc3db49
Translated using Weblate (Spanish)
danimv5 Jul 27, 2020
0ac84d9
[UPD] Update pos_tare.pot
oca-travis Oct 30, 2020
6508d9c
Update translation files
oca-transbot Oct 30, 2020
c6a8b79
[FIX] pos_tare : raise an error if the gross weight is not correct
legalsylvain Nov 16, 2020
1aa252c
[FIX] pos_tare : move the confirm popup regarding null or negative qu…
legalsylvain Nov 20, 2020
ada6c5e
[UPD] Update pos_tare.pot
oca-travis Dec 15, 2020
e36c487
pos_tare 12.0.1.0.2
OCA-git-bot Dec 15, 2020
cc340a9
Update translation files
oca-transbot Dec 15, 2020
61a3434
[UPD] Update pos_tare.pot
oca-travis Dec 15, 2020
3ab0fd8
Update translation files
oca-transbot Dec 15, 2020
64d85d0
[IMP][12.O] pos_tare : add default tare weight on product.template model
legalsylvain May 24, 2021
a7d165a
[UPD] Update pos_tare.pot
oca-travis Jun 12, 2021
ad8d038
[UPD] README.rst
OCA-git-bot Jun 12, 2021
17558c8
pos_tare 12.0.1.0.3
OCA-git-bot Jun 12, 2021
915d77e
Update translation files
oca-transbot Jun 12, 2021
3c52604
[UPD] Update pos_tare.pot
oca-travis Jun 12, 2021
68a40e2
Update translation files
oca-transbot Jun 12, 2021
5a0a231
Added translation using Weblate (Italian)
mymage Mar 17, 2023
c393ff7
Translated using Weblate (Italian)
mymage Mar 17, 2023
096f471
[IMP] pos_tare: black, isort, prettier
baimont Apr 7, 2023
325ae22
[MIG] pos_tare: Migration to 14.0
baimont Apr 7, 2023
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
115 changes: 115 additions & 0 deletions pos_tare/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
====================
Point Of Sale - Tare
====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/licence-AGPL--3-blue.png
: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/12.0/pos_tare
:alt: OCA/pos
.. |badge4| 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_tare
: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/12.0
:alt: Try me on Runbot

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

Give the possibility to the user to enter a Tare weight, when weighting
products in the Point of Sale.
This will compute automatically net weight and set it to the current
selected order

.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_tare/static/description/pos_tare.png

The net weight is displayed in the order with the tare value below.

.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_tare/static/description/order.png


All informations will be available on the ticket.

.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_tare/static/description/pos_ticket.png

**Table of contents**

.. contents::
:local:

Usage
=====

Install this add-on and configure your point of sale. To enable this addon, go to your point of sale configuration page. There, enable the electronic scale and barcode reader in the "IoT Box" section. In the same page, look up for the "Tare input method" field, and choose a tare method. There are three tare methods:
- "manual", you'll set the tare value when you weight the product;
- "barcode", you'll scan the tare value from a barcode;
- "both", you can both of the above.

To generate a tare barcode you need to use the default barcode nomenclature. The default barcode pattern is `0700000{NNDDD}`. Using that pattern, the barcode for a tare of 0.1kg is `0700000001006`. The `pos_tare_barcode_generator` allows you to create tare labels right from the POS.

you can define a default tare on the product form view, if you always use the same type of packaging (or container) for a given product.

.. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_tare/static/description/product_template.png

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_tare%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
~~~~~~~

* GRAP
* Le Nid

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

- Sylvain LE GAL (https://www.twitter.com/legalsylvain)
- Le Nid
- CoopITEasy

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.

.. |maintainer-fkawala| image:: https://github.com/fkawala.png?size=40px
:target: https://github.com/fkawala
:alt: fkawala
.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-fkawala| |maintainer-legalsylvain|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/12.0/pos_tare>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_tare/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
32 changes: 32 additions & 0 deletions pos_tare/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# @author: François Kawala
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Point Of Sale - Tare",
"summary": "Manage Tare in Point Of Sale module",
"version": "14.0.1.0.0",
"category": "Point of Sale",
"author": "GRAP, Le Nid, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"maintainers": ["fkawala", "legalsylvain"],
"depends": [
"point_of_sale",
],
"data": [
"views/templates.xml",
"views/view_pos_config.xml",
"views/view_pos_order.xml",
"views/view_product_template.xml",
"data/barcode_rule.xml",
],
"qweb": [
"static/src/xml/Screens/ProductScreen/Orderline.xml",
"static/src/xml/Screens/ProductScreen/NumpadWidget.xml",
"static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml",
"static/src/xml/Screens/ScaleScreen/ScaleScreen.xml",
],
"demo": [
"demo/product_product.xml",
],
"installable": True,
}
14 changes: 14 additions & 0 deletions pos_tare/data/barcode_rule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<odoo noupdate="1">
<record id="barcode_rule_tare" model="barcode.rule">
<field name="name">Tare</field>
<field
name="barcode_nomenclature_id"
ref="barcodes.default_barcode_nomenclature"
/>
<field name="sequence">81</field>
<field name="type">tare</field>
<field name="encoding">ean13</field>
<field name="pattern">0700000{NNDDD}</field>
</record>
</odoo>
17 changes: 17 additions & 0 deletions pos_tare/demo/product_product.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2021 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
<record id="cheese" model="product.product">
<field name="name">Cheese by the Slice</field>
<field name="uom_id" ref="uom.product_uom_kgm" />
<field name="uom_po_id" ref="uom.product_uom_kgm" />
<field name="lst_price">18</field>
<field name="available_in_pos" eval="True" />
<field name="to_weight" eval="True" />
<field name="tare_weight">0.006</field>
</record>
</odoo>
Loading