Skip to content
Health
73/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 5 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 15.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 5 models 3 views 0 HTTP endpoints

Description

This module make sure that Expense will also comply with Tax Invoice concept of l10n_th_account_tax.

In case expense has VAT,

  • Expense's Bill Reference and Date will be used as Tax Invoice Number and Tax Invoice Date
  • Without Bill Reference, Post Journal Entry is not allowed

This module also provide addition step to create withholding tax journal entry.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
hr_expense_view_form hr.expense.view.form hr.expense form Inherits hr_expense.hr_expense_view_form
view_account_payment_register_form account.payment.register.form account.payment.register form Inherits l10n_th_account_tax.view_account_payment_register_form
view_hr_expense_sheet_form view.hr.expense.sheet.form hr.expense.sheet form Inherits hr_expense.view_hr_expense_sheet_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (0)

No new fields.

Public methods (2)
  • button_cancel(self)
    Check Withholding tax JV before cancel journal entry on clearing
  • button_draft(self)
    Unlink withholding tax on clearing

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • bill_partner_id Many2one → res.partner
    comodel_name='res.partner' default=<expr> string='Vendor Reference'
Public methods (0)

No public methods.

New fields (4)
  • bill_partner_id Many2one → res.partner
    comodel_name='res.partner' string='Vendor Reference' tracking=True
  • tax_date Date
  • tax_number Char
  • wht_tax_id Many2one → account.withholding.tax
    comodel_name='account.withholding.tax' compute='_compute_wht_tax_id' readonly=False store=True string='WHT' tracking=True
Public methods (0)

No public methods.

New fields (2)
  • need_wht_entry Boolean
    compute='_compute_need_wht_entry' help='Tell user that this advance clearing is pending create withholding tax entry.'
  • wht_move_id Many2one → account.move
    comodel_name='account.move' copy=False help='For case clear advance, a JV can be created to record withholding tax' ondelete='set null' readonly=True string='Withholding Tax JV' tracking=True
Public methods (4)
  • action_create_withholding_tax_entry(self)
    From expense sheet with WHT lines, this action helps create new JV with default withholding entries
  • action_open_wht_move(self)
  • action_register_payment(self)
    For Clearing, never deduct WHT auto
  • action_sheet_move_post(self)
    Update tax invoice from expense

Loading…

Loading…