Purchase Prepayment: vendor advance and down payment on purchase orders
by Aerya IT Solutions https://aerya.net$ 54.79
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Purchase Prepayment: vendor advance and down payment on purchase orders
Request a prepayment on a confirmed purchase order, as a percentage or a fixed amount. The module drafts the vendor advance bill on a prepayment account, deducts it on the final vendor bill and shows what was advanced, paid and is still open.
Deducted on the final bill as negative lines, oldest first
Advanced, paid, deducted and remaining on every order
Refund the remaining, foreign currencies, open prepayments per vendor
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 19 Enterprise with the data of a fictitious company. The module works on Community and Enterprise.
request, limits, deduction, refund, currencies, report, security, browser
Odoo core only (Purchase), no other module needed
code review against Odoo's security rules, findings fixed
no warnings
Request a prepayment from the order
On a confirmed purchase order, Request prepayment asks for a percentage of the order or a fixed amount, both without tax. The taxes are the ones the order lines share, and you can change them, the bill date, the payment terms and the vendor reference. The window shows the tax and the total before you create the draft vendor bill.
An order can take several prepayments. Together they never go above the order total without tax.

Advanced, paid, deducted, left
The order gets a Prepayments button and page: each prepayment with its state (bill in draft, billed, paid, settled, cancelled), the amount, what the final bills deducted and what is left, with totals under the table. Amounts are in the order currency; the company currency amount feeds the report.

Deducted on the final bill
When you create the vendor bill from the order, one negative line per open prepayment is added, on the same account and with the same taxes. The tax and the amount to pay come out right. Prepayments are taken oldest first and never above the goods the bill carries; the Deduct prepayments button does the same on a draft bill created another way and can be run again.
A setting changes the mode: all at the first bill (default), or in proportion, so each partial bill takes only its share of every prepayment. A second draft bill never deducts a prepayment that is already used by another.

Open prepayments per vendor
Purchase › Orders › Purchase prepayments lists every prepayment with its order, bill and amounts, grouped by vendor. Reporting › Open prepayments is a pivot of what vendors still hold, in the company currency, by state.

The accounting
Payments are the normal bill payments; nothing is posted behind your back.
debit the prepayment account and the tax, credit the vendor payable
debit the expense or stock accounts, credit the vendor payable; one negative line per prepayment credits the prepayment account and reverses its tax
the prepayment account is back to zero, you pay the difference
refund remaining drafts a vendor credit note for what was not deducted
More screenshots

The advance bill, paid, with the link back to the prepayment

One prepayment: amounts, account, taxes and its deductions

Purchase prepayments, open ones grouped by vendor

Settings: prepayment account, deduction mode
How it works
Set the prepayment account once in Settings › Purchase › Purchase prepayments.
On a confirmed order press Request prepayment: percentage or amount, taxes, date. A draft vendor bill is created.
Post the bill and pay it like any vendor bill. The order shows what was advanced and paid.
Create the final bill from the order: the prepayments are deducted on it, you check it and post it.
Compatibility
| Versions | Odoo 17, 18, 19, 20 |
| Editions | Community and Enterprise |
| Requires | Purchase (Odoo core), nothing else |
| Documents | Draft vendor advance bill, negative lines on the final bill, vendor credit note for a refund |
| Currencies | The order currency on the advance bill and the final bill; amounts in the company currency in the report |
| Odoo 18 to 20 | Their own down payment line on purchase orders (recorded from an existing vendor bill) stays untouched; this module starts from the order |
| Languages | English, German, Spanish, French, Romanian |
What it stops on
A message names the case instead of computing a doubtful result: an order that is not confirmed or has no amount, no prepayment account in the settings, a percentage outside 1 to 100, a tax that includes the price, prepayments above the order total, a deduction on a bill that is not a draft vendor bill or is in another currency than the order, a posted prepayment cancelled (refund it instead), an advance bill cancelled while a final bill uses it, an order cancelled while a prepayment is open.
Not included: the exchange difference between the prepayment date and the final bill date is not posted for you, no payment is created for the prepayment (use the bill payment), and a credit note is not reconciled with its bill automatically.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 19, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Purchase (purchase)
• Invoicing (account) • Discuss (mail) |
| Lines of code | 1048 |
| Technical Name |
aerya_purchase_prepayment |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module