Account Cash Deposit
account_cash_deposit · OCA/account-financial-tools
-
Security25/25No findings
-
Activity12/25Last human commit 23 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
AccountCashDeposit— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. (2 occurrences in this file) migration-sql-constraints · sourceCashUnit— 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 adds support for cash deposits at the bank. It also supports the other way around: ordering cash at the bank. It allows to declare the kind of cash you want to deposit (or order): bank notes, coins and coin rolls and the quantity for each of them. Coins are rarely used, because most banks only allow to deposit/order coin rolls.
Dependencies
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 |
|---|---|---|---|---|
account_cash_deposit_form |
account.cash.deposit | form | New | |
account_cash_deposit_search |
account.cash.deposit | search | New | |
account_cash_deposit_tree |
account.cash.deposit | list | New | |
account_cash_order_reception_form |
account.cash.order.reception | form | New | |
cash_unit_form |
cash.unit | form | New | |
cash_unit_tree |
cash.unit | list | New | |
report_cashdeposit |
report_cashdeposit | ir.ui.view | qweb | New |
view_currency_form |
res.currency | form | Inherits base.view_currency_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
-
bank_journal_idMany2one → account.journalcheck_company=Truedomain="[('company_id', '=', company_id), ('type', '=', 'bank'), ('bank_account_id', '!=', False)]"required=Truestring='Bank Account'tracking=True args: 'account.journal' -
cash_journal_idMany2one → account.journalcheck_company=Truedomain="[('company_id', '=', company_id), ('type', '=', 'cash')]"required=Truestring='Cash Box'tracking=True args: 'account.journal' -
coin_amountMonetarycurrency_field='currency_id'help='If your bank has a coin counting machine, enter the total amount of coins counted by the machine instead of creating a line for each type of coin.'string='Loose Coin Amount'tracking=True -
company_idMany2one → res.companyrequired=Truetracking=True args: 'res.company' -
currency_idMany2one → res.currencyrequired=Truetracking=True args: 'res.currency' -
dateDatecopy=Falsehelp='Used as date for the journal entry.'tracking=True -
is_reconcileBooleancompute='_compute_is_reconcile'store=Truestring='Reconciled' -
line_idsOne2many → account.cash.deposit.linestring='Lines' args: 'account.cash.deposit.line', 'parent_id' -
move_idMany2one → account.movecheck_company=Truereadonly=Truestring='Journal Entry' args: 'account.move' -
nameCharcopy=Falsedefault=<expr>readonly=Truesize=64string='Reference' -
notesText -
operation_typeSelectionreadonly=Truerequired=True args: [('deposit', 'Cash Deposit'), ('order', 'Cash Order')] -
order_dateDatedefault=fields.Date.context_today -
stateSelectiondefault='draft'readonly=Truestring='Status'tracking=True args: [('draft', 'Draft'), ('confirmed', 'Confirmed'), ('done', 'Done')] -
total_amountMonetarycompute='_compute_total_amount'currency_field='currency_id'precompute=Truestore=Truetracking=True
-
backtodraft(self) -
confirm_order(self) -
create(self, vals_list)@api.model_create_multi -
currency_change(self)@api.onchange('currency_id') -
default_get(self, fields_list)@api.model -
unlink(self) -
validate(self, force_date=None)
-
cash_unit_idMany2one → cash.unitdomain="[('currency_id', '=', currency_id)]"required=True args: 'cash.unit' -
currency_idMany2onerelated='parent_id.currency_id'store=True -
parent_idMany2one → account.cash.depositondelete='cascade' args: 'account.cash.deposit' -
qtyIntegerstring='Quantity' -
subtotalMonetarycompute='_compute_subtotal'precompute=Truestore=True -
tree_orderFloatrelated='cash_unit_id.tree_order'store=True
No public methods.
-
currency_idMany2onerelated='order_id.currency_id' -
dateDatedefault=fields.Date.context_todayrequired=Truestring='Cash Reception Date' -
order_idMany2one → account.cash.depositreadonly=Truestring='Cash Order' args: 'account.cash.deposit' -
total_amountMonetaryrelated='order_id.total_amount'
-
default_get(self, fields_list)@api.model -
run(self)
-
activeBooleandefault=True -
auto_createSelectionhelp='If set, a line for this cash unit will be created by default on a new cash deposit or a new cash order or both.' args: [('deposit', 'Deposit'), ('order', 'Order'), ('both', 'Both')] -
cash_typeSelectionhelp='This field should never be modified.'required=Truestring='Type' args: [('note', 'Note'), ('coin', 'Coin'), ('coinroll', 'Coin Roll')] -
coinroll_qtyIntegerhelp='This field should never be modified.'string='Coin Quantity' -
currency_idMany2one → res.currencyondelete='cascade' args: 'res.currency' -
total_valueMonetarycompute='_compute_all'store=True -
tree_orderFloatcompute='_compute_all'store=True -
valueMonetaryhelp='This field should never be modified. For a coin roll, you must enter the value of the coin.'required=True
-
name_search(self, name='', args=None, operator='ilike', limit=100)@api.model
-
cash_unit_idsOne2many → cash.unitstring='Cash Units' args: 'cash.unit', 'currency_id'
No public methods.
Loading…
Loading…
Loading…