Commit Graph

528 Commits

Author SHA1 Message Date
Yannick Vaucher
d937c84450 [MRG] Cleaning for the fix lp:1313689:
* The _insert_lines and _update_line method in *_base_completion/statement.py calls the symbol_f method to prorperly initiate the default value (e.g. integer default null value should be Null not False).

 * The mechanism that allow to have a null account_id in bank statement line has been move in *_base_completion, instead of *_base_import.
2014-05-09 15:24:25 +02:00
Yannick Vaucher
eef1a4bf4e remove account_payable and account_receivable from prepare_statement_vals args as not used anymore 2014-05-07 10:50:38 +02:00
Yannick Vaucher
ac4f54278a merge from upsteam 2014-05-06 15:22:56 +02:00
Yannick Vaucher
6c61ca8c25 prepare values by calling _symbol_f on values to ensure we don't insert bad values 2014-05-06 14:22:55 +02:00
Yannick Vaucher
f95f68d915 set account_id optional in account_statement_base_completion instead of account_statement_base_import 2014-05-05 17:47:58 +02:00
Laurent Mignon (Acsone)
6c84e21644 [MRG] Remove the default value to False on account_id in account_statement_base_completion/statement.py since it breaks existing code 2014-05-05 16:40:14 +02:00
Launchpad Translations on behalf of banking-addons-team
46a5f67193 Launchpad automatic translations update. 2014-05-03 06:52:28 +00:00
Laurent Mignon (Acsone)
4e02873138 [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
2014-04-28 17:07:53 +02:00
Laurent Mignon (Acsone)
6b5979fdde PEP-8 2014-04-28 16:42:52 +02:00
unknown
20845d56b6 [FIX] too many characters are escaped, leading to an 'invalid regular expression: invalid escape \ sequence' error. 2014-04-27 20:44:20 +02:00
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
Guewen Baconnier
7ff26dbb35 [FIX] too many characters are escaped, leading to an 'invalid regular expression: invalid escape \ sequence' error.
Escape only the list of characters that must be escaped according to POSIX-ARE
2014-03-04 14:19:28 +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