Browse Source
[BACKPORT] to V7. use old api. backport data from stock point_of_sale and barcodes V9.0 modules. Disable JS features.
pull/121/head
[BACKPORT] to V7. use old api. backport data from stock point_of_sale and barcodes V9.0 modules. Disable JS features.
pull/121/head
Sylvain LE GAL
8 years ago
6 changed files with 152 additions and 27 deletions
-
23barcodes/__openerp__.py
-
67barcodes/barcodes.py
-
8barcodes/barcodes_view.xml
-
79barcodes/data/default_barcode_patterns.xml
-
2barcodes/models/__init__.py
-
BINbarcodes/static/src/description/barcode_nomenclature.png
@ -0,0 +1,79 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<!-- Backport Note : come from point_of_sale V9.0 module --> |
|||
<record id="point_of_sale.barcode_rule_cashier" model="barcode.rule"> |
|||
<field name="name">Cashier Barcodes</field> |
|||
<field name="barcode_nomenclature_id" ref="default_barcode_nomenclature"/> |
|||
<field name="sequence">50</field> |
|||
<field name="type">cashier</field> |
|||
<field name="encoding">any</field> |
|||
<field name="pattern">041</field> |
|||
</record> |
|||
|
|||
<record id="point_of_sale.barcode_rule_client" model="barcode.rule"> |
|||
<field name="name">Customer Barcodes</field> |
|||
<field name="barcode_nomenclature_id" ref="default_barcode_nomenclature"/> |
|||
<field name="sequence">40</field> |
|||
<field name="type">client</field> |
|||
<field name="encoding">any</field> |
|||
<field name="pattern">042</field> |
|||
</record> |
|||
|
|||
<record id="point_of_sale.barcode_rule_discount" model="barcode.rule"> |
|||
<field name="name">Discount Barcodes</field> |
|||
<field name="barcode_nomenclature_id" ref="default_barcode_nomenclature"/> |
|||
<field name="sequence">20</field> |
|||
<field name="type">discount</field> |
|||
<field name="encoding">any</field> |
|||
<field name="pattern">22{NN}</field> |
|||
</record> |
|||
|
|||
<record id="point_of_sale.barcode_rule_price_two_dec" model="barcode.rule"> |
|||
<field name="name">Price Barcodes 2 Decimals</field> |
|||
<field name="barcode_nomenclature_id" ref="default_barcode_nomenclature"/> |
|||
<field name="sequence">14</field> |
|||
<field name="type">price</field> |
|||
<field name="encoding">ean13</field> |
|||
<field name="pattern">23.....{NNNDD}</field> |
|||
</record> |
|||
|
|||
<!-- Backport Note : come from stock V9.0 module --> |
|||
<record id="stock.barcode_rule_weight_three_dec" model="barcode.rule"> |
|||
<field name="name">Weight Barcodes 3 Decimals</field> |
|||
<field name="barcode_nomenclature_id" ref="default_barcode_nomenclature"/> |
|||
<field name="sequence">36</field> |
|||
<field name="type">weight</field> |
|||
<field name="encoding">ean13</field> |
|||
<field name="pattern">21.....{NNDDD}</field> |
|||
</record> |
|||
|
|||
<record id="stock.barcode_rule_package" model="barcode.rule"> |
|||
<field name="name">Package barcodes</field> |
|||
<field name="barcode_nomenclature_id" ref="default_barcode_nomenclature"/> |
|||
<field name="sequence">70</field> |
|||
<field name="type">package</field> |
|||
<field name="encoding">any</field> |
|||
<field name="pattern">PACK</field> |
|||
</record> |
|||
|
|||
<record id="stock.barcode_rule_lot" model="barcode.rule"> |
|||
<field name="name">Lot barcodes</field> |
|||
<field name="barcode_nomenclature_id" ref="default_barcode_nomenclature"/> |
|||
<field name="sequence">80</field> |
|||
<field name="type">lot</field> |
|||
<field name="encoding">any</field> |
|||
<field name="pattern">10</field> |
|||
</record> |
|||
|
|||
<record id="stock.barcode_rule_location" model="barcode.rule"> |
|||
<field name="name">Location barcodes</field> |
|||
<field name="barcode_nomenclature_id" ref="default_barcode_nomenclature"/> |
|||
<field name="sequence">60</field> |
|||
<field name="type">location</field> |
|||
<field name="encoding">any</field> |
|||
<field name="pattern">414</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
After Width: 1075 | Height: 487 | Size: 67 KiB |
Write
Preview
Loading…
Cancel
Save
Reference in new issue