Account Journal Async Entry Posted
account_journal_entry_posted_async · OCA/account-financial-tools
-
Security25/25No findings
-
Activity0/25Last human commit 129 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
AccountJournal— Class 'AccountJournal' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceAccountJournal— Class 'AccountJournal' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountMove— Class 'AccountMove' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (5 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module add a new checkbox on the journal to post asynchronously entries created for the journal without any manual validation.
In this module we take advantage of the queue and channel system from Odoo Connector to sequentially post entries in background and therefore avoid concurrent updates on ir_sequence when the system is intensely used.
Installation
Connector jobs are created in a channel named root.account_move_validate. The channel must be configured with a capacity of 1::
ODOO_CONNECTOR_CHANNELS=root:X,root.account_move_validate:1
See the connector documentation <http://odoo-connector.com/guides/jobrunner.html>_ to see how to configure
the capacity of channels .
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_account_journal_form |
account.journal.form (account_journal_entry_posted_async) | account.journal | form | Inherits account.view_account_journal_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (4)-
create(self, cr, user, vals, context=None) -
on_change_entry_posted(self, cr, uid, ids, boolval) -
on_change_entry_posted_async(self, cr, uid, ids, boolval) -
write(self, cr, user, ids, vals, context=None)
No new fields.
Public methods (2)-
button_validate(self, cr, uid, ids, context=None) -
do_button_validate(self, cr, uid, ids, context=None)