← Back to team overview

banking-addons-team team mailing list archive

[Merge] lp:~pedro.baeza/banking-addons/bank-statement-reconcile-7.0-base_completion_imp into lp:banking-addons/bank-statement-reconcile-7.0

 

Pedro Manuel Baeza has proposed merging lp:~pedro.baeza/banking-addons/bank-statement-reconcile-7.0-base_completion_imp into lp:banking-addons/bank-statement-reconcile-7.0.

Requested reviews:
  Banking Addons Core Editors (banking-addons-team)

For more details, see:
https://code.launchpad.net/~pedro.baeza/banking-addons/bank-statement-reconcile-7.0-base_completion_imp/+merge/222356

[IMP] account_statement_base_completion: Overridable method for get completion rules.
-- 
https://code.launchpad.net/~pedro.baeza/banking-addons/bank-statement-reconcile-7.0-base_completion_imp/+merge/222356
Your team Banking Addons Core Editors is requested to review the proposed merge of lp:~pedro.baeza/banking-addons/bank-statement-reconcile-7.0-base_completion_imp into lp:banking-addons/bank-statement-reconcile-7.0.
=== modified file 'account_statement_base_completion/statement.py'
--- account_statement_base_completion/statement.py	2014-05-14 15:45:12 +0000
+++ account_statement_base_completion/statement.py	2014-06-06 15:28:51 +0000
@@ -139,6 +139,10 @@
             ('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):
+        """Internal method. Do not override."""
+        return self._get_functions(cr, uid, context=context)
+
     _columns = {
         'sequence': fields.integer('Sequence', help="Lower means parsed first."),
         'name': fields.char('Name', size=128),
@@ -146,7 +150,7 @@
             'account.statement.profile',
             rel='as_rul_st_prof_rel',
             string='Related statement profiles'),
-        'function_to_call': fields.selection(_get_functions, 'Method'),
+        'function_to_call': fields.selection(__get_functions, 'Method'),
     }
 
     def _find_invoice(self, cr, uid, st_line, inv_type, context=None):


Follow ups