TIP: You can type at any time to perform a new search.
Cash basis extensions for vouchers
account_voucher_cash_basis · OCA/account-payment
- Repository
- OCA/account-payment · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Hidden/Dependency
- Folder size
- 0.12 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.agilebg.com
- Last tracking update
- 2026-08-07 07:03:08
- Authors
- Odoo Community Association (OCA), Agile Business Group
- Maintainers
- Odoo Community Association (OCA), Agile Business Group
- Committers
- eLBati, Stéphane Bidoul, Lorenzo Battistini, Pedro M. Baeza, Fekete Mihai, Stéphane Bidoul (ACSONE), Alex Comba, OCA Transbot, archetipo, OCA-git-bot, oca-travis
Code Analysis ⓘ
Views touched (4)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_account_config_settings |
view_account_config_settings | account.config.settings | Inherits account.view_account_config_settings | |
view_vendor_payment_form |
view_vendor_payment_form | account.voucher | form | Inherits account_voucher.view_vendor_payment_form |
view_vendor_receipt_dialog_form |
view_vendor_receipt_dialog_form | account.voucher | form | Inherits account_voucher.view_vendor_receipt_dialog_form |
view_vendor_receipt_form |
view_vendor_receipt_form | account.voucher | form | Inherits account_voucher.view_vendor_receipt_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (0)
No new fields.
Public methods (1)-
onchange_company_id(self, cr, uid, ids, company_id, context=None)
New fields (0)
No new fields.
Public methods (5)-
allocated_amounts_grouped_by_invoice(self, cr, uid, voucher, context=None)this method builds a dictionary in the following form { first_invoice_id: { 'allocated': 120.0, 'total': 120.0, 'total_currency': 0.0, 'write-off': -20.0, 'allocated_currency': 0.0, 'foreign_currency_id': False, # int 'currency-write-off': 0.0, } second_invoice_id: { 'allocated': 50.0, 'total': 100.0, 'total_currency': 0.0, 'write-off': 0.0, 'allocated_currency': 0.0, 'foreign_currency_id': False, 'currency-write-off': 0.0, } } every amout is expressed in company currency. In order to compute cashed amount correctly, write-off will be subtract to reconciled amount. If more than one invoice is paid with this voucher, we distribute write-off equally (if allowed) -
balance_move(self, cr, uid, move_id, context=None) -
get_invoice_total(self, invoice) -
get_invoice_total_currency(self, invoice) -
voucher_move_line_create(self, cr, uid, voucher_id, line_total, move_id, company_currency, current_currency, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…