[IMP] stock: Add the action for incoming and outgoing delay product
bzr revid: sbh@tinyerp.com-20101004132132-2ljae0lzcf6bvnz8
This commit is contained in:
parent
fc8f5385d6
commit
6fda596166
|
@ -25,7 +25,23 @@
|
|||
<field name="domain">['|','&',('picking_id','=',False),('location_dest_id.usage', 'in', ['customer','supplier']),'&',('picking_id','!=',False),('picking_id.type','=','out')]</field>
|
||||
<field name="view_id" ref="stock.view_move_tree_reception_picking_board"/>
|
||||
</record>
|
||||
|
||||
|
||||
<record model="ir.actions.act_window" id="action_stock_incoming_product_delay">
|
||||
<field name="res_model">report.stock.move</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">graph,tree</field>
|
||||
<field name="domain">[('type','=','in'),('day','<=', time.strftime('%%Y-%%m-%%d')), ('day','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]</field>
|
||||
<field name="view_id" ref="stock.view_stock_graph"></field>
|
||||
<field name="context">{'group_by':['day'], 'group_by_no_leaf':1}</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="action_stock_outgoing_product_delay">
|
||||
<field name="res_model">report.stock.move</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">graph,tree</field>
|
||||
<field name="domain">[('type','=','out'),('day','<=', time.strftime('%%Y-%%m-%%d')), ('day','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]</field>
|
||||
<field name="view_id" ref="stock.view_stock_graph"></field>
|
||||
<field name="context">{'group_by':['day'], 'group_by_no_leaf':1}</field>
|
||||
</record>
|
||||
<record id="board_warehouse_form" model="ir.ui.view">
|
||||
<field name="name">board.warehouse.form</field>
|
||||
<field name="model">board.board</field>
|
||||
|
@ -39,7 +55,8 @@
|
|||
</child1>
|
||||
|
||||
<child2>
|
||||
|
||||
<action colspan="4" name="%(action_stock_incoming_product_delay)d" string="Incoming Products Delay" width="510"/>
|
||||
<action colspan="4" name="%(action_stock_outgoing_product_delay)d" string="Outgoing Products delay" width="510"/>
|
||||
</child2>
|
||||
</hpaned>
|
||||
</form>
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
<field name="type">graph</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Moves Analysis" type="bar">
|
||||
<field name="day" group="True"/>
|
||||
<field name="product_id"/>
|
||||
<field name="day_diff2" operator="+"/>
|
||||
</graph>
|
||||
|
|
|
@ -1731,7 +1731,7 @@
|
|||
<field name="type">tree</field>
|
||||
<field eval="6" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree colors="grey:state in ('cancel')" string="Moves">
|
||||
<tree string="Moves">
|
||||
<field name="picking_id" string="Reference"/>
|
||||
<field name="partner_id" string="Partner"/>
|
||||
<field name="product_id"/>
|
||||
|
|
Loading…
Reference in New Issue