[IMP] add one second to second delivery order to be sure is later, check filter in moves remaining and add inventory value on stock move report

bzr revid: jco@openerp.com-20130525144900-g2yvo25jjjubakgf
This commit is contained in:
Josse Colpaert
2013-05-25 16:49:00 +02:00
parent 7475d54cb5
commit 9122d7fe12
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -329,6 +329,8 @@
line = self.browse(cr, uid, partial_id, context=context).move_ids[0]
self.pool.get("stock.partial.picking.line").write(cr, uid, [line.id], {'quantity':50})
self.do_partial(cr, uid, [partial_id])
from datetime import *
self.pool.get("stock.move").write(cr, uid, [ref("outgoing_shipment_fifo_icecream_neg2")], {'date': (datetime.now()+timedelta(seconds=1)).strftime('%Y-%m-%d %H:%M:%S')})
-
Print price
-
@@ -211,6 +211,7 @@
<field name="product_qty" sum="Total quantity"/>
<field name="fifo_value" sum="Total FIFO value"/>
<field name="avg_value" sum="Total AVG value"/>
<field name="inventory_value" sum="Inventory value"/>
</tree>
</field>
</record>
@@ -248,7 +249,7 @@
<field name="location_type"/>
<field name="date"/>
<filter icon="terp-go-home" name="location_type_scrap" string="Scrap" domain="[('scrap_location','=','True')]"/>
<filter name="inmovesremaining" string="In moves remaining" domain="[('location_src_type','!=','internal'), ('location_dest_type','=', 'internal'), ()]"/>
<filter name="inmovesremaining" string="In moves remaining" domain="[('location_src_type','!=','internal'), ('location_dest_type','=', 'internal'), ('qty_remaining', '>', 0.0)]"/>
</group>
<group expand="1" string="Group By..." >
<filter string="Partner" name="group_partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>