odoo/addons/stock_planning/wizard/stock_planning_forecast_vie...

41 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Create Forecast section -->
<record id="view_stock_sale_forecast_createlines_form" model="ir.ui.view">
<field name="name">stock.sale.forecast.createlines</field>
<field name="model">stock.sale.forecast.createlines</field>
<field name="arch" type="xml">
<form string="Create Forecasts Lines" version="7.0">
<group col="4">
<field name="period_id"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
<field name="warehouse_id" domain = "[('company_id','=',company_id)] "/>
<field name="copy_forecast"/>
<field name="product_categ_id" widget="selection"/>
</group>
<footer>
<button name="create_forecast" string="Create" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
</form>
</field>
</record>
<record id="action_stock_sale_forecast_createlines_form" model="ir.actions.act_window">
<field name="name">Create Sales Forecasts</field>
<field name="res_model">stock.sale.forecast.createlines</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_stock_sale_forecast_createlines_form"/>
<field name="target">new</field>
<field name="help">This wizard helps create many forecast lines at once. After creating them you only have to fill in the forecast quantities. The wizard doesn't duplicate the line when another one exist for the same selection.</field>
</record>
<menuitem id="menu_stock_sale_forecast_createlines" name="Create Sales Forecasts"
parent="menu_stock_sale_forecast" action="action_stock_sale_forecast_createlines_form" sequence="5"/>
</data>
</openerp>