<?xml version="1.0"?>
<form string="Sequences">
                  <sheet>
                    <group>
                      <group>
                        <field name="name"/>
                        <field name="implementation"/>
                      </group>
                      <group>
                        <field name="code"/>
                        <field name="active" widget="boolean_toggle"/>
                        <field name="company_id" groups="base.group_multi_company"/>
                      </group>
                    </group>
                    <notebook>
                    <page string="Sequence" name="sequence">
                        <group>
                          <group>
                            <field name="prefix"/>
                            <field name="suffix"/>
                            <field name="use_date_range"/>
                          </group>
                          <group>
                            <field name="padding"/>
                            <field name="number_increment"/>
                            <field name="number_next_actual" string="Next Number" invisible="use_date_range"/>
                          </group>
                        </group>
                        <field name="date_range_ids" invisible="not use_date_range">
                            <list string="Sequences" editable="top">
                                <field name="date_from"/>
                                <field name="date_to"/>
                                <field name="number_next_actual" string="Next Number"/>
                            </list>
                        </field>
                        <group col="4" string="Legend (for prefix, suffix)">
                            <group>
                                <span colspan="2">Current Year with Century: %(year)s</span>
                                <span colspan="2">Current Year without Century: %(y)s</span>
                                <span colspan="2">Month: %(month)s</span>
                                <span colspan="2">Day: %(day)s</span>
                            </group>
                            <group>
                                <span colspan="2">Day of the Year: %(doy)s</span>
                                <span colspan="2">Week of the Year: %(woy)s</span>
                                <span colspan="2">Day of the Week (0:Monday): %(weekday)s</span>
                            </group>
                            <group>
                                <span colspan="2">Hour 00-&gt;24: %(h24)s</span>
                                <span colspan="2">Hour 00-&gt;12: %(h12)s</span>
                                <span colspan="2">Minute: %(min)s</span>
                                <span colspan="2">Second: %(sec)s</span>
                            </group>
                            <group>
                                <span colspan="2">ISO 8601 Week Year with Century: %(isoyear)s</span>
                                <span colspan="2">ISO 8601 Week Year without Century: %(isoy)s</span>
                                <span colspan="2">ISO 8601 Week Number: %(isoweek)s</span>
                            </group>
                        </group>
                        <group invisible="not use_date_range">
                            <div colspan="2">
                                When subsequences per date range are used, you can prefix variables with 'range_'
                                to use the beginning of the range instead of the current date, e.g. %(range_year)s instead of %(year)s.
                            </div>
                        </group>
                    </page>
                    </notebook>
                   </sheet>
                </form>
            