POS cash in-out reason
pos_cash_move_reason · OCA/pos
-
Security25/25No findings
-
Activity12/25Last human commit 22 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
view_pos_move_reason_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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 allow to define some reasons for the functionality of "Put Money In" and "Take Money Out" available in point of sale session.
So, with this module it's possible to impact directly an expense or income account which is defined on the related reasons and create according accounting entries.
Typical Use Case (not exhaustive)
- You want to track Bank deposit moves, using an intermediate bank account named 'Cash Awaiting Bank Deposit'. (In France, for instance, "581 - Espèce en attente d'encaissement")
- You want to allow payments from Cash Journal to pay recurring little expenses. (Gasoline, parking meter, etc.)
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_pos_move_reason_form |
pos.move.reason.form (in pos_cash_move_reason) | pos.move.reason | form | New |
view_pos_move_reason_tree |
pos.move.reason.tree (in pos_cash_move_reason) | pos.move.reason | tree | New |
view_pos_session_form |
pos.session.form (in pos_cash_move_reason) | pos.session | form | Inherits point_of_sale.view_pos_session_form |
view_wizard_pos_move_reason_form |
wizard.pos.move.reason | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
-
activeBooleandefault=True -
company_idMany2one → res.companycomodel_name='res.company'default=_default_company_idrequired=Truestring='Company' -
expense_account_idMany2one → account.accountcomodel_name='account.account'string='Expense Account' -
income_account_idMany2one → account.accountcomodel_name='account.account'string='Income Account' -
is_expense_reasonBooleandefault=True -
is_income_reasonBooleandefault=True -
journal_idsMany2many → account.journalcomodel_name='account.journal'default=_default_journal_idsstring='Accounting Journals' -
nameCharrequired=True
No public methods.
-
display_move_reason_expenseBooleancompute='_compute_display_move_reason' -
display_move_reason_incomeBooleancompute='_compute_display_move_reason'
-
button_move_expense(self) -
button_move_income(self)
-
amountFloatrequired=True -
journal_idMany2one → account.journalcomodel_name='account.journal'domain="[('id', 'in', journal_ids)]"required=Truestring='Journal' -
journal_idsMany2many → account.journalcomodel_name='account.journal'related='move_reason_id.journal_ids' -
move_reason_idMany2one → pos.move.reasoncomodel_name='pos.move.reason'required=Truestring='Move Reason' -
move_typeSelectiondefault=_default_move_typeselection=_MOVE_TYPE_SELECTION -
nameCharrequired=Truestring='Reason' -
session_idMany2one → pos.sessioncomodel_name='pos.session'default=_default_session_idreadonly=Truerequired=Truestring='Current Session'
-
apply(self) -
onchange_move_type(self)@api.onchange('move_type') -
onchange_reason(self)@api.onchange('move_reason_id')
Loading…
Loading…
Loading…
Loading…
Loading…