From a3417cd70750927b726bb9a0ab71787d852ec8f3 Mon Sep 17 00:00:00 2001 From: "Mayur Maheshwari (OpenERP)" Date: Tue, 15 Nov 2011 17:25:43 +0530 Subject: [PATCH] [IMP]account_payment: highlight a file and code which is not used and put a nolabel and seperoter on many2many filed bzr revid: mma@tinyerp.com-20111115115543-uskt6i3dyabj7im5 --- addons/account_payment/__openerp__.py | 2 +- addons/account_payment/account_payment.py | 4 +++- .../test/{ => process}/account_payment_report.yml | 0 .../wizard/account_payment_create_order_view.xml | 3 ++- addons/account_payment/wizard/account_payment_pay.py | 2 +- addons/account_payment/wizard/account_payment_pay_view.xml | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) rename addons/account_payment/test/{ => process}/account_payment_report.yml (100%) diff --git a/addons/account_payment/__openerp__.py b/addons/account_payment/__openerp__.py index 5529e7cc0e5..d5d8aa915ec 100644 --- a/addons/account_payment/__openerp__.py +++ b/addons/account_payment/__openerp__.py @@ -55,7 +55,7 @@ This module provides : 'test/process/draft2done_payment_order.yml', 'test/process/draft2valid_bank_statement.yml', 'test/ui/payment_order_form.yml', - 'test/account_payment_report.yml' + 'test/process/account_payment_report.yml' ], 'installable': True, 'active': False, diff --git a/addons/account_payment/account_payment.py b/addons/account_payment/account_payment.py index 9858d536d17..d5c04fee07c 100644 --- a/addons/account_payment/account_payment.py +++ b/addons/account_payment/account_payment.py @@ -68,6 +68,7 @@ class payment_order(osv.osv): _rec_name = 'reference' _order = 'id desc' +#TODO:REMOVE this function is not used def get_wizard(self, type): logger = netsvc.Logger() logger.notifyChannel("warning", netsvc.LOG_WARNING, @@ -174,7 +175,7 @@ payment_order() class payment_line(osv.osv): _name = 'payment.line' - _description = 'Payment Line' + _description = 'Payment Line' def translate(self, orig): return { @@ -235,6 +236,7 @@ class payment_line(osv.osv): break return result + #TODO:REMOVE this function is not used def select_by_name(self, cr, uid, ids, name, args, context=None): if not ids: return {} partner_obj = self.pool.get('res.partner') diff --git a/addons/account_payment/test/account_payment_report.yml b/addons/account_payment/test/process/account_payment_report.yml similarity index 100% rename from addons/account_payment/test/account_payment_report.yml rename to addons/account_payment/test/process/account_payment_report.yml diff --git a/addons/account_payment/wizard/account_payment_create_order_view.xml b/addons/account_payment/wizard/account_payment_create_order_view.xml index c454a84bffd..538d32efe80 100644 --- a/addons/account_payment/wizard/account_payment_create_order_view.xml +++ b/addons/account_payment/wizard/account_payment_create_order_view.xml @@ -27,7 +27,8 @@
- + + diff --git a/addons/account_payment/wizard/account_payment_pay.py b/addons/account_payment/wizard/account_payment_pay.py index ca9311b1f88..922da187612 100644 --- a/addons/account_payment/wizard/account_payment_pay.py +++ b/addons/account_payment/wizard/account_payment_pay.py @@ -20,7 +20,7 @@ ############################################################################## from osv import osv - +#TODO:REMOVE this wizard is not used class account_payment_make_payment(osv.osv_memory): _name = "account.payment.make.payment" _description = "Account make payment" diff --git a/addons/account_payment/wizard/account_payment_pay_view.xml b/addons/account_payment/wizard/account_payment_pay_view.xml index 3d732aea6e2..a8835e0da8f 100644 --- a/addons/account_payment/wizard/account_payment_pay_view.xml +++ b/addons/account_payment/wizard/account_payment_pay_view.xml @@ -1,7 +1,7 @@ - + account.payment.make.payment.form account.payment.make.payment