| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Purchase (purchase) • Discuss (mail) |
| Lines of code | 316 |
| Technical Name |
last_vendor_bill_price |
| License | LGPL-3 |
| Website | https://saqeralmuntser.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Purchase (purchase) • Discuss (mail) |
| Lines of code | 316 |
| Technical Name |
last_vendor_bill_price |
| License | LGPL-3 |
| Website | https://saqeralmuntser.com |
Last Vendor Bill Price
See the last purchase price of any product right on your Purchase Orders and Vendor Bills — instantly, the moment you pick a product.
Stop Guessing Prices
Negotiating with a vendor? Reviewing a bill? Creating an RFQ? Always know exactly what you paid last time — both the market average (any vendor) and the specific vendor's last price — without running reports.
Key Features
Lightweight, zero-config, and works with your existing workflow.
Last Price (All)
The most recent unit price this product was purchased at, from any vendor. Great for market comparison.
Last Price (Vendor)
The most recent unit price from the same vendor selected on the current document. Perfect for negotiation.
Smart Data Source
Pulls from vendor bills and confirmed RFQs/POs, whichever is more recent. No bill yet? No problem — the PO price is used.
Currency Aware
Automatically converts prices to the current document's currency on the relevant date.
Unit of Measure Aware
Converts prices between different units of measure so you always compare apples to apples.
After-Discount Price
The reference price is computed after line discount, so you see the real effective unit price.
Live Update
Values appear the moment you select a product — no need to save first. Works on drafts too.
Permission Safe
Uses compute_sudo so every buyer sees the reference
price without needing to read other vendors' bills.
Arabic Translation
Ships with full Arabic translation. Works natively in RTL.
See It In Action
Two new columns — Last Price (All) and Last Price (Vendor) — appear right next to the unit price.
On Purchase Orders & RFQs
The moment you pick a product (Funghi in this example), the last purchase price from your history shows up — both globally and for the selected vendor.
On Vendor Bills
When entering a bill, instantly compare the current unit price to the last price paid — catch mistakes and price hikes before posting.
How The Reference Price Is Chosen
For each product (and optionally same vendor), the module scans both sources and picks the most recent entry.
| Source | Included States | Date Field |
|---|---|---|
Vendor Bill (account.move.line) |
Draft, Posted (excludes Cancelled) | Invoice Date |
Purchase Order (purchase.order.line) |
Sent, To Approve, Purchase, Done | Order Date |
Technical Details
Models Extended
account.move.linepurchase.order.line
Views Inherited
Vendor Bill form, Purchase Order form (list & form views)
New Fields
4 computed fields per model (price + date, all vendors + same vendor)
Dependencies
account, purchase
Storage
Stored computed fields for reliable live UI updates
License
LGPL-3
Please log in to comment on this module