-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by legalsylvain
- Loading branch information
Showing
24 changed files
with
1,481 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
=============================== | ||
Point of Sale - Price to Weight | ||
=============================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:b0443f725649e14ed47bb43b7e7815d98a6f850cf45bffdd6f66b8eee3ac1b76 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/16.0/pos_price_to_weight | ||
:alt: OCA/pos | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_price_to_weight | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module extends Odoo Point Of Sale features, to allow to scan barcode | ||
with price and to compute according quantity. | ||
|
||
In Odoo by default, there are three types of barcode rules for products. | ||
|
||
* 'Unit Product' (``type=product``). Scanning a product will add a unit of this | ||
product to the current order. | ||
* 'Priced product' (``type=price``). A price is extracted from the barcode, and | ||
a new line with the given price and a quantity = 1 is added to the current | ||
order. | ||
* 'Weighted product' (``type=weight``). A weight is extracted from the barcode, | ||
and a new line with the given weight, and a computed price | ||
(quantity * Unit price) is added to the current order. | ||
|
||
This module add a new option: | ||
|
||
* 'Priced Product (Computed Weight)' (``type=price_to_weight``). A price is | ||
extracted from the barcode, and a new line with the given price, and a | ||
computed quantity (Price / Unit Price) is added to the current order. | ||
|
||
This module is usefull in shops with products scaled, to manage correctly | ||
stock quantities. | ||
|
||
**Samples** | ||
|
||
* Given a product with a unit price of 1,50€ / kg | ||
|
||
* The barcode is 0212345{NNNDD}x where: | ||
* 02 is the prefix of the barcode rule | ||
* 12345 is the product number | ||
* {NNNDD} is the price of the scaled product | ||
* x is the control digit | ||
|
||
* On the product we so set '0212345000007' in the barcode field. | ||
|
||
* if the scanned barcode is 0212345002650: | ||
* {NNNDD} is 00265, the price is so 2,65€ | ||
* the according quantity is 2,65€ / 1,5 €/kg = 1,767 kg | ||
|
||
.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_price_to_weight/static/description/pos_test_1.png | ||
|
||
* if the scanned barcode is 0212345008102: | ||
* {NNNDD} is 00810, the price is so 8,10€ | ||
* the according quantity is 8,10€ / 1,5 €/kg = 5,400 kg | ||
|
||
.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_price_to_weight/static/description/pos_test_2.png | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
* Go to Point of Sale > Configuration > Barcode Nomenclatures | ||
* Edit your barcode rules, according to your barcodes settings | ||
|
||
.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_price_to_weight/static/description/barcode_rule.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 to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_price_to_weight%0Aversion:%2016.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 | ||
~~~~~~~ | ||
|
||
* La Louve | ||
* GRAP | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Sylvain LE GAL <https://twitter.com/legalsylvain> | ||
|
||
Other credits | ||
~~~~~~~~~~~~~ | ||
|
||
Icon parts come from http://icons8.com | ||
|
||
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/16.0/pos_price_to_weight>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (C) 2017-Today: La Louve (<http://www.lalouve.net/>) | ||
# Copyright (C) 2019-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). | ||
|
||
{ | ||
"name": "Point of Sale - Price to Weight", | ||
"version": "16.0.1.0.0", | ||
"category": "Point Of Sale", | ||
"summary": "Compute weight based on barcodes with prices", | ||
"author": "La Louve, GRAP, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/pos", | ||
"license": "AGPL-3", | ||
"depends": ["point_of_sale"], | ||
"data": [], | ||
"demo": [ | ||
"demo/barcode_rule.xml", | ||
"demo/product_product.xml", | ||
], | ||
"assets": { | ||
"point_of_sale.assets": [ | ||
"pos_price_to_weight/static/src/js/ProductScreen.js", | ||
], | ||
}, | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
Copyright (C) 2017 - 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="rule_price_to_weight" model="barcode.rule"> | ||
<field name="name">Price Barcodes (Computed Weight) 2 Decimals</field> | ||
<field | ||
name="barcode_nomenclature_id" | ||
ref="barcodes.default_barcode_nomenclature" | ||
/> | ||
<field name="type">price_to_weight</field> | ||
<field name="pattern">02.....{NNNDD}</field> | ||
<field name="sequence">15</field> | ||
<field name="encoding">ean13</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
Copyright (C) 2017 - 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="product_price_to_weight_barcode" model="product.product"> | ||
<field name="name">Apples (with Price To Weight Barcode)</field> | ||
<field name="barcode">0212345000007</field> | ||
<field name="list_price">1.50</field> | ||
<field name="available_in_pos">True</field> | ||
<field name="to_weight">True</field> | ||
<field name="uom_id" ref="uom.product_uom_kgm" /> | ||
<field name="uom_po_id" ref="uom.product_uom_kgm" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * pos_price_to_weight | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 2018 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2018-01-20 15:54+0000\n" | ||
"PO-Revision-Date: 2022-04-13 13:05+0000\n" | ||
"Last-Translator: Noel estudillo <noelestudilloviera@gmail.com>\n" | ||
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" | ||
"Language: ca\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Alias" | ||
msgstr "Àlies" | ||
|
||
#. module: pos_price_to_weight | ||
#: model:product.product,name:pos_price_to_weight.product_price_to_weight_barcode | ||
#: model:product.template,name:pos_price_to_weight.product_price_to_weight_barcode_product_template | ||
msgid "Apples (with Price To Weight Barcode)" | ||
msgstr "Pomes (amb preu per pes de codi de barres)" | ||
|
||
#. module: pos_price_to_weight | ||
#: model:ir.model,name:pos_price_to_weight.model_barcode_rule | ||
msgid "Barcode Rule" | ||
msgstr "barcode.rule" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Cashier" | ||
msgstr "Caixer" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Client" | ||
msgstr "Client" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Discounted Product" | ||
msgstr "Producte amb descompte" | ||
|
||
#. module: pos_price_to_weight | ||
#: model:ir.model.fields,field_description:pos_price_to_weight.field_pos_config__pos_price_to_weight_price_field_name | ||
msgid "Field Name" | ||
msgstr "Nom del camp" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Location" | ||
msgstr "Ubicació" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Lot" | ||
msgstr "Lot" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Meal Voucher Payment" | ||
msgstr "Pagament del val de menjar" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Package" | ||
msgstr "Paquet" | ||
|
||
#. module: pos_price_to_weight | ||
#: model:ir.model,name:pos_price_to_weight.model_pos_config | ||
msgid "Point of Sale Configuration" | ||
msgstr "Configuració del punt de venda" | ||
|
||
#. module: pos_price_to_weight | ||
#: model:ir.model.fields,field_description:pos_price_to_weight.field_pos_config__pos_price_to_weight_price_field_id | ||
msgid "Price To Weight Field" | ||
msgstr "Camp Preu a Pes" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Priced Product" | ||
msgstr "Producte amb preu" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Priced Product (Computed Weight)" | ||
msgstr "Producte amb preu (pes automatitzat)" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Tare" | ||
msgstr "Tara" | ||
|
||
#. module: pos_price_to_weight | ||
#: model:ir.model.fields,field_description:pos_price_to_weight.field_barcode_rule__type | ||
msgid "Type" | ||
msgstr "Tipus" | ||
|
||
#. module: pos_price_to_weight | ||
#: model_terms:ir.ui.view,arch_db:pos_price_to_weight.view_pos_config_form | ||
msgid "Unit Price field used when converting scanned weight to price." | ||
msgstr "" | ||
"El camp Preu unitari s'utilitza quan es converteix el pes escanejat en preu." | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Unit Product" | ||
msgstr "Producte unitari" | ||
|
||
#. module: pos_price_to_weight | ||
#: selection:barcode.rule,type:0 | ||
msgid "Weighted Product" | ||
msgstr "Producte ponderat" | ||
|
||
#. module: pos_price_to_weight | ||
#: model:product.product,uom_name:pos_price_to_weight.product_price_to_weight_barcode | ||
#: model:product.product,weight_uom_name:pos_price_to_weight.product_price_to_weight_barcode | ||
#: model:product.template,uom_name:pos_price_to_weight.product_price_to_weight_barcode_product_template | ||
#: model:product.template,weight_uom_name:pos_price_to_weight.product_price_to_weight_barcode_product_template | ||
msgid "kg" | ||
msgstr "kg" |
Oops, something went wrong.