You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
4.1 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  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">
  10. <sheet>
  11. <group col="4">
  12. <field name="name" />
  13. <field name="upc_ean_conv"/>
  14. </group>
  15. <div>
  16. <p>
  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.
  21. </p><p>
  22. Patterns can also define how numerical values, such as weight or price, can be
  23. encoded into the barcode. They are indicated by <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 barcode field on the associated records <i>must</i> show these digits as
  27. zeroes.
  28. </p>
  29. </div>
  30. <field name="rule_ids">
  31. <tree string='Tables'>
  32. <field name="name" />
  33. <field name="type" />
  34. <field name="encoding" />
  35. <field name="pattern" />
  36. <field name="sequence" />
  37. </tree>
  38. </field>
  39. </sheet>
  40. </form>
  41. </field>
  42. </record>
  43. <record model="ir.ui.view" id="view_barcode_nomenclature_tree">
  44. <field name="name">Barcode Nomenclatures</field>
  45. <field name="model">barcode.nomenclature</field>
  46. <field name="arch" type="xml">
  47. <tree string="Barcode Nomenclatures">
  48. <field name="name" />
  49. </tree>
  50. </field>
  51. </record>
  52. <record model="ir.actions.act_window" id="action_barcode_nomenclature_form">
  53. <field name="name">Barcode Nomenclatures</field>
  54. <field name="type">ir.actions.act_window</field>
  55. <field name="res_model">barcode.nomenclature</field>
  56. <field name="view_type">form</field>
  57. <field name="view_mode">tree,form</field>
  58. <field name="help" type="html">
  59. <p class="oe_view_nocontent_create">
  60. Click to add a Barcode Nomenclature .
  61. </p><p>
  62. A barcode nomenclature defines how the point of sale identify and interprets barcodes
  63. </p>
  64. </field>
  65. </record>
  66. <record model="ir.ui.view" id="view_barcode_rule_form">
  67. <field name="name">Barcode Rule</field>
  68. <field name="model">barcode.rule</field>
  69. <field name="arch" type="xml">
  70. <form string="Barcode Rule">
  71. <group col="4">
  72. <field name="name" />
  73. <field name="sequence" />
  74. <field name="type"/>
  75. <field name="encoding" attrs="{'invisible': [('type','=', 'alias')]}"/>
  76. <field name="pattern" />
  77. <field name="alias" attrs="{'invisible': [('type','!=', 'alias')]}"/>
  78. </group>
  79. </form>
  80. </field>
  81. </record>
  82. </data>
  83. </openerp>