| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Purchase (purchase)
• Invoicing (account) • Discuss (mail) |
| Lines of code | 52 |
| Technical Name |
no_auto_vendor |
| License | LGPL-3 |
| Website | https://www.oudayet.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Purchase (purchase)
• Invoicing (account) • Discuss (mail) |
| Lines of code | 52 |
| Technical Name |
no_auto_vendor |
| License | LGPL-3 |
| Website | https://www.oudayet.com |
Auto Vendor
Confirm a PO, the vendor sticks to the product.
Auto-link the vendor with a real lead time on PO confirm · No more re-adding vendors on every product · Zero JS · One toggle
Odoo 19 FREE · LGPL-3 For Buyers 9 LanguagesThe native auto-link sets delay to zero.
Odoo 19 already links the vendor to the product when you confirm a PO — but it sets the delivery lead time to zero, so every freshly linked vendor has no usable lead time. Reorder rules and replenishment scheduling end up planning with the wrong number, and buyers either accept it or edit each product's Purchase tab by hand.
Without this module
Confirm a PO whose lines say "delivery in 14 days". The freshly linked vendor on each product still says lead time = 0. You go edit the product Purchase tab, vendor by vendor.
With this module
Confirm the same PO. Each product's vendor link now carries a real lead time — the number of days between the order date and the planned receipt date. Reorder rules and the scheduler plan with the right number from the start.
What it does
Sets the lead time to the number of days between the order date and the planned receipt date, instead of the native zero. Falls back to 7 days when a date is missing.
It only fills in the delivery lead time and leaves everything else Odoo set untouched, so Studio tweaks and other modules keep working.
The lead-time calculation lives in its own method, so a developer can reshape it (working days, a safety buffer, and so on) without touching the rest of the module.
Odoo already skips a product that is already linked to that vendor — our lead-time injection respects the same rule, so no duplicates.
Settings → Purchase → Auto-Link Vendor on PO Confirm. Default ON. Disable without uninstalling.
Server-side Python only. One inherited model, one inherited settings view. Survives upgrades cleanly.
See it in action
Confirm a PO once — the vendor and its real lead time stick to the product.
The single Settings toggle — Purchase → Auto-Link Vendor on PO Confirm (default ON).
Confirm a PO whose lines carry a delivery date — no extra steps.
The auto-linked vendor lands on the product's Purchase tab with lead time inferred from the PO dates — not the native 0.
The new vendor link appears under Vendor Pricelists with the inferred lead time — ready for replenishment planning.
Available in 9 Languages
The settings toggle and field labels speak your team's language. Each user sees the interface in their own Odoo language setting — no extra setup.
Technical Details
| Odoo Version | 19.0 Community + Enterprise |
| Version | 19.0.1.1.0 |
| License | LGPL-3 (Free) |
| Languages | EN, FR, ES, DE, NL, PT-BR, IT, ZH-CN, AR |
| Dependencies | purchase |
| Override points | purchase.order._prepare_supplier_info, purchase.order._add_supplier_to_product |
| Records modified | Vendor lead time on the auto-created vendor link |
| Setting | no_auto_vendor.enabled (config_parameter, default True) |
Honest scope
✗ Does not touch vendors already linked to a product — only the rows the native auto-link creates on PO confirm get the inferred lead time.
✗ Does not retroactively recompute the lead time on vendor links that already exist.
✗ No working-day or calendar-buffer math out of the box — the delay is a plain calendar-day count (override the seam to reshape it).
When a PO line carries no planned date, the delay falls back to 7 days rather than 0 — a sensible default, not a measured lead time.
Disabling the toggle turns off the entire native auto-link for that confirmation, not just the delay enrichment.
FAQ
No. It rides on Odoo's native rule — a product already linked to that vendor is skipped, so no duplicate is created on the second PO.
It is the number of whole days between the order date and the line's planned receipt date, never below 0. If either date is missing, it defaults to 7 days.
Yes. Settings → Purchase → Auto-Link Vendor on PO Confirm is a single toggle. It defaults ON.
No. It is server-side only, with no JavaScript and no new database models — just a small tweak to the purchase-order confirmation and one settings toggle.
Installation
1. Download from the Odoo App Store.
2. Extract to your Odoo addons directory.
3. Apps → Update Apps List → Install Auto Vendor.
4. Confirm any PO with a brand-new (vendor, product) pair. The vendor link appears on the product's Purchase tab with the lead time inferred from the PO dates instead of the native 0.
Found a bug?
Reach out via the Odoo App Store contact form.
Auto Vendor — Free — Odoo 19
© Naim OUDAYET — LGPL-3
Please log in to comment on this module