-
-
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.
[REF] remove contributors for totally refactored code.
[REM] Remove useless 'Price To Weight Field' on the pos.config. (sale price is lst_price). [REF] Adapt js code to new PoS framework. [REF] Move barcode.rule 'data' into 'demo'
- Loading branch information
1 parent
16d9819
commit 45f8195
Showing
17 changed files
with
169 additions
and
260 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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
from . import barcode_rule | ||
from . import pos_config |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,4 @@ | ||
* Go to Point of Sale > Configuration > Barcode Nomenclatures | ||
* Edit your barcode rules, according to your barcodes settings | ||
|
||
* Go to Point of Sale > Configuration > Point of Sale | ||
* Select the 'Unit Price' field that will be used to convert the price to weight. | ||
|
||
.. image:: ../static/description/pos_config_form.png | ||
:width: 800 px | ||
|
||
**Note:** | ||
|
||
By default, this is the field ``list_price`` that will be used. | ||
If you want to use a custom field, it should be loaded in the javascript file calling | ||
|
||
``models.load_fields("product.product", ['my_custom_field']);`` | ||
.. figure:: ../static/description/barcode_rule.png |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
* Sylvain LE GAL <https://twitter.com/legalsylvain> | ||
* Druidoo <https://www.druidoo.io> |
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
Oops, something went wrong.