Repository
OCA/account-financial-tools · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting & Finance
Folder size
0.15 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-financial-tools
Last tracking update
2026-08-19 05:17:57
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Saran440, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
OCA/account-financial-tools:
OCA/reporting-engine:
odoo/odoo:
- web
- bus
- uom
Python dependencies
python-dateutil
System dependencies
None
Required by
None
Description
This module extend existing "Compute Asset" feature by allowing to
create an Compute Asset Batch (record) to track the computation.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
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_name Char
    help='If batch name is specified, computation will be tracked by a batch'
  • delay_compute Boolean
    string='Delay Compute Asset'
  • description Char
  • profile_ids Many2many → account.asset.profile
    comodel_name='account.asset.profile' string='Profiles'
  • use_batch Boolean
    help='Use batch opton' string='Create Batch'
Public methods (1)
  • asset_compute(self)

New fields (13)
  • auto_compute Boolean
    help="Auto compute draft batches with 'Date' up to today, by cron job"
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr>
  • currency_id Many2one → res.currency
    comodel_name='res.currency' default=<expr>
  • date_end Date
    default=fields.Date.today help='All depreciation lines prior to this date will be computed' string='Date'
  • delay_post Boolean
    help="Dalay account posting of newly created journaly entries, by setting auto_post='at_date', to be posted by cron job" string='Delay Posting'
  • depre_amount Monetary
    compute='_compute_depre_amount' string='Depreciation Amount'
  • description Char
  • move_line_ids One2many → account.move.line
    comodel_name='account.move.line' inverse_name='compute_batch_id' readonly=True
  • name Char
  • note Text
    string='Exception Error'
  • profile_ids Many2many → account.asset.profile
    comodel_name='account.asset.profile' help='Selected asset to run depreciation. Run all profiles if left blank.' string='Profiles'
  • profile_report One2many → account.asset.compute.batch.profile.report
    comodel_name='account.asset.compute.batch.profile.report' inverse_name='compute_batch_id'
  • state Selection
    default='draft' index=True readonly=True required=True selection=[('draft', 'Draft'), ('computed', 'Computed'), ('exception', 'Exception')] tracking=True
Public methods (4)
  • action_compute(self)
  • open_move_lines(self)
  • open_moves(self)
  • unlink(self)

New fields (4)
  • amount Monetary
    readonly=True
  • compute_batch_id Many2one → account.asset.compute.batch
    comodel_name='account.asset.compute.batch' readonly=True
  • currency_id Many2one → res.currency
    comodel_name='res.currency' readonly=True
  • profile_id Many2one → account.asset.profile
    comodel_name='account.asset.profile' readonly=True string='Asset Profile'
Public methods (0)

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_id Many2one → account.asset.compute.batch
    comodel_name='account.asset.compute.batch' index=True ondelete='set null' readonly=True
Public methods (0)

No public methods.

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
94 days ago
Last activity
59 days ago
Repository
OCA/account-financial-tools
Pull request
[19.0][MIG] account_asset_compute_batch: Migration to 19.0 (#2300)