MODULES / OPERATIONS
Vendor Debit Note Stock Returns
Return tracked goods to a supplier from a posted vendor bill using the existing debit-note and inventory posting workflows.
Overview
| Module id | ask_creditnote_stock_return |
|---|---|
| Version | 1.0.0 |
| Who uses it | Anyone who uses the screens listed below. |
| Installed | On demand, from Settings → Modules. Anything it needs is installed with it. |
How it links to other modules
- Needs: Vendor Bills, Inventory
- Works better with: no other module in particular
- Needed by: no other module
A module that is needed cannot be turned off while the module that needs it is on.
Details
Vendor Debit Note Stock Returns
This optional addon adapts the vendor-refund part of Odoo 18's ask_creditnote_stock_return module to ASKERP's vendor bill and inventory workflows. ASKERP keeps financial debit notes and physical stock movements explicit: users choose the quantities and locations to return rather than having every posted debit note silently move stock.
The addon starts from a posted bill for tracked goods. It creates a linked draft debit note and posts supplier-return inventory documents in the same transaction, using the existing invoice and stock services. Returned quantities are capped against earlier returns for the same bill and product. The normal inventory service applies AVCO valuation, GRNI entries, lock dates, audit events, and tenant constraints. The debit note remains subject to the ordinary review, approval, and posting flow. For a financial-only adjustment, use the existing Create Debit Note action.
The addon depends on Purchase and Inventory and has no separate schema or accounting path. It does not import Odoo's automatic-post behavior because a vendor credit does not by itself prove that goods physically left the warehouse.
Validation: npx vitest run addons/ask_creditnote_stock_return/addon.test.ts.