lp:~acsone-openerp/banking-addons/bank-statement-reconcile-70-bug-1313689-lmi

Created by Laurent Mignon (Acsone) and last modified
Get this branch:
bzr branch lp:~acsone-openerp/banking-addons/bank-statement-reconcile-70-bug-1313689-lmi
Members of Acsone OpenErp Team can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Acsone OpenErp Team
Project:
Banking Addons
Status:
Merged

Recent revisions

146. By Laurent Mignon (Acsone)

[FIX] lp:1313689
Remove default value to False for account_id since it breaks existing code. It's the responsability of the parser to fill a blank/None account_id in the statement_line values if the default one provided by account_statement_ext does not apply to the expected behavior

145. By Laurent Mignon (Acsone)

PEP-8

144. By Guewen Baconnier @ Camptocamp

[FIX] too many characters are escaped, leading to an 'invalid regular expression: invalid escape \ sequence' error.

143. By Sébastien BEAU - http://www.akretion.com

[REF] account_id is not anymore mandatory for creating a bank statement line. Still mandatory for the validation

142. By Launchpad Translations on behalf of banking-addons-team

Launchpad automatic translations update.

141. By Guewen Baconnier @ Camptocamp

Improvement around the Transaction IDs modules
==============================================

This proposal aims to improve the modules using transaction ids, I will start
by summarizing what are they used for, then what are the existing problems and
what changes I propose.

Transaction IDs?
----------------

The transaction IDs are a technical reference for a move line. They are to
differentiate from the usual reference that are a reference for humans firstly
(more about that here [0]). Usually, the transaction IDs are defined by
external systems such as payment gateways and are a way to streamline the
reconciliations between the invoices, bank statements...

Changes
-------

1) account_move_line.transaction_ref is defined in 'account_advanced_reconcile_transaction_ref' which adds a reconciliation method with transaction id.
It makes much sense to add the field in 'base_transaction_id' so we can use the field in other modules such as the bank statement completion modules. It is a pity that the field on the invoice and the sale order is 'transaction_id' and in move lines 'transaction_ref' but I prefer to keep the backward-compatibility.

So I moved these things from 'account_advanced_reconcile_transaction_ref' to 'base_transaction_id'

2) In account_advanced_reconcile_transaction_ref there is an inherit of the bank statement that copies the line's ref in the move line's transaction_id. I think this is a mismatch between the ref and the transaction_id that we have to avoid. In fact, only the transaction id of the statement lines should be copied if any, or left empty if the statement line has no transaction id.

3) A consequence of the change 2) is that the automatic reconcile from transaction ref will no longer work for those not using the transaction ids in the bank statement but only the ref. So I added a new reconciliation rule that matches 'ref' vs 'transaction id'. The only drawback is that they will need to change their configuration, but at least the rules will be clear on their intentions.

4) completion rules: 'base_transaction_id' adds a transaction_id on sales order and invoices. There is actually a completion rule that searches the bank statement information from a matching invoice with the same transaction_id. I added the same rule that searches for an invoice with the same transaction id. This is the logical continuation and a good complement when an invoice / refund was not generated by a sales order and we still need to autocomplete the bank statement.

[0] https://code.launchpad.net/~camptocamp/banking-addons/7.0-bank-statement-reconcile-account_invoice_reference/+merge/202689

140. By Launchpad Translations on behalf of banking-addons-team

Launchpad automatic translations update.

139. By Joël Grand-Guillaume @ camptocamp

[IMP] Add buttons to open unreconciled and partially reconciled items from a profile to easy the verification and controlling
  [IMP] Add the number of lines in completion log to let the user know if some hasn't been auto-completed (e.g. 332/335 line compelted)
  [IMP] Add a group by bank statement in journal items search view to ease the reconciliation

138. By Leonardo Pistone

[fix] account_statement_base_import: add all missing default values to the statement line.
This has to be done manually because the module uses sql trickery

137. By Launchpad Translations on behalf of banking-addons-team

Launchpad automatic translations update.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:banking-addons
This branch contains Public information 
Everyone can see this information.