<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2016-Today: GRAP (http://www.grap.coop)
Copyright (C) 2016-Today La Louve (http://www.lalouve.net)
Copyright 2017 LasLabs Inc.
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
    <record id="view_barcode_rule_form" model="ir.ui.view">
        <field name="model">barcode.rule</field>
        <field name="inherit_id" ref="barcodes.view_barcode_rule_form" />
        <field name="arch" type="xml">
            <xpath expr="//form/group" position="after">
                <group
                    string="Barcode Generation"
                    invisible="encoding == 'any' or padding == 0">
                    <field name="generate_type" />
                    <field
                        name="padding"
                        invisible="generate_type == 'no'"
                    />
                    <field
                        name="generate_model"
                        invisible="generate_type == 'no'"
                    />
                    <field
                        name="generate_automate"
                        invisible="generate_type == 'no'"
                    />
                    <field
                        name="sequence_id"
                        invisible="generate_type != 'sequence'"
                    />
                </group>
            </xpath>
        </field>
    </record>
</odoo>
