Asynchronous move/move line CSV importer
async_move_line_importer · OCA/account-financial-tools
-
Security19/252 minor findings
-
Activity0/25Last human commit 122 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
account_move— Class 'account_move' 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. (2 occurrences in this file) migration-old-api-base · sourcemove_line_importer— Class 'move_line_importer' 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 · sourcemove_line_importer— Class 'move_line_importer' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourcemove_line_importer_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcemove_line_importer_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.pooler`) (3 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 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 allows you to import moves / move lines via CSV asynchronously.
You can access model in the journal entries menu -> Moves/ Move lines importer. User must be an account manger.
To import a CSV simply save an UTF8 CSV file in the "file" field. Then you can choose a CSV separator.
If volumetry is important you can tick "Fast import" check box. When enabled import will be faster but it will not use orm and may not support all CSV canvas.
- Entry posted option of journal will be skipped.
- AA lines will only be created when moves are posted.
- Tax lines computation will be skipped until the move are posted.
This option should be used with caution and preferably in conjunction with provided canvas in tests/data
Then simply press import file button. The process will be run in background and you will be able to continue your work.
When the import is finished you will received a notification and an import report will be available on the record
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
move_line_importer_form |
move line importer form | move.line.importer | form | New |
move_line_importer_tree |
move line importer tree | move.line.importer | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (1)-
create(self, cr, uid, vals, context=None)Please refer to orm.BaseModel.create documentation
No new fields.
Public methods (1)-
create(self, cr, uid, vals, context=None)Please refer to orm.BaseModel.create documentation
No new fields.
Public methods (5)-
copy(self, cr, uid, id, default=None, context=None) -
format_messages(self, messages)Format error messages generated by the BaseModel.load method :param messages: return of BaseModel.load messages key :returns: formatted string -
import_file(self, cr, uid, imp_id, context=None)Will do an asynchronous load of a CSV file. Will generate an success/failure report and generate some maile threads. It uses BaseModel.load to lookup CSV. If you set bypass_orm to True then the load function will use a totally overridden create function that is a lot faster but that totally bypass the ORM -
track_error(sef, cr, uid, obj, context=None)Used by mail subtype -
track_success(sef, cr, uid, obj, context=None)Used by mail subtype
Loading…
Loading…
Loading…