trytond-project_name_sequence/configuration.xml

35 lines
1.4 KiB
XML

<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<tryton>
<data>
<!-- Work Configuration -->
<record model="ir.ui.view" id="work_configuration_view_form">
<field name="model">work.configuration</field>
<field name="type">form</field>
<field name="name">configuration_form</field>
</record>
<record model="ir.action.act_window" id="act_work_configuration_form">
<field name="name">Work Configuration</field>
<field name="res_model">work.configuration</field>
</record>
<record model="ir.action.act_window.view"
id="act_work_configuration_view1">
<field name="sequence" eval="1"/>
<field name="view" ref="work_configuration_view_form"/>
<field name="act_window" ref="act_work_configuration_form"/>
</record>
<menuitem parent="project.menu_configuration"
action="act_work_configuration_form"
id="menu_work_configuration"
sequence="0" icon="tryton-list"/>
<record model="ir.property" id="property_work_sequence">
<field name="field"
search="[('model.model', '=', 'work.configuration'), ('name', '=', 'work_sequence')]"/>
<field name="value" eval="'ir.sequence,' + str(ref('sequence_work'))"/>
</record>
</data>
</tryton>