← Back to team overview

banking-addons-team team mailing list archive

lp:~akretion-team/banking-addons/bank-statement-reconcile-70-api-improvement into lp:banking-addons/bank-statement-reconcile-7.0

 

Sébastien BEAU - http://www.akretion.com has proposed merging lp:~akretion-team/banking-addons/bank-statement-reconcile-70-api-improvement into lp:banking-addons/bank-statement-reconcile-7.0.

Requested reviews:
  Guewen Baconnier @ Camptocamp (gbaconnier-c2c)

For more details, see:
https://code.launchpad.net/~akretion-team/banking-addons/bank-statement-reconcile-70-api-improvement/+merge/197774

Hi
I just made some change so it's easier to inherit the actual method.
-- 
https://code.launchpad.net/~akretion-team/banking-addons/bank-statement-reconcile-70-api-improvement/+merge/197774
Your team Banking Addons Core Editors is subscribed to branch lp:banking-addons/bank-statement-reconcile-7.0.
=== modified file 'account_statement_base_completion/statement.py'
--- account_statement_base_completion/statement.py	2013-10-16 08:58:12 +0000
+++ account_statement_base_completion/statement.py	2013-12-04 18:02:48 +0000
@@ -125,7 +125,7 @@
     _name = "account.statement.completion.rule"
     _order = "sequence asc"
 
-    def _get_functions(self, cr, uid, context=None):
+    def get_functions(self, cr, uid, context=None):
         """
         List of available methods for rules. Override this to add you own.
         """
@@ -136,6 +136,12 @@
             ('get_from_label_and_partner_field', 'From line label (based on partner field)'),
             ('get_from_label_and_partner_name', 'From line label (based on partner name)')]
 
+    def _get_functions(self, cr, uid, context=None):
+        """
+        Call method which can be inherited
+        """
+        return self.get_functions(cr, uid, context=context)
+
     _columns = {
         'sequence': fields.integer('Sequence', help="Lower means parsed first."),
         'name': fields.char('Name', size=128),

=== modified file 'account_statement_base_import/statement.py'
--- account_statement_base_import/statement.py	2013-09-12 09:05:01 +0000
+++ account_statement_base_import/statement.py	2013-12-04 18:02:48 +0000
@@ -37,6 +37,12 @@
         """
         return [('generic_csvxls_so', 'Generic .csv/.xls based on SO Name')]
 
+    def _get_import_type_selection(self, cr, uid, context=None):
+        """
+        Call method which can be inherited
+        """
+        return self.get_import_type_selection(cr, uid, context=context)
+
     _columns = {
         'launch_import_completion': fields.boolean(
             "Launch completion after import",
@@ -46,7 +52,7 @@
         #  we remove deprecated as it floods logs in standard/warning level sob...
         'rec_log': fields.text('log', readonly=True),  # Deprecated
         'import_type': fields.selection(
-            get_import_type_selection,
+            _get_import_type_selection,
             'Type of import',
             required=True,
             help="Choose here the method by which you want to import bank"


Follow ups