Petty Cash
hr_expense_petty_cash · OCA/hr-expense
OCA/hr 12.0 → OCA/hr-expense 13.0–18.0
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
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.14 MB
Module directory on disk
Code analysis
1 migration note
5 models
11 views
0 HTTP endpoints
Migration considerations
PettyCash— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · 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
This module work about expense that paid by petty cash.
General Process:
- Create Petty Cash Holder
- Transfer cash to Petty Cash Holder (by using Vendor Bill)
- You can create expense paid by petty cash and select petty cash holder.
- Then balance of petty cash holder less than amount of expense, you must transfer cash to petty cash holder before Submit Report to Manager.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 11
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_expense_sheet_view_search_inherit |
hr.expense.sheet.search.inherit | hr.expense.sheet | search | Inherits hr_expense.hr_expense_sheet_view_search |
hr_expense_view_form_inherit |
hr.expense.view.form.inherit | hr.expense | form | Inherits hr_expense.hr_expense_view_form |
hr_expense_view_search_inherit |
hr.expense.search.inherit | hr.expense | search | Inherits hr_expense.hr_expense_view_search |
view_hr_expense_sheet_form_inherit |
view.hr.expense.sheet.form.inherit | hr.expense.sheet | form | Inherits hr_expense.view_hr_expense_sheet_form |
view_move_form_inherit |
account.move.form.inherit | account.move | form | Inherits account.view_move_form |
view_petty_cash_form |
petty.cash.form | petty.cash | form | New |
view_petty_cash_kanban |
petty.cash.kanban | petty.cash | kanban | New |
view_petty_cash_list |
petty.cash.list | petty.cash | list | New |
view_petty_cash_search |
petty.cash.search | petty.cash | search | New |
view_petty_cash_transaction_list |
petty.cash.transaction.list | petty.cash.transaction | list | New |
view_petty_cash_transaction_search |
petty.cash.transaction.search | petty.cash.transaction | search | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (1)
-
is_petty_cashBooleanstring='Petty Cash'
-
action_post(self)
New fields (2)
-
payment_modeSelectionondelete={'petty_cash': 'set default'}selection_add=[('petty_cash', 'Petty Cash')] -
petty_cash_idMany2one → petty.cashcheck_company=Truecomodel_name='petty.cash'ondelete='restrict'string='Petty cash holder'
No public methods.
New fields (1)
-
petty_cash_idMany2one → petty.cashcomodel_name='petty.cash'compute='_compute_petty_cash'ondelete='restrict'store=Truestring='Petty cash holder'
-
action_open_account_moves(self)
New fields (8)
-
account_idMany2one → account.accountcheck_company=Truecomodel_name='account.account'required=Truestring='Petty Cash Account' -
activeBooleandefault=True -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>required=True -
journal_idMany2one → account.journalcheck_company=Truecomodel_name='account.journal' -
partner_idMany2one → res.partnercheck_company=Truecomodel_name='res.partner'required=Truestring='Petty Cash Holder' -
petty_cash_balanceFloatcompute='_compute_petty_cash_balance'string='Balance' -
petty_cash_limitFloatrequired=Truestring='Max Limit' -
transaction_countIntegercompute='_compute_transaction_count'string='Transactions'
-
action_open_transactions(self)
New fields (14)
-
account_idMany2one → account.accountcomodel_name='account.account' -
amountFloat -
balanceFloat -
company_idMany2one → res.companycomodel_name='res.company' -
creditFloat -
dateDate -
debitFloat -
expense_idMany2one → hr.expensecomodel_name='hr.expense' -
move_idMany2one → account.movecomodel_name='account.move'string='Document' -
nameChar -
partner_idMany2one → res.partnercomodel_name='res.partner' -
petty_cash_idMany2one → petty.cashcomodel_name='petty.cash'string='Petty Cash Holder' -
sheet_idMany2one → hr.expense.sheetcomodel_name='hr.expense.sheet'string='Expense Report' -
sourceSelectionselection=[('refill', 'Refill'), ('expense', 'Expense')]
No public methods.
Loading…
Loading…
Loading…
Loading…