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.

32 lines
1.4 KiB

8 years ago
8 years ago
8 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2016-Today: GRAP (http://www.grap.coop)
  4. Copyright (C) 2016-Today GRAP (http://www.lalouve.net)
  5. @author Sylvain LE GAL (https://twitter.com/legalsylvain)
  6. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  7. -->
  8. <odoo>
  9. <record id="view_barcode_rule_form" model="ir.ui.view">
  10. <field name="model">barcode.rule</field>
  11. <field name="inherit_id" ref="barcodes.view_barcode_rule_form"/>
  12. <field name="arch" type="xml">
  13. <field name="pattern" position="after">
  14. <vbnewline />
  15. <group string="Barcode Generation" colspan='4' attrs="{'invisible': ['|',
  16. ('encoding', '=', 'any'),
  17. ('padding', '=', 0)]}">
  18. <field name="generate_type"/>
  19. <field name="padding" attrs="{'invisible': [('generate_type', '=', 'no')]}"/>
  20. <field name="generate_model" attrs="{'invisible': [('generate_type', '=', 'no')]}"/>
  21. <vbnewline />
  22. <button name="generate_sequence" type="object" string="Generate Sequence" colspan="2"
  23. attrs="{'invisible': [('generate_type', '!=', 'sequence')]}"/>
  24. <field name="sequence_id" attrs="{'invisible': [('generate_type', '!=', 'sequence')]}"/>
  25. </group>
  26. </field>
  27. </field>
  28. </record>
  29. </odoo>