- APPS
- Estimate Sale - Purchase 19.0
| Lines of Code | 424 |
| Technical name | viin_estimate_sale_purchase |
| License | OPL-1 |
| Website | https://viindoo.com/apps/modules/19.0/viin_estimate_sale_purchase |
| Required Apps | Invoicing (account) Purchase (purchase) Discuss (mail) |
| Included Dependencies | Estimate Purchase Estimate Sale Estimate Product Cost Access |
See what your vendors really billed for each line you quoted
For companies that quote from estimates and buy a service from a vendor for each sale
Count the vendor bills of purchases generated for orders from estimates as actual costs
Odoo Community · Viindoo Cloud · License OPL-1 · English, Vietnamese
Extends Estimate Sale so that the purchases made for its quotations come back to the estimate.
Extends Estimate Purchase so that the services bought on order count in Estimate vs Actual.
What changes for your team
Every purchase made for the deal, from the estimate
Today the quotation is confirmed, Odoo orders the service from the vendor, and the estimator has to search Purchase to find out what was bought for the job.
→ The Purchase Orders button of the estimate counts the purchases Odoo creates for every quotation of the estimate, with their vendor, source order, total and billing status one click away.
The vendor's bill is the actual cost of the line it serves
Today the cost accountant matches vendor bills to quotes by vendor and product, and copies the amounts into a spreadsheet beside the plan.
→ Once posted, the bill of a purchase made for a quotation line is the actual cost of the estimate line that quotation line sells: quantity, amount and variance against the plan, with nothing typed twice.
A bill counts once, wherever it is distributed
Today a bill spread over a project or a department is easily counted twice, or on the wrong job.
→ The bill counts for the estimate line its order line sells, once, whatever analytic account carries it. Two lines buying the same service each keep their own bill.
What you see as a manager
Did the services we bought for this job cost what we planned?
The plan comes from the estimate lines; the actual cost from the posted vendor bills of the purchases made for its quotations.
Features
Following purchases from the estimate
- ✓ Counts the purchases Odoo creates for every quotation of the estimate
- ✓ Counted with the purchases made from the estimate's materials
- ✓ Opens them in one click, limited to the orders you may read
Actual cost of services bought on order
- ✓ Posted vendor bills become the actual cost of the line sold
- ✓ Billed quantity and amount beside the plan, with the variance
- ✓ Each estimate line keeps its own bill, even for the same service
- ✓ Counted once, whatever the analytic distribution
- ✓ Credit notes and taxes follow the rules of Estimate Purchase
Buying for a deal
- ✓ Purchasers confirm and bill the generated orders as usual
- ✓ A purchase counts for the estimate its quotation comes from
Built for daily use
- ✓ No setting, menu or access right of its own
- ✓ Installs by itself with the modules it connects
- ✓ Only people who can read the sales order line buy for it
- ✓ Estimate managers who buy see the purchases without selling the order
Ready on day one
Nothing to configure
It installs by itself with Estimate Sale, Estimate Purchase and the Sale Purchase app, and works on the estimate, sales and purchase screens you already use.
What the product data needs
A service product with Subcontract Service ticked and a vendor with its price, so that Odoo buys it when the quotation is confirmed; see the Documentation tab.
Before you decide
Does it create the purchase orders?
No: Odoo creates them when the quotation is confirmed, for a service with Subcontract Service ticked. The module links them and their bills to the estimate. No purchase after confirming? Tick Subcontract Service on the product and give it a vendor.
When does a bill show in Estimate vs Actual?
When the bill is posted and the estimate is confirmed. A draft bill does not count: post it, or confirm the estimate.
Can a bill count twice, or on the wrong estimate?
It counts once, for the estimate the quotation comes from. An estimate created later from that purchase order keeps an actual cost of zero: read the cost on the quoted estimate. A hand-typed bill line that covers purchases of several estimates counts for one of them: enter one bill line per estimate.
Who sees what?
The Purchase Orders button is for Purchase users and lists the orders they may read: anyone else asks the administrator for that right. A purchaser links a purchase to an order line only when they can read it, or a purchase made for it; otherwise a message stops them, and someone who can read the sales order adds the line.
What does it take to install?
Estimate Sale, Estimate Purchase and the Sale Purchase app; it installs by itself when all three are there. Data stays in your database, with no outside service and no extra Python package.
Try it, then ask us
Open the live demo with the Live Preview button at the top of this page, and read the step-by-step guide in the Documentation tab.
Pre-sales & partnership
viindoo.com/contactusTechnical support
viindoo.com/ticketEstimate Sale - Purchase
Audience: cost accountants who compare the planned cost of the services bought on order with what vendors billed, sales managers and estimators who follow what is bought for a quotation of an estimate, purchasers who handle those purchases, and the administrator who gives people their access rights.
Note
Extends Estimate Sale - see its documentation.
Note
Extends Estimate Purchase - see its documentation.
Some services are bought from a vendor each time they are sold: when a quotation is confirmed, Odoo creates a request for quotation to the vendor of the service. Estimate Sale - Purchase links those purchases to the estimate the quotation comes from. The estimate lists them under its Purchase Orders button, and the vendor bills of the purchases become the actual cost of the estimate line that the quotation line sells, without anyone entering them by hand.
Overview
| Step | What happens | Where | Who acts |
|---|---|---|---|
| 1 | The estimate is quoted and the quotation is confirmed. Odoo creates a request for quotation for each service bought on order. | Create Quotation on the estimate, then the quotation | Estimator, salesperson |
| 2 | The purchaser confirms the order and enters the vendor bill. The estimate counts the order under Purchase Orders. | Purchase app, Purchase Orders button of the estimate | Purchaser, estimator |
| 3 | The posted vendor bill is the actual cost of the estimate line the quotation line sells. | Estimates ‣ Reporting ‣ Estimate vs Actual | Cost accountant |
| Role | What they do | Access right to assign |
|---|---|---|
| Administrator | Gives people their access rights. | Role: Administrator |
| Estimator or cost accountant | Follows the purchases of the estimate and reads the actual cost. | Estimate: User, with Purchase: User for the Purchase Orders button |
| Purchaser | Confirms the generated orders and enters their vendor bills. | Purchase: User, with the right to read the sales order the purchase is made for |
Setup (for the Administrator)
Install the app
Estimate Sale - Purchase is installed automatically when Estimate Sale, Estimate Purchase and the Odoo app Sale Purchase are all installed. Nothing else is to be configured.
Prepare the service
Odoo creates the purchase only for a service that is set up to be bought each time it is sold.
- Open the product and set its type to a service.
- Tick Subcontract Service and give the product a vendor with its price.
Give people their access rights
Open Settings ‣ Users & Companies ‣ Users, select the person and, in the Access Rights tab, select User on the Estimate line for an estimator or a cost accountant and User on the Purchase line for a purchaser. See the Estimate Purchase documentation for what each right shows.
Estimator: follow the purchases of an estimate
- Quote the estimate and confirm the quotation, as described in the Estimate Sale documentation.
- Open the estimate and click Purchase Orders.
The button counts the purchase orders Odoo created for the lines of every quotation of the estimate, together with the orders made from the materials of the estimate (see the Estimate Purchase documentation). Click it to open them. You see the orders you may read: a person without the Purchase: User right does not get the button.
Cost accountant: read the actual cost of the services bought on order
Open Estimates ‣ Reporting ‣ Estimate vs Actual, or click Actual Cost on the estimate.
For example, an estimate sells 20 hours of a service costed at 170 an hour and bought on order from a vendor at that price. The planned cost is 3,400. When the vendor bills 180 an hour and the bill is posted, the line shows an actual quantity of 20, an actual amount of 3,600 and a variance of 200.
The vendor bills count as follows:
- A bill counts once it is posted, for the estimate line that the quotation line sells. The rules of amounts, credit notes and unrecovered taxes are those of Estimate Purchase.
- The bill counts for that line whatever analytic account its lines are distributed to, and once only.
- Two lines of an estimate that buy the same service count separately, each with its own vendor bill.
Purchaser: buy for a quotation of an estimate
The purchaser works on the generated order as on any request for quotation: confirm it and enter the vendor bill in the Purchase app. You can add a purchase line for an order line of a quotation of an estimate, for example an alternative to a generated purchase, when you can read that order line or a purchase already generated for it. Otherwise the message "You can only buy for the sales order lines you can read, or for which a purchase you can read was already generated." appears.
Limits and their way out
| What you may notice | What to do |
|---|---|
| A purchase generated for a quotation line counts for the estimate of that quotation only. When an estimate is created from that purchase order with its Estimates button, its actual cost stays at zero. | Read the actual cost on the estimate that was quoted. Use the estimate made from the order to compare prices. |
| The Purchase Orders button lists only the orders you may read. | Ask the administrator for the Purchase: User right, or ask a purchaser to open the orders. |
| The message "You can only buy for the sales order lines you can read..." appears when you add a purchase line for an order line of an estimate. | Ask someone who can read the sales order to add the line, or ask the administrator for the Sales right. |
| One hand-typed bill line covers the purchases of several estimates, so it counts for one of them. | Enter one bill line for each estimate. |
Troubleshooting
- No purchase is created when the quotation is confirmed. The product is not a service, or Subcontract Service is not ticked on it.
- The Purchase Orders button is not on the estimate. No order is linked to the estimate yet, or the person does not have the Purchase: User right.
- A vendor bill is not in Estimate vs Actual. The bill is not posted yet, or the estimate is not confirmed.
FAQ
Does the module create the purchase order? No. Odoo creates it when the quotation is confirmed, with the Sale Purchase app. The module links it to the estimate.
Which estimate gets the actual cost of a purchase made for a quotation of two estimates? Each purchase line is linked to its quotation line, and the actual cost goes to the estimate line that quotation line sells.
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.