Thai Localization - Account Vendor Tax Invoice

l10n_th_vendor_tax_invoice
REPOSITORY
REPOSITORYOCA/l10n-thailand
GIT
GIThttps://github.com/OCA/l10n-thailand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-thailand/tree/12.0/l10n_th_vendor_tax_invoice
VERSION
VERSION 2.2.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
COMMITTERSGitHub, oca-travis, OCA-git-bot, Kitti U, Saran, Saran L
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-thailand/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-thailand:
    - account_create_tax_cash_basis_entry_hook
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - hr_expense
    - hr_contract
    - hr
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
invoice_supplier_form invoice.supplier.form account.invoice xpath Inherits account.invoice_supplier_form
tax_adjustments_wizard tax.adjustments.wizard.form tax.adjustments.wizard field Inherits account.tax_adjustments_wizard
view_account_payment_form account.view.account.payment.form account.payment button Inherits account.view_account_payment_form
view_move_line_form view.move.line.form account.move.line field Inherits account.view_move_line_form
view_move_line_tax_audit_tree account.move.line.tax.audit.tree account.move.line field Inherits account.view_move_line_tax_audit_tree
view_tax_form account.tax.form.inherit account.tax field Inherits account.view_tax_form
view_tax_form_inherited account.tax.form.inherited account.tax field Inherits account.view_tax_form
Models touched (11)

New fields (3)
  • pending_tax_cash_basis_entry Boolean
    default=False help='If pending, payment will has button to clear tax cash basis'
  • tax_line_ids One2many → account.payment.tax
    comodel_name='account.payment.tax' copy=False inverse_name='payment_id'
  • taxinv_ready Boolean
    copy=False default=False help='Tax invoice number is ready for filling in,\nsystem will open tax table allow user to fill in' string='Tax Invoice Ready'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_invoice_open(self)
    @api.multi

New fields (5)
  • move_line_ids One2many → account.move.line
    comodel_name='account.move.line' inverse_name='invoice_tax_line_id' readonly=True string='Journal Items'
  • tax_date Date
    compute='_compute_tax_invoice'
  • tax_date_manual Date
    copy=False
  • tax_invoice Char
    compute='_compute_tax_invoice' help='- case sales invoice/refund, use invoice number\n- case purchase invoice/refund, user will manually keyin\n'
  • tax_invoice_manual Char
    copy=False help="Used for purchase invoice, when vendor will provide number\nthis will always overwrite invoice's number" string='Tax Invoice Number'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • post(self, invoice=False)
    @api.multi
    Do not post when tax_invoice_manual is not ready

New fields (6)
  • invoice_tax_line_id Many2one → account.invoice.tax
    comodel_name='account.invoice.tax' copy=True ondelete='restrict'
  • payment_tax_line_id Many2one → account.payment.tax
    comodel_name='account.payment.tax' copy=True ondelete='restrict'
  • tax_date Char
    compute='_compute_tax_invoice' store=True
  • tax_date_manual Date
    copy=True
  • tax_invoice Char
    compute='_compute_tax_invoice' store=True
  • tax_invoice_manual Char
    copy=True string='Tax Invoice Number'
Public methods (1)
  • create(self, vals)
    @api.model
    Create payment tax line for clear undue vat

New fields (0)

No new fields.

Public methods (1)
  • create(self, vals)
    @api.model
    Check payment, if taxinv_ready is not checked, do not create tax cash basis entry invl_id

New fields (0)

No new fields.

Public methods (2)
  • clear_tax_cash_basis(self)
    @api.multi
  • post(self)
    @api.multi

New fields (10)
  • amount_tax Monetary
    currency_field='company_currency_id' readonly=True related='move_line_id.balance' string='Tax Amount'
  • company_currency_id Many2one → res.currency
    comodel_name='res.currency' default=<expr>
  • invoice_tax_line_id Many2one → account.invoice.tax
    comodel_name='account.invoice.tax'
  • move_id Many2one → account.move
    comodel_name='account.move' readonly=True related='move_line_id.move_id' string='Journal Entry'
  • move_line_id Many2one → account.move.line
    comodel_name='account.move.line' compute='_compute_move_line_id' help='Journal Item that refer to this tax amount' string='Journal Item'
  • name Char
    string='Tax Description'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' required=True
  • payment_id Many2one → account.payment
    comodel_name='account.payment' index=True readonly=True
  • tax_date_manual Date
    help='Vendor provided tax invoice date' string='Tax Date'
  • tax_invoice_manual Char
    help='Vendor provided tax invoice number' string='Tax Invoice Number'
Public methods (1)
  • init(self)
    @api.model_cr

New fields (2)
  • sequence_number_next Integer
    compute='_compute_seq_number_next' help='The next sequence number will be used for the next tax invoice.' inverse='_inverse_seq_number_next' string='Next Number'
  • taxinv_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' copy=False help='Optional sequence as Tax Invoice number' string='Tax Invoice Sequence'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • amount_tax_base Monetary
    currency_field='company_currency_id' required=True string='Tax Base'
  • credit_partner_id Many2one → res.partner
    comodel_name='res.partner' string='Partner (Credit Account)'
  • debit_partner_id Many2one → res.partner
    comodel_name='res.partner' string='Partner (Debit Account)'
  • tax_date Date
  • tax_invoice Char
    string='Tax Invoice Number'
Public methods (0)

No public methods.