4 <!-- BARCODE NOMENCLATURES -->
5 <record model="ir.ui.view" id="view_barcode_nomenclature_form">
6 <field name="name">Barcode Nomenclatures</field>
7 <field name="model">barcode.nomenclature</field>
8 <field name="arch" type="xml">
9 <form string="Barcode Nomenclature">
13 <field name="strict_ean"/>
17 <i>Barcodes Nomenclatures</i> define how barcodes are recognized and categorized.
18 When a barcode is scanned it is associated to the <i>first</i> rule with a matching
19 pattern. The pattern syntax is that of regular expression, and a barcode is matched
20 if the regular expression matches a prefix of the barcode.
22 Patterns can also define how numerical values, such as weight or price, can be
23 encoded into the barcode. They are indicated by a <code>{NNN}</code> where the N's
24 define where the number's digits are encoded. Floats are also supported with the
25 decimals indicated with D's, such as <code>{NNNDD}</code>. In these cases,
26 the barcodes on the associated entites <i>must</i> have the value part set to
30 <field name="rule_ids">
31 <tree string='Tables'>
34 <field name="encoding" />
35 <field name="pattern" />
36 <field name="sequence" />
44 <record model="ir.ui.view" id="view_barcode_nomenclature_tree">
45 <field name="name">Barcode Nomenclatures</field>
46 <field name="model">barcode.nomenclature</field>
47 <field name="arch" type="xml">
48 <tree string="Barcode Nomenclatures">
54 <record model="ir.actions.act_window" id="action_barcode_nomenclature_form">
55 <field name="name">Barcode Nomenclatures</field>
56 <field name="type">ir.actions.act_window</field>
57 <field name="res_model">barcode.nomenclature</field>
58 <field name="view_type">form</field>
59 <field name="view_mode">tree,form</field>
60 <field name="help" type="html">
61 <p class="oe_view_nocontent_create">
62 Click to add a Barcode Nomenclature .
64 A barcode nomenclature defines how the point of sale identify and interprets barcodes
69 <record model="ir.ui.view" id="view_barcode_rule_form">
70 <field name="name">Barcode Rule</field>
71 <field name="model">barcode.rule</field>
72 <field name="arch" type="xml">
73 <form string="Barcode Rule">
76 <field name="sequence" />
78 <field name="encoding" attrs="{'invisible': [('type','=', 'alias')]}"/>
79 <field name="pattern" />
80 <field name="alias" attrs="{'invisible': [('type','!=', 'alias')]}"/>