bugfix
[odoo/odoo.git] / addons / auction / report / lots_list_inventory.py
1 # -*- encoding: utf-8 -*-
2 ##############################################################################
3 #
4 # Copyright (c) 2004-2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
5 #
6 # WARNING: This program as such is intended to be used by professional
7 # programmers who take the whole responsability of assessing all potential
8 # consequences resulting from its eventual inadequacies and bugs
9 # End users who are looking for a ready-to-use solution with commercial
10 # garantees and support are strongly adviced to contract a Free Software
11 # Service Company
12 #
13 # This program is Free Software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License
15 # as published by the Free Software Foundation; either version 2
16 # of the License, or (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 # GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program; if not, write to the Free Software
25 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
26 #
27 ##############################################################################
28
29 import pooler
30 import time
31 from report import report_sxw
32
33 class lots_list_inventory(report_sxw.rml_parse):
34     def __init__(self, cr, uid, name, context):
35         super(lots_list_inventory, self).__init__(cr, uid, name, context)
36         self.localcontext.update({
37             'time': time,
38             'bid_line' : self.bid_line
39         })
40     def bid_line(self, lot_id):
41         res = self.pool.get('auction.bid.lines').read(self.cr,self.uid,[lot_id])
42         print res;
43         print "=================================================="
44         return True
45 report_sxw.report_sxw('report.lots.list.inventory', 'auction.lots', 'addons/auction/report/lots_list_inventory.rml', parser=lots_list_inventory)
46
47 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
48