From fcc61053af3882d25b0a23c853ba7e686aae0cb7 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Sat, 27 Apr 2013 12:24:49 +0200 Subject: [PATCH] [RFR] Update comment --- account_banking/account_banking.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/account_banking/account_banking.py b/account_banking/account_banking.py index fb5477e1c..f3e6705e6 100644 --- a/account_banking/account_banking.py +++ b/account_banking/account_banking.py @@ -359,14 +359,6 @@ class account_bank_statement(orm.Model): def create_move_from_st_line(self, cr, uid, st_line_id, company_currency_id, st_line_number, context=None): - # This is largely a copy of the original code in account - # Modifications are marked with AB - # Modifications by account_voucher are merged below. - # As there is no valid inheritance mechanism for large actions, this - # is the only option to add functionality to existing actions. - # WARNING: when the original code changes, this trigger has to be - # updated in sync. - if context is None: context = {} account_move_obj = self.pool.get('account.move') @@ -376,15 +368,13 @@ class account_bank_statement(orm.Model): st_line = account_bank_statement_line_obj.browse( cr, uid, st_line_id, context=context) - # AB: take period from statement line and write to context + # Take period from statement line and write to context # this will be picked up by the _prepare_move* methods period_id = self._get_period( cr, uid, st_line.date, context=context) localctx = context.copy() localctx['period_id'] = period_id - # --AB - # AB: Take account_voucher into account: # Write date & period on the voucher, delegate to account_voucher's # override of this method. Then post the related move and return. if st_line.voucher_id: