odoo/addons/stock_planning/wizard/stock_planning_create_perio...

42 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Creating periods section -->
<record id="view_stock_period_createlines_form" model="ir.ui.view">
<field name="name">stock.period.createlines.form</field>
<field name="model">stock.period.createlines</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Stock Periods">
<field name="date_start"/>
<field name="date_stop"/>
<separator colspan="4" string=""/>
<group col="4" colspan="4">
<button string="Cancel" special="cancel" icon="gtk-cancel"/>
<button name="create_stock_periods" icon="gtk-dnd" string="Create Daily Periods" type="object"/>
<button name="create_stock_periods" icon="gtk-dnd" string="Create Weekly Periods" type="object" context="{'interval': 6, 'name': 'Weekly'}"/>
<button name="create_stock_periods" icon="gtk-dnd" string="Create Monthly Periods" type="object" context="{'interval': 1, 'name': 'Monthly'}"/>
</group>
</form>
</field>
</record>
<record id="action_stock_period_createlines_form" model="ir.actions.act_window">
<field name="name">Stock Periods</field>
<field name="res_model">stock.period.createlines</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_stock_period_createlines_form"/>
<field name="help">This wizard helps with the creation of stock planning periods. These periods are independent of financial periods. If you need periods other than day-, week- or month-based, you may also add then manually.</field>
<field name="target">new</field>
</record>
<menuitem id="menu_stock_period_creatlines"
name="Create Stock Periods"
parent="stock.menu_stock_configuration"
action="action_stock_period_createlines_form"
sequence = "20"/>
</data>
</openerp>