[IMP]account_payment: highlight a file and code which is not used and put a nolabel...
authorMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Tue, 15 Nov 2011 11:55:43 +0000 (17:25 +0530)
committerMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Tue, 15 Nov 2011 11:55:43 +0000 (17:25 +0530)
bzr revid: mma@tinyerp.com-20111115115543-uskt6i3dyabj7im5

addons/account_payment/__openerp__.py
addons/account_payment/account_payment.py
addons/account_payment/test/account_payment_report.yml [deleted file]
addons/account_payment/test/process/account_payment_report.yml [new file with mode: 0644]
addons/account_payment/wizard/account_payment_create_order_view.xml
addons/account_payment/wizard/account_payment_pay.py
addons/account_payment/wizard/account_payment_pay_view.xml

index 5529e7c..d5d8aa9 100644 (file)
@@ -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,
index 9858d53..d5c04fe 100644 (file)
@@ -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/account_payment_report.yml
deleted file mode 100644 (file)
index 45022e1..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
--
-  In order to test the PDF reports defined on Account Payment, Print a Payment Order
-- 
-  !python {model: payment.order}: |
-    import netsvc, tools, os
-    (data, format) = netsvc.LocalService('report.payment.order').create(cr, uid, [ref('account_payment.payment_order_1')], {}, {})
-    if tools.config['test_report_directory']:
-        file(os.path.join(tools.config['test_report_directory'], 'account_payment-payment_order_report.'+format), 'wb+').write(data)
\ No newline at end of file
diff --git a/addons/account_payment/test/process/account_payment_report.yml b/addons/account_payment/test/process/account_payment_report.yml
new file mode 100644 (file)
index 0000000..45022e1
--- /dev/null
@@ -0,0 +1,8 @@
+-
+  In order to test the PDF reports defined on Account Payment, Print a Payment Order
+- 
+  !python {model: payment.order}: |
+    import netsvc, tools, os
+    (data, format) = netsvc.LocalService('report.payment.order').create(cr, uid, [ref('account_payment.payment_order_1')], {}, {})
+    if tools.config['test_report_directory']:
+        file(os.path.join(tools.config['test_report_directory'], 'account_payment-payment_order_report.'+format), 'wb+').write(data)
\ No newline at end of file
index c454a84..538d32e 100644 (file)
@@ -27,7 +27,8 @@
             <field name="arch" type="xml">
                 <form string="Search Payment lines">
                     <group col="4" colspan="6">
-                        <field name="entries"/>
+                        <separator colspan="4" string="Entries"/>
+                        <field name="entries" nolabel="1"/>
                     </group>
                     <separator colspan="4"/>
                     <group col="2" colspan="4">
index ca9311b..922da18 100644 (file)
@@ -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"
index 3d732ae..a8835e0 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
      <data>
-
+        <!-- TODO:REMOVE this wizard is not used  -->
         <record id="account_payment_make_payment_view" model="ir.ui.view">
              <field name="name">account.payment.make.payment.form</field>
              <field name="model">account.payment.make.payment</field>