flectra/flectra/addons/base/ir/ir_sequence_view.xml

108 lines
5.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<!-- Sequences -->
<record id="sequence_view" model="ir.ui.view">
<field name="model">ir.sequence</field>
<field name="arch" type="xml">
<form string="Sequences">
<sheet>
<group>
<group>
<field name="name"/>
<field name="implementation"/>
</group>
<group>
<field name="code"/>
<field name="active"/>
<field name="company_id" groups="base.group_multi_company"/>
</group>
</group>
<notebook>
<page string="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" attrs="{'invisible': [('use_date_range', '=', True)]}"/>
</group>
</group>
<field name="date_range_ids" attrs="{'invisible': [('use_date_range', '=', False)]}">
<tree string="Sequences" editable="top">
<field name="date_from"/>
<field name="date_to"/>
<field name="number_next_actual"/>
</tree>
</field>
<group col="3" string="Legend (for prefix, suffix)">
<group>
<label colspan="2" string="Current Year with Century: %%(year)s"/>
<label colspan="2" string="Current Year without Century: %%(y)s"/>
<label colspan="2" string="Month: %%(month)s"/>
<label colspan="2" string="Day: %%(day)s"/>
</group>
<group>
<label colspan="2" string="Day of the Year: %%(doy)s"/>
<label colspan="2" string="Week of the Year: %%(woy)s"/>
<label colspan="2" string="Day of the Week (0:Monday): %%(weekday)s"/>
</group>
<group>
<label colspan="2" string="Hour 00->24: %%(h24)s"/>
<label colspan="2" string="Hour 00->12: %%(h12)s"/>
<label colspan="2" string="Minute: %%(min)s"/>
<label colspan="2" string="Second: %%(sec)s"/>
</group>
</group>
<group attrs="{'invisible': [('use_date_range', '=', False)]}">
<div>
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>
</field>
</record>
<record id="sequence_view_tree" model="ir.ui.view">
<field name="model">ir.sequence</field>
<field name="arch" type="xml">
<tree string="Sequences">
<field name="code"/>
<field name="name"/>
<field name="prefix"/>
<field name="padding"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="number_next_actual"/>
<field name="number_increment"/>
<field name="implementation"/>
</tree>
</field>
</record>
<record id="view_sequence_search" model="ir.ui.view">
<field name="model">ir.sequence</field>
<field name="arch" type="xml">
<search string="Sequences">
<field name="name" string="Sequence"/>
<field name="code"/>
<field name="company_id" groups="base.group_multi_company"/>
</search>
</field>
</record>
<record id="ir_sequence_form" model="ir.actions.act_window">
<field name="name">Sequences</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">ir.sequence</field>
<field name="view_type">form</field>
<field name="view_id" ref="sequence_view_tree"/>
<field name="context">{'active_test': False}</field>
</record>
<menuitem action="ir_sequence_form" id="menu_ir_sequence_form" parent="next_id_5"/>
</flectra>