diff --git a/addons/auction/__terp__.py b/addons/auction/__terp__.py
index 867cda476f7..8918a6394aa 100644
--- a/addons/auction/__terp__.py
+++ b/addons/auction/__terp__.py
@@ -38,7 +38,7 @@
'init_xml': ['auction_sequence.xml'],
'update_xml': [
'security/ir.model.access.csv',
- 'wizard/auction_lots_cancel_view.xml',
+# 'wizard/auction_lots_cancel_view.xml',
# 'wizard/auction_transfer_unsold_object_view.xml',
'wizard/auction_lots_able_view.xml',
'wizard/auction_lots_enable_view.xml',
diff --git a/addons/auction/wizard/__init__.py b/addons/auction/wizard/__init__.py
index 9303c86818b..957ab02b053 100644
--- a/addons/auction/wizard/__init__.py
+++ b/addons/auction/wizard/__init__.py
@@ -29,7 +29,7 @@ import auction_pay_buy
import auction_payer_sel
import auction_lots_sms_send
import auction_catalog_flagey_report
-import auction_lots_cancel
+#import auction_lots_cancel
#import auction_transfer_unsold_object
#import auction_aie_send_result
import auction_lots_buyer_map
diff --git a/addons/auction/wizard/auction_lots_cancel.py b/addons/auction/wizard/auction_lots_cancel.py
index 117f9b5eb78..edf530ac8aa 100644
--- a/addons/auction/wizard/auction_lots_cancel.py
+++ b/addons/auction/wizard/auction_lots_cancel.py
@@ -29,7 +29,7 @@ class auction_lots_cancel(osv.osv):
_name = 'auction.lots.cancel'
_description = 'To cancel auction lots.'
- def _cancel(self, cr, uid, ids, context):
+ def cancel(self, cr, uid, ids, context):
"""
To cancel the auction lot
@@ -45,13 +45,11 @@ class auction_lots_cancel(osv.osv):
invoice_obj = self.pool.get('account.invoice')
lot = lots_obj.browse(cr,uid,context['active_id'],context)
if lot.ach_inv_id:
- p = invoice_obj.refund(['lot.ach_inv_id.id'],context)
- if lot.vnd_inv_id:
- p = invoice_obj.refund(['lot.vnd_inv_id.id'],context)
+ supplier_refund_inv_id = invoice_obj.refund(cr, uid,[lot.ach_inv_id.id])
+ if lot.sel_inv_id:
+ customer_refund_inv_id = invoice_obj.refund(cr, uid,[lot.sel_inv_id.id])
return {}
_columns = {
-
-
}
auction_lots_cancel()
\ No newline at end of file
diff --git a/addons/auction/wizard/auction_lots_cancel_view.xml b/addons/auction/wizard/auction_lots_cancel_view.xml
index e80222b1e71..77ff6a373b7 100644
--- a/addons/auction/wizard/auction_lots_cancel_view.xml
+++ b/addons/auction/wizard/auction_lots_cancel_view.xml
@@ -10,12 +10,18 @@
-
-
+