OdooWiki OCA HUB

Delivery Price Product Domain

delivery_price_product_domain folder_open OCA/delivery-carrier open_in_new
Delivery License: AGPL-3

This module allows to set a domain of applicability on products when calculating shipping charged based on rules. A possible use case could be: when calculating shipping fee using a rule based on price of products, only take into consideration price of storable and consumable products.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Lets you restrict which products count when Odoo calculates shipping charges from delivery price rules, by setting a product filter on each rule.

This module adds a new field called "Apply to products" on each line of a delivery carrier's pricing rules. You fill it in with a product filter (the same kind of filter used elsewhere in Odoo, for example "only storable and consumable products").

When Odoo computes the shipping cost of a sales order, it now looks at that filter. Only the order lines whose product matches the filter are used to build the totals (price, weight, volume, quantity and untaxed amount) that the pricing rule checks. Lines that do not match are removed from those totals, so a rule based on order price, weight or quantity will only react to the products you selected.

  • The filter is entered directly on the delivery price rule form, in a new group at the top.
  • If a rule has no filter, the module falls back to the standard Odoo calculation.
  • The free-shipping threshold and the rule matching logic still work as before, but on the filtered totals.
  • Delivery lines themselves are excluded from weight, volume and quantity, as in standard Odoo.

It touches the delivery carrier and delivery price rule models, and the sales order lines used to compute the shipping price. No new menus or reports are added.

Depends on

Models and fields (2)
  • delivery.carrier · extends an existing model
  • delivery.price.rule · extends an existing modelapply_product_domain (Apply to products)

Text generated by AI (DeepSeek) from reading the Odoo 14.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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/delivery-carrier.

terminal Installation and usage

OCA documentation · Odoo 14.0

Go to Sales > Configuration > Shipping methods, select or create a record with Provider = Based on rules Open a pricing rule > field "Apply to products" is available to set which products should be taken into consideration in both "Condition" and "Delivery cost" fields.

No verified information in OCA: Installation, Configuration.

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.