Thai Localization - Tax Filing

l10n_th_account_tax_filing
REPOSITORY
REPOSITORYOCA/l10n-thailand
GIT
GIThttps://github.com/OCA/l10n-thailand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-thailand/tree/15.0/l10n_th_account_tax_filing
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalization / Accounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-thailand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:35
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-thailand:
    - l10n_th_account_tax
OCA/server-ux:
    - date_range
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits l10n_th_account_tax.res_config_settings_view_form
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
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/l10n-thailand
PULL REQUEST
PULL REQUEST[18.0][MIG] l10n_th_account_tax_filing (#588)