Commit Graph

18 Commits

Author SHA1 Message Date
Akim Juillerat
60ef69835d [MIG] account_move_base_import: Migration to 11.0 2019-07-16 16:52:27 +02:00
Alexandre Fayolle
419dca82f9 [FIX][10.0] account_move_base_import
When importing a batch for a journal which has a currency different from the
company currency, the values in the batch files are in the currency of the journal.
The previous code was creating move lines as if the amounts in the batch file were in
the company currency.

We fix this by checking for the case, and converting the amounts the company currency at
the rate of the date of the transaction to fill in the credit / debit columns, and setting the
value of amount_currency to the value in the batch file.
2019-07-16 16:52:11 +02:00
Sébastien BEAU
b18e67b544 [IMP] assert that move is balanced, recompute amount total, and set reconciled to false to avoid having a null value instead 2019-07-16 16:52:11 +02:00
Sébastien BEAU
53f27d6bff [FIX] add all missing field, as orm is bypassed for perf reason, we need to fill all computed and related field 2019-07-16 16:52:11 +02:00
Sébastien BEAU
7427d8d6fe [FIX] add missing date field, it's a related field and should be added automatically with the same value of the move date 2019-07-16 16:52:11 +02:00
Alexis de Lattre
38748bfa88 Remove print 2019-07-16 16:52:11 +02:00
Alexis de Lattre
a0e1b080d3 convert_to_column() seems to be the replacement of _symbol_set() in v10 2019-07-16 16:52:11 +02:00
Alexis de Lattre
32877f54a1 Start work to port account_move_base_import and base_transaction_id to v10 2019-07-16 16:52:11 +02:00
Matthieu Dietrich
ec400f9361 Force import partner on account.move (#157)
Force import partner on account.move
2019-07-16 16:52:11 +02:00
Matthieu Dietrich
2a1d5f00fb Correct error messages 2019-07-16 16:52:11 +02:00
Florian da Costa
564b8b6a9a invalidate cache after move sql insert 2019-07-16 16:52:11 +02:00
Florian da Costa
8e3a12b9f0 Add option on journal to create one or two counterparts automatically 2019-07-16 16:52:11 +02:00
Matthieu Dietrich
526df7adc7 Add amount_residual for reconciliation later on 2019-07-16 16:52:11 +02:00
Matthieu Dietrich
5fe40fcf24 Only set account_id if not set by parser 2019-07-16 16:52:11 +02:00
Matthieu Dietrich
e13ee9a12c Rename many2many table 2019-07-16 16:52:11 +02:00
Matthieu Dietrich
434ecb5a72 Corrections 2019-07-16 16:52:11 +02:00
Matthieu Dietrich
db305db7ad Rename last values 2019-07-16 16:52:11 +02:00
Matthieu Dietrich
0df7de3e54 Remane import modules 2019-07-16 16:52:11 +02:00