Repository navigation
[ADD] om_account_loan: loans - #210
Conversation
|
Hi @jbpilatre, @gg-vara, @Houssameddine-omar, @ezoer, @jp-sft, @JulioCaesarRBG 👋 You have each helped our accounting apps before (assets, financial reports, fiscal year, budgets), so we thought of you: no obligation at all, only if it interests you. This PR adds Loans and Leases for Odoo 20 Community (
It is already being tested on a real lab by @7kulk37. If you have a moment, a second look from your side would be very welcome: a review of the code, a quick install on your Odoo 20, or simply how it fits the way you book loans or leases in your country. Comments here or on #209, whichever you prefer. To try it: then install Thank you either way, and thanks again for your earlier contributions! |
8efbe60 to
cc09dd5
Compare
Loans and leases for Odoo 20 Community (issue #209). om_account_loan: - Loans: amortization schedule (equal instalments, fixed principal or imported from CSV/XLSX), drawdowns in tranches, instalments paid from the schedule, early repayment (shorter term or lower instalment), fixed or floating rate with dated rate changes, foreign currencies with exchange differences, withholding tax on the interest. - Leases: the lease liability at the present value of the payments, the lessor's vendor bill on each due date, in the way of IFRS 16. - Reclassification of the principal due within 12 months, by hand or monthly, listed in the Operations tab. - The terms of a running loan are locked: a new rate is a dated rate change, a new term an early repayment. - Reports: Loans and Leases at a date (screen, PDF in landscape), the loan schedule in PDF, the Loans Analysis pivot and graph. - Protection: posted lines and operations, lock dates, accountant role. - Store page, banner and screenshots, with a section for the users of Cash Forecast and Assets Management (add the bridge). om_account_loan_asset: the right-of-use asset of a lease, created at its recognition and depreciated over the lease term. om_account_loan_cash_forecast: the unpaid instalments and the lease payments in the cash forecast; om_account_cash_forecast gets a hook to add rows to the forecast. om_account_accountant: its store page presents the new app (a section and a card), and the new app opens the GIF of the Odoo Mates apps.
cc09dd5 to
dd7ae9d
Compare
|
/mergebot r+ |
|
Merging now. |
Closes #209 (phase 1: loans; leases follow in a second pull request).
Loans for Odoo 20 Community (
om_account_loan)A loan is a contract with its schedule; every movement posts its journal entry.
Bank side: the bank leg posts to the bank journal's outstanding receipts / payments account, as Odoo payments do, so the bank statement line reconciles with it. An option posts straight to the bank account for companies without statement imports.
Coming in phase 2
Leases with the lessor's vendor bills and an optional right-of-use asset, withholding tax on the interest, import of the lender's schedule. The store page and banner come before the merge.
Tests
41 tests (schedule maths, every entry, tranches, early repayment, floating rate, reclassification, report, currency, access, multi-company) and a browser tour. Reference values, e.g. 100,000 at 6% over 12 monthly payments: instalment 8,606.64, first interest 500.00, total interest 3,279.73.
Testing from this branch
Install
om_account_loan; the demo data has two loans (one floating rate in two tranches, one quarterly with fixed principal).