Repository
OCA/l10n-thailand · module folder · Try on Runboat
Module version
1.0.0
Category
Localization / Accounting
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-thailand
Last tracking update
2026-08-07 08:43:05
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Saran440, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
python-dateutil
System dependencies
None
Required by
None
Description
This module adds features to asset management for Thailand.

- Adds images and chatter to the assets
- Adds columns to the financial assets report
- Allows to link journal entry to an asset
- Adds parent asset feature
- Adds asset sub-status

Code Analysis

Views touched (10)
XML IDNameModelTypeStatus
account_asset_parent_view_form account.asset.parent.form account.asset.parent form New
account_asset_parent_view_list account.asset.parent.list account.asset.parent list New
account_asset_parent_view_search account.asset.parent.search account.asset.parent search New
account_asset_remove_view_form account.asset.remove.form account.asset.remove form Inherits account_asset_management.account_asset_remove_view_form
account_asset_sub_state_view_form account.asset.sub.state.form account.asset.sub.state form New
account_asset_sub_state_view_list account.asset.sub.state.list account.asset.sub.state list New
account_asset_sub_state_view_search account.asset.sub.state.search account.asset.sub.state search New
account_asset_transfer_view_form account.asset.transfer.form account.asset.transfer form Inherits account_asset_transfer.account_asset_transfer_view_form
account_asset_view_form account.asset.form account.asset form Inherits account_asset_management.account_asset_view_form
account_asset_view_list account.asset.list account.asset list Inherits account_asset_management.account_asset_view_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (8)

New fields (6)
  • asset_sub_state_all Many2many → account.asset.sub.state
    comodel_name='account.asset.sub.state' compute='_compute_asset_sub_state_all'
  • asset_sub_state_id Many2one → account.asset.sub.state
    check_company=True comodel_name='account.asset.sub.state' domain=<expr> string='Sub-Status'
  • depreciation_rate Float
    compute='_compute_depreciation_rate' store=True string='Depreciation Rate (%)'
  • image Binary
    attachment=True help='This field holds the photo of the asset.'
  • parent_id Many2one → account.asset.parent
    check_company=True comodel_name='account.asset.parent' ondelete='cascade' string='Parent Asset'
  • sale_invoice_id Many2one → account.move
    check_company=True comodel_name='account.move' copy=False readonly=True
Public methods (2)
  • action_view_invoice(self)
  • validate(self)

New fields (0)

No new fields.

Public methods (1)
  • create_move(self)

New fields (6)
  • active Boolean
    default=True
  • asset_ids One2many → account.asset
    check_company=True comodel_name='account.asset' copy=False inverse_name='parent_id' string='Assets'
  • code Char
    copy=False default='/' index=True required=True
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> string='Company'
  • name Char
    index=True required=True
  • note Text
Public methods (2)
  • action_view_assets(self)
  • create(self, vals_list)
    @api.model_create_multi

New fields (2)
  • asset_sub_state_id Many2one → account.asset.sub.state
    check_company=True comodel_name='account.asset.sub.state' default=<expr> domain="[('removed', '=', True), '|', ('company_id', '=', False), ('company_id', '=', company_id)]" string='Sub-Status'
  • tax_ids Many2many → account.tax
    check_company=True comodel_name='account.tax' domain="[('type_tax_use', '=', 'sale')]" string='Taxes'
Public methods (1)
  • remove(self)

New fields (9)
  • active Boolean
    default=True
  • close Boolean
    help='Show this asset sub-status on the close asset' index=True
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> index=True string='Company'
  • draft Boolean
    help='Show this asset sub-status on the draft asset' index=True
  • name Char
    index=True required=True
  • note Text
  • open Boolean
    help='Show this asset sub-status on the running asset' index=True string='Running'
  • removed Boolean
    help='Show this asset sub-status on the removed asset' index=True
  • sequence Integer
    default=10 help='Used to order Asset Sub Status'
Public methods (0)

No public methods.

New fields (1)
  • asset_sub_state_id Many2one → account.asset.sub.state
    check_company=True comodel_name='account.asset.sub.state' default=<expr> domain="[('removed', '=', True), '|', ('company_id', '=', False), ('company_id', '=', company_id)]" string='Sub-Status'
Public methods (1)
  • transfer(self)

New fields (0)

No new fields.

Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…