Purchase Refund: Vendor Credit Notes for Returned Quantities
by Aerya IT Solutions https://aerya.net$ 4.38
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Returns to the vendor on their own credit note
When a purchase order has received quantities to bill and returned quantities at the same time, Odoo's Create Bill makes one bill with negative lines, a document your vendor never issues. This module makes a vendor bill for what arrived and a vendor credit note for what went back, with positive quantities.
Positive quantities on the credit note, same prices and taxes
Each document links to the other in its chatter
Company option, on by default
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 17 Enterprise with the data of a fictitious company.
mixed orders, only returns, the company option, credit notes from an order, settings and forms in the browser
no warnings, on the four versions
Community and Enterprise
One click, two documents
On a purchase order with returns, Create Bill opens both documents: the vendor bill of the received quantities and the vendor credit note of the returned ones, each with the vendor, the order, the vendor reference, the payment terms and the journal of the order.

They know about each other
The bill notes where the returned quantities went, the credit note where it comes from. The billed quantities of the order stay exact: the credit note lowers them like a negative bill line would.

More screenshots

The option in the Purchase settings
The problem: a bill with negative lines
You received part of an order and sent part of it back. When you click Create Bill, Odoo puts the received quantities and the returned ones on one vendor bill, the returned ones as negative lines. Your vendor never issued such a document: they bill the goods they delivered and credit the goods that came back, on two documents. A bill with negative lines is hard to match against the vendor's real bill and credit note, and in Romania the e-Factura types are different (380 for the invoice, 381 for the credit note).
What the module does
Purchase Refund splits that bill. Create Bill on a purchase order with both received and returned quantities makes a vendor bill for what arrived and a vendor credit note for what went back, with positive quantities. It needs only the Purchase app.
How it works, step by step
- Work as usual. Receive the goods, then return part of them, in Inventory.
- Click Create Bill on the purchase order. When some quantities to bill are positive (received, not billed) and some negative (billed, then returned), the module splits the result.
- Read the two documents. The positive lines stay on the vendor bill. The negative ones move to a new vendor credit note with positive quantities, the same price, taxes, analytic distribution and purchase order line.
- Follow the links. The chatter of each document says where the other one is.
- Check and post. Compare both with the vendor's documents and post them.
Details that matter
- When returns outweigh receipts, Odoo itself turns the bill into a credit note. The module then moves the received quantities to a bill of their own.
- The credit note from the order (Odoo 17 and 18). The Auto-Complete field of vendor bills is also shown on vendor credit notes. Choosing a purchase order brings only its returned quantities, as positive quantities. Odoo 19 and 20 do this themselves, so the module leaves it to them there.
- Only drafts made by Create Bill are split. Posted documents are never touched, and a bill you enter by hand is left alone.
- Orders with only receipts, or only returns, are left to Odoo.
Settings and access
One company option, Separate Vendor Credit Notes for Returns, in Purchase > Configuration > Settings > Invoicing. It is on by default. Switch it off and Odoo's single bill comes back. The module adds no menu and no access group: whoever may create a bill from an order gets the split.
What it does not do
- It does not split bills entered by hand, only the result of Create Bill.
- It does not match the credit note with the vendor's own document. You compare them and post them.
- It does not touch posted documents.
- It does not change how Odoo receives or returns goods.
Requirements
Odoo 17, 18, 19 and 20, Community and Enterprise. It needs only the Odoo Purchase app (purchase). It has Python code, so it runs on Odoo.sh and on-premise, not on Odoo Online. Translations: Spanish and Romanian.
Questions
Can I keep the single bill?
Yes. Switch off Separate Vendor Credit Notes for Returns in the Purchase settings.
Are the prices and taxes the same on the credit note?
Yes. The credit note takes the same price, taxes, analytic distribution and purchase order line, with positive quantities.
Does it change a posted bill?
No. Only the draft documents made by Create Bill are split.
Do the billed quantities of the order stay right?
Yes. The credit note lowers them like a negative bill line would.
What happens if I uninstall it?
Create Bill goes back to Odoo's own behaviour. The documents already made stay as they are.
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 | 145 |
| Technical Name |
aerya_purchase_refund |
| 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