STOCK: small fix on report stock by location

bzr revid: ced-b44b7e9c610b71c799e07aff1f0cc33e6934dabf
This commit is contained in:
ced 2007-04-24 06:14:13 +00:00
parent 6c5be5bc57
commit 197647045d
2 changed files with 4 additions and 16 deletions

View File

@ -6,16 +6,11 @@ class lot_location(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(lot_location, self).__init__(cr, uid, name, context)
self.ret_list=[]
print "Init Repot::",
self.localcontext.update({
'time': time,
'process':self.process,
})
#self.context = context
def preprocess(self, objects, data, ids):
print "Records for process ............",ids;
super(lot_location, self).preprocess(objects, data, ids)
def process(self,location_id):
ret_dict = {'location_name':''};
@ -45,10 +40,5 @@ class lot_location(report_sxw.rml_parse):
return self.ret_list
# for location_id in self.ids:
# process(location_id, 0,[])
# print "Last ret::",self.ret_list
# return self.ret_list
report_sxw.report_sxw('report.lot.location', 'stock.location', 'addons/stock/report/lot_location.rml', parser=lot_location)

View File

@ -35,7 +35,8 @@
<paraStyle name="P3" fontName="Times-BoldItalic" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/>
<paraStyle name="P4" fontName="Times-Roman" fontSize="10.0" leading="13" spaceBefore="0.0" spaceAfter="6.0"/>
<paraStyle name="P5" fontName="Times-Roman" fontSize="10.0" leading="13" spaceBefore="0.0" spaceAfter="6.0"/>
<paraStyle name="P6" fontName="Times-Roman" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/>
<paraStyle name="P6" fontName="Times-Roman" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="6.0"/>
<paraStyle name="P7" fontName="Times-Roman" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="6.0"/>
<paraStyle name="Standard" fontName="Times-Roman"/>
<paraStyle name="Text body" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
<paraStyle name="List" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
@ -63,9 +64,6 @@
</tr>
</blockTable>
<para style="P2">[[ repeatIn(objects,'o') ]]</para>
<para style="P2">
<font color="white"> </font>
</para>
<section>
<section>
<blockTable colWidths="201.0,327.0" repeatRows="1" style="Table2">
@ -86,13 +84,13 @@
</td>
</tr>
</blockTable>
<para style="Table Contents">
<para style="P6">
<font color="white"> </font>
</para>
</td>
</tr>
</blockTable>
<para style="P6">
<para style="P7">
<font color="white"> </font>
</para>
</section>