diff --git a/account_advanced_reconcile/base_advanced_reconciliation.py b/account_advanced_reconcile/base_advanced_reconciliation.py index 4a4a8903..e6f8ced9 100644 --- a/account_advanced_reconcile/base_advanced_reconciliation.py +++ b/account_advanced_reconcile/base_advanced_reconciliation.py @@ -209,12 +209,11 @@ class easy_reconcile_advanced(orm.AbstractModel): def _search_opposites(self, cr, uid, rec, move_line, opposite_move_lines, context=None): - """ - Search the opposite move lines for a move line + """Search the opposite move lines for a move line :param dict move_line: the move line for which we search opposites - :param list opposite_move_lines: list of dict of move lines values, \ - the move lines we want to search for + :param list opposite_move_lines: list of dict of move lines values, + the move lines we want to search for :return: list of matching lines """ matchers = self._matchers(cr, uid, rec, move_line, context=context) diff --git a/account_statement_base_import/parser/file_parser.py b/account_statement_base_import/parser/file_parser.py index 8f38efe9..e7d050a6 100644 --- a/account_statement_base_import/parser/file_parser.py +++ b/account_statement_base_import/parser/file_parser.py @@ -44,12 +44,12 @@ class FileParser(BankStatementImportParser): **kwargs): """ :param char: parse_name: The name of the parser - :param char: ftype: extension of the file (could be csv, xls or \ - xlsx) - :param dict: extra_fields: extra fields to add to the conversion \ - dict. In the format {fieldname: fieldtype} - :param list: header : specify header fields if the csv file has no \ - header + :param char: ftype: extension of the file (could be csv, xls or + xlsx) + :param dict: extra_fields: extra fields to add to the conversion + dict. In the format {fieldname: fieldtype} + :param list: header : specify header fields if the csv file has no + header """ super(FileParser, self).__init__(parse_name, **kwargs) if ftype in ('csv', 'xls', 'xlsx'): diff --git a/account_statement_base_import/parser/generic_file_parser.py b/account_statement_base_import/parser/generic_file_parser.py index a65aff60..710c5595 100644 --- a/account_statement_base_import/parser/generic_file_parser.py +++ b/account_statement_base_import/parser/generic_file_parser.py @@ -45,10 +45,10 @@ class GenericFileParser(FileParser): method of statement line in order to record it. It is the responsibility of every parser to give this dict of vals, so each one can implement his own way of recording the lines. - :param: line: a dict of vals that represent a line of \ - result_row_list - :return: dict of values to give to the create method of statement \ - line, it MUST contain at least: + :param: line: a dict of vals that represent a line of + result_row_list + :return: dict of values to give to the create method of statement + line, it MUST contain at least: { 'name':value, 'date':value, diff --git a/account_statement_base_import/parser/parser.py b/account_statement_base_import/parser/parser.py index 08c97027..6a9be611 100644 --- a/account_statement_base_import/parser/parser.py +++ b/account_statement_base_import/parser/parser.py @@ -133,8 +133,8 @@ class BankStatementImportParser(object): so each one can implement his own way of recording the lines. :param: line: a dict of vals that represent a line of result_row_list - :return: dict of values to give to the create method of statement line,\ - it MUST contain at least: + :return: dict of values to give to the create method of statement line, + it MUST contain at least: { 'name':value, 'date':value, diff --git a/account_statement_base_import/statement.py b/account_statement_base_import/statement.py index dd3c7ba2..2bacb45c 100644 --- a/account_statement_base_import/statement.py +++ b/account_statement_base_import/statement.py @@ -70,8 +70,8 @@ class AccountStatementProfil(orm.Model): :param: browse_record of the current parser :param: result_row_list: [{'key':value}] :param: profile: browserecord of account.statement.profile - :param: statement_id: int/long of the current importing \ - statement ID + :param: statement_id: int/long of the current importing + statement ID :param: context: global context """ pass @@ -100,11 +100,11 @@ class AccountStatementProfil(orm.Model): At least it fullfill the statement_id. Overide it to add your own completion if needed. - :param dict of vals from parser for account.bank.statement.line \ - (called by parser.get_st_line_vals) + :param dict of vals from parser for account.bank.statement.line + (called by parser.get_st_line_vals) :param int/long statement_id: ID of the concerned account.bank.statement - :return: dict of vals that will be passed to create method of \ - statement line. + :return: dict of vals that will be passed to create method of + statement line. """ statement_line_obj = self.pool['account.bank.statement.line'] values = parser_vals diff --git a/account_statement_ext/statement.py b/account_statement_ext/statement.py index dc32fd09..68d2eb72 100644 --- a/account_statement_ext/statement.py +++ b/account_statement_ext/statement.py @@ -267,10 +267,10 @@ class AccountBankStatement(orm.Model): def _prepare_move(self, cr, uid, st_line, st_line_number, context=None): """Add the period_id from the statement line date to the move preparation. Originaly, it was taken from the statement period_id - :param browse_record st_line: account.bank.statement.line record \ - to create the move from. - :param char st_line_number: will be used as the name of the \ - generated account move + :param browse_record st_line: account.bank.statement.line record + to create the move from. + :param char st_line_number: will be used as the name of the + generated account move :return: dict of value to create() the account.move """ if context is None: @@ -290,20 +290,20 @@ class AccountBankStatement(orm.Model): """Add the period_id from the statement line date to the move preparation. Originaly, it was taken from the statement period_id - :param browse_record st_line: account.bank.statement.line record \ - to create the move from. - :param int/long move_id: ID of the account.move to link the move \ - line + :param browse_record st_line: account.bank.statement.line record + to create the move from. + :param int/long move_id: ID of the account.move to link the move + line :param float debit: debit amount of the move line :param float credit: credit amount of the move line - :param int/long currency_id: ID of currency of the move line to \ - create - :param float amount_currency: amount of the debit/credit expressed \ - in the currency_id - :param int/long account_id: ID of the account to use in the move \ - line if different from the statement line account ID - :param int/long analytic_id: ID of analytic account to put on the \ - move line + :param int/long currency_id: ID of currency of the move line to + create + :param float amount_currency: amount of the debit/credit expressed + in the currency_id + :param int/long account_id: ID of the account to use in the move + line if different from the statement line account ID + :param int/long analytic_id: ID of analytic account to put on the + move line :param int/long partner_id: ID of the partner to put on the move line :return: dict of value to create() the account.move.line """ @@ -330,8 +330,8 @@ class AccountBankStatement(orm.Model): the credit move line for the choosen partner_id => This will ease the reconciliation process with the bank as the partner will match the bank statement line - :param browse_record st_line: account.bank.statement.line record to \ - create the move from. + :param browse_record st_line: account.bank.statement.line record to + create the move from. :return: int/long of the res.partner to use as counterpart """ bank_partner_id = super(AccountBankStatement, self @@ -348,8 +348,8 @@ class AccountBankStatement(orm.Model): the profile. :param: date: date of the statement used to compute the right period - :param: int/long: profile_id: the account.statement.profile ID from \ - which to take the bank_statement_prefix for the name + :param: int/long: profile_id: the account.statement.profile ID from + which to take the bank_statement_prefix for the name :return: char: name of the bank statement (st_number) """ year = self.pool['account.period'].browse( @@ -483,8 +483,8 @@ class AccountBankStatement(orm.Model): If amount is negativ, the type supplier :param float: amount of the line :param int/long: partner_id the partner id - :return: type as string: the default type to use: 'customer' or \ - 'supplier'. + :return: type as string: the default type to use: 'customer' or + 'supplier'. """ s_line_type = self._compute_type_from_amount(cr, uid, amount) if partner_id: @@ -517,10 +517,10 @@ class AccountBankStatement(orm.Model): :param int/long: account_receivable the receivable account :param int/long: account_payable the payable account :param int/long: partner_id the partner id - :return: dict with [account_id as int/long,type as string]: the \ - default account to be used by statement line as the counterpart of \ - the journal account depending on the amount and the type as \ - 'customer' or 'supplier'. + :return: dict with [account_id as int/long,type as string]: the + default account to be used by statement line as the counterpart of + the journal account depending on the amount and the type as + 'customer' or 'supplier'. """ account_id = False ltype = self.get_type_for_counterpart( @@ -656,8 +656,8 @@ class AccountBankStatementLine(orm.Model): :param int/long partner_id of the line :param char line_type: a value from: 'general', 'supplier', 'customer' :param float: amount of the line - :return: A dict of value that can be passed directly to the write \ - method of the statement line: + :return: A dict of value that can be passed directly to the write + method of the statement line: {'partner_id': value, 'account_id' : value, 'type' : value, diff --git a/account_statement_one_move/statement.py b/account_statement_one_move/statement.py index 23c096fc..b4d47a93 100644 --- a/account_statement_one_move/statement.py +++ b/account_statement_one_move/statement.py @@ -95,10 +95,10 @@ class AccountBankStatement(orm.Model): """Create the account move line from the statement line. :param int/long move_id: ID of the account.move - :param int/long st_line_id: ID of the account.bank.statement.line \ - to create the move line from. + :param int/long st_line_id: ID of the account.bank.statement.line + to create the move line from. :param int/long company_currency_id: ID of the res.currency of the - company + company :return: ID of the account.move created """ if context is None: diff --git a/account_statement_transactionid_completion/statement.py b/account_statement_transactionid_completion/statement.py index 527fd981..8fcb13d2 100644 --- a/account_statement_transactionid_completion/statement.py +++ b/account_statement_transactionid_completion/statement.py @@ -149,19 +149,19 @@ class AccountBankStatement(Model): """Add the period_id from the statement line date to the move preparation. Originaly, it was taken from the statement period_id - :param browse_record st_line: account.bank.statement.line record to \ - create the move from. + :param browse_record st_line: account.bank.statement.line record to + create the move from. :param int/long move_id: ID of the account.move to link the move line :param float debit: debit amount of the move line :param float credit: credit amount of the move line - :param int/long currency_id: ID of currency of the move line to \ - create - :param float amount_currency: amount of the debit/credit expressed \ - in the currency_id - :param int/long account_id: ID of the account to use in the move \ - line if different from the statement line account ID - :param int/long analytic_id: ID of analytic account to put on the \ - move line + :param int/long currency_id: ID of currency of the move line to + create + :param float amount_currency: amount of the debit/credit expressed + in the currency_id + :param int/long account_id: ID of the account to use in the move + line if different from the statement line account ID + :param int/long analytic_id: ID of analytic account to put on the + move line :param int/long partner_id: ID of the partner to put on the move line :return: dict of value to create() the account.move.line """ diff --git a/account_statement_transactionid_import/parser/transactionid_file_parser.py b/account_statement_transactionid_import/parser/transactionid_file_parser.py index ea17ae0b..0bb2a2d7 100644 --- a/account_statement_transactionid_import/parser/transactionid_file_parser.py +++ b/account_statement_transactionid_import/parser/transactionid_file_parser.py @@ -31,10 +31,10 @@ class TransactionIDFileParser(FileParser): """Add transaction_id in header keys :param char: profile: Reference to the profile :param char: ftype: extension of the file (could be csv or xls) - :param dict: extra_fields: extra fields to add to the conversion \ - dict. In the format {fieldname: fieldtype} - :param list: header : specify header fields if the csv file has no \ - header + :param dict: extra_fields: extra fields to add to the conversion + dict. In the format {fieldname: fieldtype} + :param list: header : specify header fields if the csv file has no + header """ extra_fields = {'transaction_id': unicode} super(TransactionIDFileParser, self).__init__( @@ -57,10 +57,10 @@ class TransactionIDFileParser(FileParser): method of statement line in order to record it. It is the responsibility of every parser to give this dict of vals, so each one can implement his own way of recording the lines. - :param: line: a dict of vals that represent a line of \ - result_row_\list - :return: dict of values to give to the create method of statement \ - line, it MUST contain at least: + :param: line: a dict of vals that represent a line of + result_row_list + :return: dict of values to give to the create method of statement + line, it MUST contain at least: { 'name':value, 'date':value,