Thai Localization - Government Expense
l10n_th_gov_hr_expense · OCA/l10n-thailand
Health
57/100
fair
-
Security25/25No findings
-
Activity12/25Last human commit 15 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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
3 migration notes
5 models
8 views
0 HTTP endpoints
Migration considerations
view_hr_expense_sheet_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (2 occurrences in this file) migration-view-attrs-states · sourceview_move_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_purchase_request_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- l10n_th_gov_purchase_report
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_expense_sheet_view_search |
hr.expense.sheet.view.search | hr.expense.sheet | search | Inherits hr_expense.hr_expense_sheet_view_search |
hr_expense_view_expenses_analysis_tree |
hr.expense.tree | hr.expense | tree | Inherits hr_expense.hr_expense_view_expenses_analysis_tree |
hr_expense_view_form |
hr.expense.view.form | hr.expense | form | Inherits hr_expense.hr_expense_view_form |
hr_expense_view_search |
hr.expense.view.search | hr.expense | search | Inherits hr_expense.hr_expense_view_search |
reminder_definition_view_form |
reminder.definition.form | reminder.definition | form | Inherits hr_expense_advance_overdue_reminder.reminder_definition_view_form |
view_hr_expense_sheet_form |
hr.expense.sheet.form | hr.expense.sheet | form | Inherits hr_expense_advance_overdue_reminder.view_hr_expense_sheet_form |
view_move_form |
account.move.form | account.move | form | Inherits account.view_move_form |
view_purchase_request_form |
purchase.request.form | purchase.request | form | Inherits purchase_request.view_purchase_request_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (2)
-
expense_sheet_countIntegercompute='_compute_expense_sheet_count'string='Expense Report Count' -
expense_sheet_idsOne2many → hr.expense.sheetcomodel_name='hr.expense.sheet'compute='_compute_expense_sheet_count'string='Expense Report'
-
action_view_expense_sheet(self)
New fields (2)
-
pr_line_idMany2one → purchase.request.linecomodel_name='purchase.request.line'help='Expense created from this purchase request line'ondelete='cascade' -
purchase_type_idMany2one → purchase.typecomodel_name='purchase.type'compute='_compute_purchase_type_id'domain=<expr>index=Trueondelete='restrict'readonly=Falsestore=Truestring='Purchase Type'
No public methods.
New fields (8)
-
clearing_date_dueDatecompute='_compute_clearing_date_due'store=True -
clearing_termSelectiondefault='thirty_days_after_receive'readonly=Trueselection=[('thirty_days_after_receive', '30 days after receiving the money'), ('thirty_days_after_return', '30 days after returning to the office')]states={'draft': [('readonly', False)]}tracking=True -
date_returnDatereadonly=Truestates={'draft': [('readonly', False)]}string='Returned Date'tracking=True -
employee_user_idMany2onereadonly=Truerelated='employee_id.user_id' -
no_pr_checkBooleancopy=Falsegroups='hr_expense.group_hr_expense_manager'string='Skip Amount Check' -
pr_forSelectioncompute='_compute_pr_for'readonly=Falseselection=[('expense', 'Expense'), ('advance', 'Advance')]store=Truestring='Use PR for' -
pr_line_idsOne2many → hr.expense.sheet.prlinecomodel_name='hr.expense.sheet.prline'copy=Falseinverse_name='sheet_id' -
purchase_request_idMany2one → purchase.requestcomodel_name='purchase.request'copy=Falsedomain="[('requested_by', '=', employee_user_id), ('state', '=', 'approved'), ('purchase_type_id.to_create', '=', 'expense')]"help='Select purchase request of this employee, to create expense lines'index=Trueondelete='restrict'readonly=Truestates={'draft': [('readonly', False)]}string='Purchase Request'
-
action_sheet_move_create(self)Remove clearing_date_due when clearing term is 30 Days after receive -
action_submit_sheet(self) -
approve_expense_sheets(self) -
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (11)
-
currency_idMany2one → res.currencycomodel_name='res.currency'readonly=Truerelated='pr_line_id.currency_id'string='Currency' -
descriptionTextreadonly=Truerelated='pr_line_id.description'string='Notes...' -
employee_idMany2one → hr.employeecomodel_name='hr.employee'readonly=Truerelated='sheet_id.employee_id' -
nameCharreadonly=Truerelated='pr_line_id.name'string='Description' -
pr_line_idMany2one → purchase.request.linecomodel_name='purchase.request.line'ondelete='cascade' -
product_idMany2one → product.productcomodel_name='product.product'readonly=Truerelated='pr_line_id.product_id'string='Product' -
quantityFloatdigits='Product Unit of Measure' -
referenceTextreadonly=Truerelated='pr_line_id.specifications'string='Bill Reference' -
sheet_idMany2one → hr.expense.sheetcomodel_name='hr.expense.sheet'string='Expense Report' -
total_amountMonetarycompute='_compute_total_amount'readonly=Truestring='Total' -
unit_amountMonetarystring='Unit Price'
No public methods.
New fields (2)
-
expense_sheet_countIntegercompute='_compute_expense_sheet_count'string='Expense Report Count' -
expense_sheet_idsOne2many → hr.expense.sheetcomodel_name='hr.expense.sheet'inverse_name='purchase_request_id'string='Expense Report'
-
action_view_expense_sheet(self) -
button_draft(self) -
button_rejected(self)
Loading…