OdooWiki OCA HUB

Product - Cost Price Tax Included

product_standard_price_tax_included folder_open OCA/product-attribute open_in_new
Product License: AGPL-3

this module extend Odoo Sale module to handle correctly the possibility to create and use pricelist based on the cost Price, if you are in a B2C configuration (VAT set with 'Price Tax inlude').

If you don't use VAT price tax Included, this module is useless.

Typical Use Case

You have a product :

  • Cost : 1000€ (Vat Excl)
  • Sale Price (Vat incl) : 2400€
  • VAT : 20% (Price with Tax included)

You have a marginless pricelist based on the cost

Without this module, if you create a sale order, the price will be bad, and you will sale under your cost price.

With this module installed, the price will be good and you will not loose the vat amount, when you realize this sale:

This module fixes the problem,

  • adding a new computed field 'Cost Price Tax Included' (standard_price_tax_included) on Product Product model, based on Cost Price Field and Sale Taxes Setting.
  • adding a new key standard_price_tax_included on the field base of the model product.pricelist.item.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a new computed "Cost Price Tax Included" field on products and a new pricelist base option, so you can build sale pricelists on the tax-included cost price and avoid selling below cost in B2C setups.

This module is useful when your sale taxes are configured with prices including tax (B2C style). It adds a new read-only field called "Cost Price Tax Included" on both product.product and product.template. The value is calculated automatically from the product's normal Cost Price and its sale taxes, so you always see the cost with tax included.

It also extends the pricelist rules (product.pricelist.item) with a new option in the "Based on" list: "Cost Price Tax Included". This lets you create a sale pricelist whose formula is based on the tax-included cost instead of the standard cost.

  • A new computed field "Cost Price Tax Included" appears on product forms and product variants.
  • On product templates with several variants, the field is only filled when there is a single variant; otherwise it shows zero.
  • The new pricelist base option is available when configuring pricelist items.
  • The value recalculates automatically when the cost price, the sale taxes, or the tax-included setting changes, and per company.

No new menus or reports are added. The module touches product pricing, product variants, sale taxes and pricelists. Demo data shows a 20% sale tax with prices including tax and a pricelist based on the tax-included cost.

Depends on

sale
Models and fields (3)
  • product.product · extends an existing modelstandard_price_tax_included (Cost Price Tax Included)
  • product.template · extends an existing modelstandard_price_tax_included (Cost Price Tax Included)
  • product.pricelist.item · extends an existing modelbase

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/product-attribute.

terminal Installation and usage

OCA documentation · Odoo 16.0

User can now set Price List based on this field:

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.