diff --git a/account_advanced_reconcile/advanced_reconciliation.py b/account_advanced_reconcile/advanced_reconciliation.py index dfdb8883..3ea3239d 100644 --- a/account_advanced_reconcile/advanced_reconciliation.py +++ b/account_advanced_reconcile/advanced_reconciliation.py @@ -38,7 +38,7 @@ class easy_reconcile_advanced_ref(TransientModel): def _matchers(self, cr, uid, rec, move_line, context=None): """ - Return the values used as matchers to found the opposite lines + Return the values used as matchers to find the opposite lines All the matcher keys in the dict must have their equivalent in the `_opposite_matchers`. @@ -48,7 +48,7 @@ class easy_reconcile_advanced_ref(TransientModel): Must be inherited to implement the matchers for one method - As instance, it can returns: + For instance, it can return: return ('ref', move_line['rec']) or @@ -58,7 +58,7 @@ class easy_reconcile_advanced_ref(TransientModel): All the matchers have to be found in the opposite lines to consider them as "opposite" - The matchers will be evaluated in the same order than declared + The matchers will be evaluated in the same order as declared vs the the opposite matchers, so you can gain performance by declaring first the partners with the less computation. @@ -87,7 +87,7 @@ class easy_reconcile_advanced_ref(TransientModel): This method is the counterpart of the `_matchers()` method. - Each matcher have to yield its value respecting the orders + Each matcher has to yield its value respecting the order of the `_matchers()`. When a matcher does not correspond, the next matchers won't diff --git a/account_advanced_reconcile/base_advanced_reconciliation.py b/account_advanced_reconcile/base_advanced_reconciliation.py index df26708c..ebb048f7 100644 --- a/account_advanced_reconcile/base_advanced_reconciliation.py +++ b/account_advanced_reconcile/base_advanced_reconciliation.py @@ -64,7 +64,7 @@ class easy_reconcile_advanced(AbstractModel): def _matchers(self, cr, uid, rec, move_line, context=None): """ - Return the values used as matchers to found the opposite lines + Return the values used as matchers to find the opposite lines All the matcher keys in the dict must have their equivalent in the `_opposite_matchers`. @@ -74,7 +74,7 @@ class easy_reconcile_advanced(AbstractModel): Must be inherited to implement the matchers for one method - As instance, it can returns: + As instance, it can return: return ('ref', move_line['rec']) or @@ -84,7 +84,7 @@ class easy_reconcile_advanced(AbstractModel): All the matchers have to be found in the opposite lines to consider them as "opposite" - The matchers will be evaluated in the same order than declared + The matchers will be evaluated in the same order as declared vs the the opposite matchers, so you can gain performance by declaring first the partners with the less computation. @@ -112,7 +112,7 @@ class easy_reconcile_advanced(AbstractModel): This method is the counterpart of the `_matchers()` method. - Each matcher have to yield its value respecting the orders + Each matcher has to yield its value respecting the order of the `_matchers()`. When a matcher does not correspond, the next matchers won't diff --git a/account_statement_base_import/statement.py b/account_statement_base_import/statement.py index 2c1dcc86..25999163 100644 --- a/account_statement_base_import/statement.py +++ b/account_statement_base_import/statement.py @@ -78,9 +78,11 @@ class AccountStatementProfil(Model): def prepare_global_commission_line_vals(self, cr, uid, parser, result_row_list, profile, statement_id, context): """ - Prepare the global commission line if there is one. The global commission is computed by - by calling the get_st_line_commision of the parser. Feel free to override the methode to compute + Prepare the global commission line if there is one. The global + commission is computed by by calling the get_st_line_commision + of the parser. Feel free to override the method to compute your own commission line from the result_row_list. + :param: browse_record of the current parser :param: result_row_list: [{'key':value}] :param: profile: browserecord of account.statement.profile