[IMP]: auction,delivery: fields_list variable has been changed to fields
bzr revid: mso@mso-20100322130058-3ya7mwxa858cbvfi
This commit is contained in:
parent
99a905c1af
commit
6f4bf9dd9f
|
@ -39,7 +39,7 @@ class auction_catalog_flagey(osv.osv_memory):
|
|||
res = super(auction_catalog_flagey, self).default_get(cr, uid, fields, context=context)
|
||||
return res
|
||||
|
||||
def view_init(self, cr, uid, fields_list, context):
|
||||
def view_init(self, cr, uid, fields, context):
|
||||
current_auction = self.pool.get('auction.dates').browse(cr,uid,context.get('active_ids', []))
|
||||
v_lots = self.pool.get('auction.lots').search(cr,uid,[('auction_id','=',current_auction.id)])
|
||||
v_ids = self.pool.get('auction.lots').browse(cr,uid,v_lots)
|
||||
|
|
|
@ -53,7 +53,7 @@ class make_delivery(osv.osv_memory):
|
|||
res.update({'carrier_id': order.partner_id.property_delivery_carrier.id})
|
||||
return res
|
||||
|
||||
def view_init(self, cr , uid , fields_list, context=None):
|
||||
def view_init(self, cr , uid , fields, context=None):
|
||||
order_obj = self.pool.get('sale.order')
|
||||
for order in order_obj.browse(cr, uid, context.get('active_ids', [])):
|
||||
if not order.state in ('draft'):
|
||||
|
|
Loading…
Reference in New Issue