[IMP] stock_planning: Minor improvement.
bzr revid: uco@tinyerp.com-20100716122152-hh9131e8dhbl2uag
This commit is contained in:
parent
e7366cbac6
commit
91b85a5929
|
@ -42,7 +42,6 @@
|
|||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
|
||||
<menuitem
|
||||
id="menu_stock_period"
|
||||
parent="menu_stock_period_main"
|
||||
|
@ -132,14 +131,14 @@
|
|||
<field name="model">stock.sale.forecast</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Sales Forecasts" editable="bottom">
|
||||
<tree string="Sales Forecasts" colors="gray:state=='validated';black:state=='draft'">
|
||||
<field name="period_id"/>
|
||||
<field name="product_id" on_change="product_id_change(product_id)" />
|
||||
<field name="product_qty"/>
|
||||
<field name="product_uom" />
|
||||
<field name="warehouse_id"/>
|
||||
<field name ="company_id"/>
|
||||
<field name="user_id"/>
|
||||
<field name="company_id"/>
|
||||
<field name="state"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
@ -136,7 +136,7 @@ class stock_planning_createlines(osv.osv_memory):
|
|||
return {
|
||||
'domain': "[('id','in', ["+','.join(map(str, planning_lines))+"])]",
|
||||
'view_type': 'form',
|
||||
"view_mode": 'tree',
|
||||
"view_mode": 'tree, form',
|
||||
'res_model': 'stock.planning',
|
||||
'type': 'ir.actions.act_window',
|
||||
'search_view_id': id['res_id'],
|
||||
|
|
|
@ -113,7 +113,7 @@ class stock_sale_forecast_createlines(osv.osv_memory):
|
|||
return {
|
||||
'domain': "[('id','in', ["+','.join(map(str, forecast_lines))+"])]",
|
||||
'view_type': 'form',
|
||||
"view_mode": 'tree',
|
||||
"view_mode": 'tree, form',
|
||||
'res_model': 'stock.sale.forecast',
|
||||
'type': 'ir.actions.act_window',
|
||||
'search_view_id': id['res_id'],
|
||||
|
|
Loading…
Reference in New Issue