Commit Graph

7 Commits

Author SHA1 Message Date
Pedro M. Baeza
013b0f1c8f [FIX] account_statement_import_online: Avoid error in journal unlink test
There's a chance that the recently created journal is selected for a
payment acquirer thanks to this open compute:

c5346c04a2/addons/payment/models/payment_acquirer.py (L171-L180)

and thus, when trying to unlink it, we get:

odoo.exceptions.UserError: You must first deactivate a payment acquirer before deleting its journal.

For avoiding this situation in integration tests, we do:

- Assign a higher sequence for being the last existing journal.
- Remove the payment method lines associated to the journal.
2024-05-03 11:49:09 +02:00
manu
4683ad60c0 [MIG]account_statement_import_online: Migration to 15.0 2022-04-13 13:09:36 +02:00
Jairo Llopis
883c3b438a [FIX] account_statement_import_online: use unittest.mock and don't import tests at install
Installing this module failed because `mock` couldn't be found. Indeed there was a migration problem.

However, I was not testing the module; just installing. At install, tests shouldn't be imported.

This file was being imported because the dummy model was expected to exist in database for tests. Using odoo-test-helper for that now.

@moduon MT-295
2022-04-13 12:50:22 +02:00
Ernesto Tejeda
8ee3181a56 [IMP] account_statement_import_online: don't import empty statements. 2022-04-13 12:50:22 +02:00
Ronald Portier
6bacccbc48 [FIX] account_statement_import_online: further improvements. 2022-04-13 12:50:22 +02:00
Alexis de Lattre
1acdd20905 account_statement_import_online: usability improvement on form view of online.bank.statement.provider: avoid speading the information on 3 tabs. As there are just a few fields, let's keep all the information directly visible.
Fix warning on search view of online.bank.statement.provider
Fix some tests
Button on journal form view to access the wizard
The wizard now returns the bank statements of the journal(s)
Fix wired strings
2022-04-13 12:50:22 +02:00
Ronald Portier
f726b84980 [IMP] Adapt account_bank_statement_import_online to 14.0
Also Rename account_bank_statement_import_online => account_statement_import_online
2022-04-13 12:50:22 +02:00