[IMP] barcodes: add a little explanation text on the barcode nomenclatures
authorFrédéric van der Essen <fvdessen@gmail.com>
Tue, 9 Dec 2014 17:09:39 +0000 (18:09 +0100)
committerFrédéric van der Essen <fvdessen@gmail.com>
Tue, 9 Dec 2014 17:09:39 +0000 (18:09 +0100)
addons/barcodes/barcodes_view.xml

index 7667a3d..e308983 100644 (file)
                             <field name="name" />
                             <field name="strict_ean"/>
                         </group>
+                        <div>
+                            <p>
+                                <i>Barcodes Nomenclatures</i> define how barcodes are recognized and categorized.
+                                When a barcode is scanned it is associated to the <i>first</i> rule with a matching 
+                                pattern. The pattern syntax is that of regular expression, and a barcode is matched
+                                if the regular expression matches a prefix of the barcode. 
+                            </p><p>
+                                Patterns can also define how numerical values, such as weight or price, can be
+                                encoded into the barcode. They are indicated by a <code>{NNN}</code> where the N's
+                                define where the number's digits are encoded. Floats are also supported with the 
+                                decimals indicated with D's, such as <code>{NNNDD}</code>. In these cases, 
+                                the barcodes on the associated entites <i>must</i> have the value part set to 
+                                zeroes. 
+                            </p>
+                        </div>
                         <field name="rule_ids">
                             <tree string='Tables'>
                                 <field name="name" />