Assets - Compute Depre. in Batch
account_asset_compute_batch · OCA/account-financial-tools
Health
60/100
fair
-
Security25/25No findings
-
Activity12/25Last human commit 18 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.15 MB
Module directory on disk
Code analysis
1 migration note
6 models
4 views
0 HTTP endpoints
Migration considerations
AssetComputeBatch— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · 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 extend existing "Compute Asset" feature by allowing to create an Compute Asset Batch (record) to track the computation.
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 |
|---|---|---|---|---|
account_asset_compute_view_form |
account.asset.compute | account.asset.compute | form | Inherits account_asset_management.account_asset_compute_view_form |
search_account_asset_compute_batch_filter |
search.account.asset.compute.batch.filter | account.asset.compute.batch | search | New |
view_account_asset_compute_batch_form |
account.asset.compute.batch.form | account.asset.compute.batch | form | New |
view_account_asset_compute_batch_list |
account.asset.compute.batch.list | account.asset.compute.batch | list | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (5)
-
batch_nameCharhelp='If batch name is specified, computation will be tracked by a batch' -
delay_computeBooleanstring='Delay Compute Asset' -
descriptionChar -
profile_idsMany2many → account.asset.profilecomodel_name='account.asset.profile'string='Profiles' -
use_batchBooleanhelp='Use batch opton'string='Create Batch'
-
asset_compute(self)
New fields (13)
-
auto_computeBooleanhelp="Auto compute draft batches with 'Date' up to today, by cron job" -
company_idMany2one → res.companycomodel_name='res.company'default=<expr> -
currency_idMany2one → res.currencycomodel_name='res.currency'default=<expr> -
date_endDatedefault=fields.Date.todayhelp='All depreciation lines prior to this date will be computed'string='Date' -
delay_postBooleanhelp="Dalay account posting of newly created journaly entries, by setting auto_post='at_date', to be posted by cron job"string='Delay Posting' -
depre_amountMonetarycompute='_compute_depre_amount'string='Depreciation Amount' -
descriptionChar -
move_line_idsOne2many → account.move.linecomodel_name='account.move.line'inverse_name='compute_batch_id'readonly=True -
nameChar -
noteTextstring='Exception Error' -
profile_idsMany2many → account.asset.profilecomodel_name='account.asset.profile'help='Selected asset to run depreciation. Run all profiles if left blank.'string='Profiles' -
profile_reportOne2many → account.asset.compute.batch.profile.reportcomodel_name='account.asset.compute.batch.profile.report'inverse_name='compute_batch_id' -
stateSelectiondefault='draft'index=Truereadonly=Truerequired=Trueselection=[('draft', 'Draft'), ('computed', 'Computed'), ('exception', 'Exception')]tracking=True
-
action_compute(self) -
open_move_lines(self) -
open_moves(self) -
unlink(self)
New fields (4)
-
amountMonetaryreadonly=True -
compute_batch_idMany2one → account.asset.compute.batchcomodel_name='account.asset.compute.batch'readonly=True -
currency_idMany2one → res.currencycomodel_name='res.currency'readonly=True -
profile_idMany2one → account.asset.profilecomodel_name='account.asset.profile'readonly=Truestring='Asset Profile'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
action_post(self)
New fields (1)
-
compute_batch_idMany2one → account.asset.compute.batchcomodel_name='account.asset.compute.batch'index=Trueondelete='set null'readonly=True
No public methods.
Loading…
Loading…
Loading…