diff --git a/addons/auction/wizard/auction_catalog_flagey_report.py b/addons/auction/wizard/auction_catalog_flagey_report.py index 117389770da..119c3273ee0 100644 --- a/addons/auction/wizard/auction_catalog_flagey_report.py +++ b/addons/auction/wizard/auction_catalog_flagey_report.py @@ -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) diff --git a/addons/delivery/wizard/delivery_sale_order.py b/addons/delivery/wizard/delivery_sale_order.py index 5cbc5ea692f..efc82ae4141 100644 --- a/addons/delivery/wizard/delivery_sale_order.py +++ b/addons/delivery/wizard/delivery_sale_order.py @@ -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'):