Commit Graph

517 Commits

Author SHA1 Message Date
Sébastien Beau
c098e2feef [REF] account_id is not anymore mandatory for creating a bank statement line. Still mandatory for the validation 2014-04-25 14:59:58 +02:00
Launchpad Translations on behalf of banking-addons-team
28f63d3340 Launchpad automatic translations update. 2014-04-22 08:29:54 +00:00
Sebastien Beau
f5609b41b5 [IMP] set the default value for the account to False as the account is not required anymore 2014-04-15 11:52:48 +02:00
unknown
20b139e1b7 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
2014-04-14 15:09:19 +02:00
Florian da Costa
f56c48b67b [Fix] Merge 2014-04-10 15:19:22 +02:00
Florian da Costa
1e3200a070 [FIX] fix line length (pep8) 2014-04-10 15:07:27 +02:00
Launchpad Translations on behalf of banking-addons-team
019d12e190 Launchpad automatic translations update. 2014-04-03 06:06:30 +00:00
unknown
cc68080740 [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
2014-04-02 16:52:35 +02:00
unknown
e0f418a6dc [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
2014-04-02 09:56:25 +02:00
Leonardo Pistone
b5d49604f0 [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
2014-04-01 17:54:00 +02:00
Launchpad Translations on behalf of banking-addons-team
39f3abc6be Launchpad automatic translations update. 2014-03-22 07:11:39 +00:00
Pedro M. Baeza
cf5baee19f [IMP] Translation template files. 2014-03-21 15:46:09 +01:00
unknown
47ea0ca32c [IMP] Add a group by bank statement in journal items search view to ease the reconciliation 2014-03-14 11:51:41 +01:00
unknown
ca4f39b3a8 [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) 2014-03-14 11:50:40 +01:00
unknown
496205218f [IMP] Add buttons to open unreconciled and partially reconciled items from a profile to easy the verification and controlling 2014-03-14 11:48:30 +01:00
Launchpad Translations on behalf of banking-addons-team
b519b1046d Launchpad automatic translations update. 2014-03-14 07:02:43 +00:00
Florian da Costa
a1d2a4806b [FIX] replace old naming of exception + simplify xpath expression to make it more portable 2014-03-13 16:44:34 +01:00
unknown
852aa06307 [fix] account_statement_ext: trigger related fields 2014-03-12 16:20:42 +01:00
Guewen Baconnier
376b9c9ac1 wrong model name 2014-03-10 13:40:48 +01:00
Leonardo Pistone
fb9f6f4c32 [imp] docstring for a function field trigger 2014-03-07 11:20:21 +01:00
Leonardo Pistone
063812d7c4 [fix] other related fields found in the statement 2014-03-06 18:14:44 +01:00
Leonardo Pistone
2c763f77eb [fix] account_statement_ext: trigger for a related field 2014-03-06 17:39:02 +01:00
unknown
3a3c9e9109 fix issue when creating empty statement (lp:1247876) and add a module which enables bank statement creation from the point of sale with the banking framework installed. 2014-03-06 11:48:37 +01:00
unknown
b4cb3abbeb [IMP] Allow to import xlsx files 2014-03-06 11:31:06 +01:00
unknown
9f965c1f04 [ADD] module account_statement_one_move 2014-03-06 10:57:18 +01:00
unknown
f75b93e5f7 Do not auto_install account_statement_bankaccount_completion. 2014-03-06 10:50:33 +01:00
unknown
40c3b65b94 Little trick to avoid headhack 2014-03-06 10:40:57 +01:00
Guewen Baconnier
2ad0691b9d merge from master 2014-03-05 13:10:07 +01:00
Guewen Baconnier
9922f72b16 the transaction id is copied only on account move lines having the same account than the invoice's one (the payable / receivable) 2014-03-05 10:03:44 +01:00
Guewen Baconnier
04f7f3a5b5 module now depends on statement_voucher_killer, and this module adds hooks in the generation of statement lines so we can add the transaction ids 2014-03-04 17:27:19 +01:00
Guewen Baconnier
981167d28c add account_payment_transaction_id: compatibility between payment orders and transaction ids 2014-03-04 16:46:05 +01:00
Launchpad Translations on behalf of banking-addons-team
c17afe17b1 Launchpad automatic translations update. 2014-03-01 05:55:31 +00:00
Pedro M. Baeza
13d6214155 [IMP] account_statement_base_import: Improved system to inherit selection of the different import types, because as it was, you have to redefine the field on each extension module, due to OpenERP doesn't allow direct inheritance on selection methods.
Now, the selection method calls another private method that can be inherited without problems.
2014-02-28 14:19:47 +01:00
unknown
c064f5d821 [FIX] a regression, the name and date fields had default values until recently. 2014-02-28 14:02:35 +01:00
Laurent Mignon (Acsone)
e164aa12ba [FIX] lp:1280822 define a default value for import_type to avoid breaking tests of completions addons 2014-02-28 13:29:50 +01:00
unknown
60528486d1 [FIX] the sample is insufficient to guess the delimiters on some files 2014-02-26 12:25:52 +01:00
Guewen Baconnier
512fd89093 restore default values to prevent regression introduced in pedro.baeza@serviciosbaeza.com-20140202105840-ndjvkvas1y82pxlw 2014-02-26 12:02:40 +01:00
Guewen Baconnier
ba824ca100 the sample is insufficient to guess the delimiters on some files 2014-02-26 11:23:37 +01:00
Pedro M. Baeza
51c7654445 [FIX] account_statement_base_import: self reference calling method. 2014-02-24 23:45:29 +01:00
Sebastien Beau
da6c89f9dc [REF] add TODO comment for using python exception 2014-02-24 14:05:38 +01:00
unknown
31cf6d60b8 [FIX] fix api and put the incorrect method in deprecated 2014-02-21 19:29:07 +01:00
Yannick Vaucher
25e916cdcb UPD account_statement_ext version 2014-02-21 19:26:17 +01:00
Yannick Vaucher
3875378fc9 PEP8 on changes 2014-02-21 19:25:38 +01:00
Yannick Vaucher
fc6032597b UPD account_statement_base_import version 2014-02-21 19:19:53 +01:00
Yannick Vaucher
0cedf1b84d UPD account_statement_base_completion version 2014-02-21 19:19:17 +01:00
Yannick Vaucher
106294d363 UPD account_advanced_reconcile_transaction_ref version 2014-02-21 19:18:26 +01:00
unknown
d87196d445 [FIX] Only commercial partners are allowed in bank statement lines 2014-02-21 14:02:10 +01:00
Launchpad Translations on behalf of banking-addons-team
e80f498d67 Launchpad automatic translations update. 2014-02-20 05:47:21 +00:00
unknown
7547abb552 [FIX] completion on partner name in the statement line label (lp:1280814) 2014-02-19 11:28:25 +01:00
Laurent Mignon (Acsone)
4f19caeb20 [FIX] escape res_partner.name column as second arg of regexp_matches and keep the first one as unescaped. Add a lot of tests for completion based on the res_partner name 2014-02-17 18:24:03 +01:00