-
-
Notifications
You must be signed in to change notification settings - Fork 680
[9.0] [ADD] sell loose goods using tare barcode label #447
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
355cb8d
Barcode tare.
Fkawala 2a1c8c0
OCA guidelines.
Fkawala 95b60c6
Barcode tare.
Fkawala 776fd95
OCA guidelines.
Fkawala c5906d3
Merge branch '9.0-tare' of github.com:Fkawala/pos into 9.0-tare
Fkawala 997cb32
Fix doc.
Fkawala 4ae35f4
Fix PEP8.
Fkawala c237a31
Correct namespace + removed console log.
Fkawala 25ee7f4
Correct model naming.
Fkawala b43c5d7
Better readme.
Fkawala c4a4cb2
On single namespace.
Fkawala 8a12de4
Fix missing _t.
Fkawala 51a0a82
Barcode prefix is read from barcode parser.
Fkawala cd4a460
Fix readme.
Fkawala 5e1edaa
Apply tare according to the product's unit of measure.
Fkawala ad530c6
Add French translation.
Fkawala 05765a0
use self only when needed.
Fkawala 8cc2940
removed useless fonction parameter.
Fkawala dc8bb43
Define a "tare" barcode type instead of hijacking the weight type.
Fkawala c56e1d4
Update i18n files.
Fkawala f5e33ff
Updated readme.
Fkawala a52574d
Fix flake8.
Fkawala f2770c4
Fix XML, refacto, better alert message.
Fkawala c880ef8
fix translations + better alert message.
Fkawala 6ebf475
This commit adds tare weight to order lines.
Fkawala bda9a25
Added: demo UOM, better errors, i18n.
Fkawala d0ca9b9
Fix i18n.
Fkawala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,90 @@ | ||
| ==================================================== | ||
| Point of Sale - Tare barecode labels for loose goods | ||
| ==================================================== | ||
|
|
||
| .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! 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/9.0/pos_barcode_tare | ||
| :alt: OCA/pos | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/pos-9-0/pos-9-0-pos_barcode_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/9.0 | ||
| :alt: Try me on Runbot | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| This add-on enable POS to read and print tare barcodes. A tare barcode is used to sell loose goods in a bring your own container (BYOC) scheme. | ||
|
|
||
| The BYOC scheme has four steps: | ||
| 1. The cashier weights the container and sticks the tare bar code onto the customer's container. | ||
| 2. The customer takes the desired quantity of the good s-he wants to buy. | ||
| 3. The cashier weights the filled container and good, POS gives the corresponding price. | ||
| 4. The cashier scans the tare bar code, POS removes the container's weight from the latest product of the order. | ||
|
|
||
| This add-on adds a news screen to POS to (web) print the tare barcode labels. This add-on enables POS to read a tare | ||
| barecode. When such a barcode is read, POS adjusts the weight of the latest article in the order list. | ||
| The new weight is equal to the total weight minus the tare weight. The price is updated accordingly to the weight | ||
| change. | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Usage | ||
| ===== | ||
|
|
||
| Install this add-on and configure the point of sale where you want to be able to use the tare barecode. The label printing is done using web print. To streamline the label printing it is advised to use the silent printing mode (firefox) or the kiosk printing (chrome). | ||
|
|
||
| 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_barcode_tare%0Aversion:%209.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 | ||
| ~~~~~~~ | ||
|
|
||
| * Le Nid | ||
|
|
||
| Contributors | ||
| ~~~~~~~~~~~~ | ||
|
|
||
| - 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. | ||
|
|
||
| This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/9.0/pos_barcode_tare>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or 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,2 @@ | ||
| # -*- coding: utf-8 -*- | ||
| from . import models |
This file contains hidden or 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,22 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # @author: François Kawala | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
| { | ||
| 'name': "Point of Sale - Tare barecode labels for loose goods", | ||
| 'version': '9.0.0.0.1', | ||
| 'category': 'Point of Sale', | ||
| 'summary': """Point of Sale - Print and scan tare \ | ||
| barecodes labels to sell loose goods.""", | ||
| 'author': "Le Nid, Odoo Community Association (OCA)", | ||
| 'website': "https://github.com/OCA/pos", | ||
| 'license': 'AGPL-3', | ||
| 'depends': ['point_of_sale'], | ||
| 'data': [ | ||
| 'views/pos_config_view.xml', | ||
| 'views/pos_barcode_tare.xml', | ||
| ], | ||
| 'qweb': [ | ||
| 'static/src/xml/pos_barcode_tare.xml', | ||
| ], | ||
| 'installable': True, | ||
| } |
This file contains hidden or 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 pos_config |
This file contains hidden or 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,11 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| from openerp import models, fields | ||
|
|
||
|
|
||
| class PosConfig(models.Model): | ||
| _inherit = 'pos.config' | ||
| tare_label_button = fields.Boolean( | ||
| 'Show tare label button', | ||
| help="Print tare labels with this POS" | ||
| ) | ||
This file contains hidden or 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,2 @@ | ||
| - Le Nid | ||
| - CoopITEasy |
This file contains hidden or 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,12 @@ | ||
| This add-on enable POS to read and print tare barcodes. A tare barcode is used to sell loose goods in a bring your own container (BYOC) scheme. | ||
|
|
||
| The BYOC scheme has four steps: | ||
| 1. The cashier weights the container and sticks the tare bar code onto the customer's container. | ||
| 2. The customer takes the desired quantity of the good s-he wants to buy. | ||
| 3. The cashier weights the filled container and good, POS gives the corresponding price. | ||
| 4. The cashier scans the tare bar code, POS removes the container's weight from the latest product of the order. | ||
|
|
||
| This add-on adds a news screen to POS to (web) print the tare barcode labels. This add-on enables POS to read a tare | ||
| barecode. When such a barcode is read, POS adjusts the weight of the latest article in the order list. | ||
| The new weight is equal to the total weight minus the tare weight. The price is updated accordingly to the weight | ||
| change. | ||
Fkawala marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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 @@ | ||
| Install this add-on and configure the point of sale where you want to be able to use the tare barecode. The label printing is done using web print. To streamline the label printing it is advised to use the silent printing mode (firefox) or the kiosk printing (chrome). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.