Bank Statement Operation Rules
account_statement_operation_rule · OCA/account-reconcile
Health
45/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.43 MB
Module directory on disk
Code analysis
7 migration notes
2 models
4 views
0 HTTP endpoints
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
AccountBankStatementLine— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceAccountStatementOperationRule— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (4 methods) migration-api-multi-one · sourceview_account_statement_operation_rule_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 · sourceview_account_statement_operation_rule_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend |
account assets | ir.ui.view | qweb | Inherits account.assets_backend |
view_account_statement_operation_rule_form |
account.statement.operation.rule.form | account.statement.operation.rule | form | New |
view_account_statement_operation_rule_search |
account.statement.operation.rule.search | account.statement.operation.rule | search | New |
view_account_statement_operation_rule_tree |
account.statement.operation.rule.tree | account.statement.operation.rule | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (1)-
currency_for_rules(self)@api.multi
New fields (7)
-
amount_maxFloatdigits=dp.get_precision('Account')string='Max. Amount' -
amount_minFloatdigits=dp.get_precision('Account')string='Min. Amount' -
currenciesMany2many → res.currencycomodel_name='res.currency'help="For 'Currencies' rules, you can choose for which currencies the rule will be applicable."string='Currencies' -
nameChar -
operationsMany2many → account.statement.operation.templatecomodel_name='account.statement.operation.template'relation='account_statement_oper_rule_rel' -
rule_typeSelectiondefault='rounding'required=Trueselection=[('rounding', 'Roundings'), ('currency', 'Currencies')]string='Type' -
sequenceIntegerdefault=20help='If several rules match, the first one is used.'
-
find_first_rule(self, statement_line, move_lines)@api.modelFind the rules that apply to a statement line and a selection of move lines. :param statement_line: the line to reconcile :param move_lines: the selected move lines for reconciliation -
is_valid(self, statement_line, move_lines, balance)@api.multiReturns True if a rule applies to a group of statement_line + move lines. This is the public method where the rule is evaluated whatever its type is. When a rule returns True, it means that it is a candidate for the current reconciliation. The rule with the lowest number in the ``sequence`` field is chosen. :param statement_line: the line to reconcile :param move_lines: the selected move lines for reconciliation :param balance: the balance between the statement_line and the move_lines. It could be computed here but it is computed before to avoid to compute it for each rule when called on multiple rules. -
operations_for_reconciliation(self, statement_line_id, move_line_ids)@api.model@api.returns('account.statement.operation.template')Find the rule for the current reconciliation and returns the ``account.statement.operation.template`` of the found rule. Called from the javascript reconciliation view.