diff options
| author | Laurent Smet <las@odoo.com> | 2018-03-27 14:33:12 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2018-04-26 11:26:22 +0200 |
| commit | 5439e72a4ebd7716b813c7ec24fd59058151568f (patch) | |
| tree | 033fd10b4e2c82b4bc6639f7e4725a449dba6a1a /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 5588c2e02bf7d96b3a07f2d8160e2a531f00d467 (diff) | |
[IMP] payment*: auto-create journal for payment.acquirer
This commit adds the auto-creation journal for installed acquirers.
This is not easy because:
- The acquirers are created on the 'payment' module but are enabled only when the specific module
is installed. E.g. Paypal is enabled with 'payment_paypal'.
- To create a journal, a chart of accounts is required. However, the post_init_hook on the
'account' module makes the installation order harder. E.g install payment_paypal directly:
The module are installed in the order: account -> payment -> payment_paypal -> l10n_generic_coa.
To fix the problem, the journals are created at two moments:
- During the installation of the chart of accounts.
- At the installation of an acquirer module. E.g. payment_paypal.
Was PR #23904
Was task: 1831620
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
