Commit Graph

22 Commits (c1a65de7c6823a3cf1e609c6a412ea416bf8bedb)

Author SHA1 Message Date
Iryna Vushnevska d00271b635 [12.0][FIX] set correct value when extracting empty row 2020-07-24 08:21:04 +03:00
Tonow-c2c 851e0bce42 Pass Black on the files + pylint
Move test data to tests/data
2019-11-25 14:56:21 +01:00
Tonow-c2c 9fd9d76499 Remove undefined fields balance_cash credit_cash debit_cash 2019-11-25 14:56:17 +01:00
Tonow-c2c 4a5c8d3588 [FIX][12.0][account_move_transactionid_import] s/transaction_ref/ref
Remove 'ref' from account.move.line preparation

As 'ref' is related to account.move.ref it is not needed

Fix multi move import

multi_move_import on the parser allows to generate 1 account.move
for each line in the imported file, instead of having all the lines
on the same account.move
2019-11-25 14:56:17 +01:00
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 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