MODULES / OPERATIONS
Vendor Bill Purchase Cost Reference
Keep the latest posted vendor-bill unit cost as an informational purchase reference and PO price suggestion.
Overview
| Module id | ask_vendor_bill_cost_update |
|---|---|
| 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
- 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 Bill Purchase Cost Reference
This addon adapts the purchase-reference behavior of Odoo 18's ask_vendor_bill_cost_update from D:/Odoo18/asksol/custom_addons. After a vendor bill posts through ASKERP's ordinary invoice posting service, the latest posted bill price for each product is stored as an informational company purchase reference. A newer posted bill by bill date (then stable invoice/line order) replaces it; an older backdated bill cannot move it backwards. Existing posted bill history is backfilled when migration 0124 is applied.
The reference is net of the saved line discount and expressed in company currency, per ASKERP's product unit. Where the module is installed, it appears on the product record and pre-fills the editable purchase-order unit-price field. The buyer may change it. References link to their source bill and write an audit event and bill timeline entry.
ASKERP does not store an editable standard_price; inventory valuation is derived from append-only stock movements using AVCO. This addon therefore never changes stock cost layers, inventory valuation, journal entries, or posted financial history. Vendor bills and accounting remain on their normal posting path. Disabling the addon preserves the reference evidence and stops future updates/defaults until it is enabled again.