Repository
OCA/l10n-thailand · module folder · Try on Runboat
Module version
1.0.1
Category
Localization / Accounting
Folder size
0.1 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-thailand
Last tracking update
2026-08-07 07:57:17
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Saran440, OCA-git-bot, oca-ci, Pani-k-folk
Odoo dependencies
OCA/l10n-thailand:
OCA/server-ux:
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
account_tax_filing_search_view account.tax.filing.search account.tax.filing search New
account_tax_filing_view_form account.tax.filing.view.form account.tax.filing form New
account_tax_filing_view_tree account.tax.filing.view.tree account.tax.filing tree New
res_config_settings_view_form res.config.settings.view.form.thai.account res.config.settings form Inherits l10n_th_account_tax.res_config_settings_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (1)
  • tax_filing_id Many2one → account.tax.filing
    comodel_name='account.tax.filing' copy=False index=True readonly=True
Public methods (0)

No public methods.

New fields (20)
  • account_adjust_id Many2one → account.account
    check_company=True comodel_name='account.account' default=<expr>
  • account_from_id Many2one → account.account
    check_company=True comodel_name='account.account' copy=False default=<expr> required=True
  • account_to_id Many2one → account.account
    check_company=True comodel_name='account.account' copy=False default=<expr> required=True
  • amount_adjust Monetary
    compute='_compute_total_amount' currency_field='company_currency_id' store=True string='Total Adjust'
  • amount_from Monetary
    compute='_compute_total_amount' currency_field='company_currency_id' store=True
  • amount_to Monetary
    compute='_compute_total_amount' currency_field='company_currency_id' store=True
  • company_currency_id Many2one → res.currency
    comodel_name='res.currency' related='company_id.currency_id'
  • company_id Many2one → res.company
    comodel_name='res.company' copy=False default=<expr> readonly=True required=True
  • currency_id Many2one → res.currency
    default=<expr> readonly=True required=True states={'draft': [('readonly', False)]} string='Currency' args: 'res.currency'
  • date_from Date
    copy=False readonly=True states={'draft': [('readonly', False)]} string='Start Date'
  • date_range_id Many2one → date.range
    comodel_name='date.range' copy=False readonly=True states={'draft': [('readonly', False)]} string='Date range'
  • date_to Date
    copy=False readonly=True states={'draft': [('readonly', False)]} string='End Date'
  • diff_amount Monetary
    compute='_compute_total_amount' currency_field='company_currency_id' store=True string='Difference amount'
  • move_id Many2one → account.move
    comodel_name='account.move' copy=False readonly=True string='Journal Entries'
  • move_type Selection
    readonly=True related='move_id.move_type' store=True
  • name Char
    copy=False default='Draft' index=True readonly=True required=True
  • partner_id Many2one → res.partner
    check_company=True comodel_name='res.partner' copy=False default=<expr> readonly=True required=True states={'draft': [('readonly', False)]}
  • state Selection
    copy=False default='draft' readonly=True required=True selection=[('draft', 'Draft'), ('submit', 'Submitted'), ('done', 'Done'), ('cancel', 'Cancelled')] tracking=True
  • tax_filing_line_ids One2many → account.tax.filing.line
    comodel_name='account.tax.filing.line' copy=False inverse_name='filing_id' readonly=True states={'draft': [('readonly', False)]}
  • total_amount Monetary
    compute='_compute_total_amount' currency_field='company_currency_id' store=True
Public methods (14)
  • action_cancel(self)
  • action_compute_account_tax_filing_line(self)
  • action_create_invoice(self)
  • action_draft(self)
  • action_submit(self)
  • action_view_entries(self)
  • check_date_from_to(self)
    @api.constrains('date_from', 'date_to')
  • create(self, vals)
    @api.model
  • create_account_move_line(self)
  • create_invoice(self, move_type)
  • create_invoice_line(self, move_type)
  • create_journal_entry(self)
  • prepare_account_move_line(self, account, debit, credit, tax_filing_id=False)
  • prepare_invoice_line(self, account, amount, sign)

New fields (13)
  • account_id Many2one → account.account
    comodel_name='account.account' readonly=True
  • balance Monetary
    default=0.0 readonly=True
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr>
  • credit Monetary
    default=0.0 readonly=True
  • currency_id Many2one → res.currency
    comodel_name='res.currency' readonly=True related='company_id.currency_id'
  • date Date
    readonly=True
  • debit Monetary
    default=0.0 readonly=True
  • display_type Selection
    default=False help='Technical field for UX purpose.' selection=[('line_section', 'Section'), ('line_note', 'Note')]
  • filing_id Many2one → account.tax.filing
    comodel_name='account.tax.filing' index=True ondelete='restrict' readonly=True required=True string='Tax Filing'
  • move_line_id Many2one → account.move.line
    comodel_name='account.move.line' index=True readonly=True
  • name Char
    string='Description'
  • parent_state Selection
    readonly=True related='filing_id.state' store=True
  • sequence Integer
    default=10 help='Used to order tax filing lines'
Public methods (0)

No public methods.

New fields (4)
  • account_adjust_id Many2one → account.account
    comodel_name='account.account' string='Adjust Tax Account'
  • account_from_id Many2one → account.account
    comodel_name='account.account' domain=<expr> string='Sales Tax Account'
  • account_to_id Many2one → account.account
    comodel_name='account.account' domain=<expr> string='Purchase Tax Account'
  • tax_authority_id Many2one → res.partner
    comodel_name='res.partner'
Public methods (0)

No public methods.

New fields (4)
  • account_adjust_id Many2one
    help='The account used for tax adjustments or corrections.' readonly=False related='company_id.account_adjust_id'
  • account_from_id Many2one
    help='The starting account for the range of accounts used in tax filing.' readonly=False related='company_id.account_from_id'
  • account_to_id Many2one
    help='The ending account for the range of accounts used in tax filing.' readonly=False related='company_id.account_to_id'
  • tax_authority_id Many2one
    help='The partner record representing the tax authority (e.g., Revenue Department).' readonly=False related='company_id.tax_authority_id'
Public methods (0)

No public methods.

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
156 days ago
Last activity
42 days ago
Repository
OCA/l10n-thailand
Pull request
[18.0][MIG] l10n_th_account_tax_filing (#588)