Commit Graph

19 Commits

Author SHA1 Message Date
Akim Juillerat
d0c70ff134 [MIG] account_move_base_import: Migration to 12.0 2019-08-13 14:24:28 +02:00
Akim Juillerat
21a444141b [MIG] account_move_base_import: Migration to 11.0 2019-08-13 14:24:15 +02:00
Alexandre Fayolle
4253b451a5 [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-08-13 14:24:15 +02:00
Sébastien BEAU
2543c027b8 [IMP] assert that move is balanced, recompute amount total, and set reconciled to false to avoid having a null value instead 2019-08-13 14:24:15 +02:00
Sébastien BEAU
cbe947b196 [FIX] add all missing field, as orm is bypassed for perf reason, we need to fill all computed and related field 2019-08-13 14:24:15 +02:00
Sébastien BEAU
beb76b3bf7 [FIX] add missing date field, it's a related field and should be added automatically with the same value of the move date 2019-08-13 14:24:15 +02:00
Alexis de Lattre
52d5df49b5 Remove print 2019-08-13 14:24:15 +02:00
Alexis de Lattre
df72e102e1 convert_to_column() seems to be the replacement of _symbol_set() in v10 2019-08-13 14:24:15 +02:00
Alexis de Lattre
7d2bf95747 Start work to port account_move_base_import and base_transaction_id to v10 2019-08-13 14:24:15 +02:00
Matthieu Dietrich
3f5cc8c072 Force import partner on account.move (#157)
Force import partner on account.move
2019-08-13 14:24:15 +02:00
Matthieu Dietrich
a4975436d9 Correct error messages 2019-08-13 14:24:15 +02:00
Florian da Costa
9f61dda791 invalidate cache after move sql insert 2019-08-13 14:24:15 +02:00
Florian da Costa
658b810f85 Add option on journal to create one or two counterparts automatically 2019-08-13 14:24:15 +02:00
Matthieu Dietrich
b4fd711242 Add amount_residual for reconciliation later on 2019-08-13 14:24:15 +02:00
Matthieu Dietrich
daa38a622c Only set account_id if not set by parser 2019-08-13 14:24:15 +02:00
Matthieu Dietrich
1492cce657 Rename many2many table 2019-08-13 14:24:15 +02:00
Matthieu Dietrich
48b47e70ac Corrections 2019-08-13 14:24:15 +02:00
Matthieu Dietrich
6211637f67 Rename last values 2019-08-13 14:24:15 +02:00
Matthieu Dietrich
f15aa63461 Remane import modules 2019-08-13 14:24:15 +02:00