Commit Graph

16 Commits (1e8746648fb55231433d5852be3e54e9d6a27c97)

Author SHA1 Message Date
Alexandre Fayolle c6b8b19b5d [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.
2022-12-02 15:52:37 +01:00
Sébastien BEAU 53bf3a6aad [IMP] assert that move is balanced, recompute amount total, and set reconciled to false to avoid having a null value instead 2022-12-02 15:52:37 +01:00
Sébastien BEAU e9ab3a794d [FIX] add all missing field, as orm is bypassed for perf reason, we need to fill all computed and related field 2022-12-02 15:52:37 +01:00
Sébastien BEAU 9b68f5b27c [FIX] add missing date field, it's a related field and should be added automatically with the same value of the move date 2022-12-02 15:52:37 +01:00
Alexis de Lattre aa7c4d2f82 Remove print 2022-12-02 15:52:37 +01:00
Alexis de Lattre 3a6b303b6a Start work to port account_move_base_import and base_transaction_id to v10 2022-12-02 15:52:37 +01:00
Matthieu Dietrich f0f051c1dc Force import partner on account.move (#157)
Force import partner on account.move
2022-12-02 15:52:37 +01:00
Matthieu Dietrich 8d7f7e4e23 Correct error messages 2022-12-02 15:52:37 +01:00
Florian da Costa e1ec3fb119 invalidate cache after move sql insert 2022-12-02 15:52:37 +01:00
Florian da Costa ec51035cef Add option on journal to create one or two counterparts automatically 2022-12-02 15:52:37 +01:00
Matthieu Dietrich 59438af11b Add amount_residual for reconciliation later on 2022-12-02 15:52:37 +01:00
Matthieu Dietrich 8385f85672 Only set account_id if not set by parser 2022-12-02 15:52:37 +01:00
Matthieu Dietrich 22d99ca1e6 Rename many2many table 2022-12-02 15:52:37 +01:00
Matthieu Dietrich 312c176231 Corrections 2022-12-02 15:52:37 +01:00
Matthieu Dietrich 6a1715d4a7 Rename last values 2022-12-02 15:52:37 +01:00
Matthieu Dietrich 1560419021 Remane import modules 2022-12-02 15:52:37 +01:00