Files
tryton/production.xml
T

76 lines
3.1 KiB
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="production_configuration_view_form">
<field name="model">production.configuration</field>
<field name="inherit"
ref="production.production_configuration_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/field[@name='production_sequence']"
position="after">
<label name="supply_period"/>
<field name="supply_period"/>
</xpath>
</data>
]]>
</field>
</record>
<record model="ir.action.wizard" id="act_production_request_create">
<field name="name">Create Production Requests</field>
<field name="wiz_name">production.create_request</field>
</record>
<record model="ir.ui.view"
id="production_create_request_start_view_form">
<field name="model">production.create_request.start</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Create Production Request" col="2">
<image name="tryton-dialog-information" xexpand="0"
xfill="0"/>
<label string="Create Production Request?" id="create"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
]]>
</field>
</record>
<menuitem parent="production.menu_production_list" sequence="5"
action="act_production_request_create"
id="menu_production_request_create"/>
<record model="res.user" id="user_generate_request">
<field name="login">user_cron_production_request</field>
<field name="name">Cron Production Request</field>
<field name="signature"></field>
<field name="active" eval="False"/>
</record>
<record model="res.user-res.group"
id="user_generate_request_group_production">
<field name="user" ref="user_generate_request"/>
<field name="group" ref="production.group_production"/>
</record>
<record model="ir.cron" id="cron_generate_request">
<field name="name">Generate Production Requests</field>
<field name="request_user" ref="res.user_admin"/>
<field name="user" ref="user_generate_request"/>
<field name="active" eval="True"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="number_calls">-1</field>
<field name="repeat_missed" eval="False"/>
<field name="model">production</field>
<field name="function">generate_requests</field>
</record>
</data>
</tryton>