Repository
OCA/hr-expense · module folder · Try on Runboat
Module version
1.2.0
Category
Human Resources
Folder size
0.11 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/hr-expense
Last tracking update
2026-08-07 08:42:58
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Saran440, Weblate, OCA-git-bot, oca-ci, Bhavesh Heliconia
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module work about expense that paid by petty cash.

General Process:

1.  Create Petty Cash Holder
2.  Transfer cash to Petty Cash Holder (by using Vendor Bill)
3.  You can create expense paid by petty cash and select petty cash
    holder.
4.  Then balance of petty cash holder less than amount of expense, you
    must transfer cash to petty cash holder before Submit Report to
    Manager.

Code Analysis

Views touched (9)
XML IDNameModelTypeStatus
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
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • is_petty_cash Boolean
    string='Petty Cash'
Public methods (1)
  • action_post(self)

New fields (2)
  • payment_mode Selection
    ondelete={'petty_cash': 'set default'} selection_add=[('petty_cash', 'Petty Cash')]
  • petty_cash_id Many2one → petty.cash
    check_company=True comodel_name='petty.cash' ondelete='restrict' string='Petty cash holder'
Public methods (0)

No public methods.

New fields (1)
  • petty_cash_id Many2one → petty.cash
    comodel_name='petty.cash' compute='_compute_petty_cash' ondelete='restrict' store=True string='Petty cash holder'
Public methods (2)
  • action_open_account_moves(self)
  • action_sheet_move_post(self)

New fields (7)
  • account_id Many2one → account.account
    check_company=True comodel_name='account.account' required=True string='Petty Cash Account'
  • active Boolean
    default=True
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True
  • journal_id Many2one → account.journal
    check_company=True comodel_name='account.journal'
  • partner_id Many2one → res.partner
    check_company=True comodel_name='res.partner' required=True string='Petty Cash Holder'
  • petty_cash_balance Float
    compute='_compute_petty_cash_balance' string='Balance'
  • petty_cash_limit Float
    required=True string='Max Limit'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
889 days ago
Last activity
32 days ago
Repository
OCA/hr-expense
Pull request
[16.0][MIG] hr_expense_petty_cash (#228)