Odoo 20.0 Community · Persistent

sale.order.template.line: fields, relations and API

The sale.order.template.line model ("Quotation Template Line") is a persistent model declared by the Sales module, then extended by 2 other modules. It exposes 32 fields, 26 of them declared directly on the model; 2 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 20 JSON-2 API call.

Model identity

Technical name
sale.order.template.line
Label
Quotation Template Line
Type
Persistent (models.Model)
SQL table
sale_order_template_line
Origin module
Sales (sale_management)
Extended by
sale_project, sale_margin
Default order (_order)
sale_order_template_id, sequence, id
Inherits from (mixins)
product.catalog.line.mixin

Model fields

26 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.

32 of 32 fields shown

Technical nameLabelTypeDetails
allowed_uom_idsAllowed Uommany2many
computed
collapse_compositionCollapse Compositionboolean
collapse_pricesCollapse Pricesboolean
company_idCompanymany2one

related: sale_order_template_id.company_id

discountDiscount (%)float
display_typeDisplay Typeselection

Values: line_section (Section), line_subsection (Subsection), line_note (Note)

is_configurable_productIs the product configurable?boolean

related: product_template_id.has_configurable_attributes

is_optionalOptional Lineboolean
labelLabeltext
computed
mandatory_productIs Product Mandatoryboolean
computed
nameDescriptiontext
computed, storedtranslatable
parent_idParent Section Linemany2one
computed
price_unitUnit Pricefloat
product_custom_attribute_value_idsCustom Valuesone2many
computed, stored

inverse: sale_order_template_line_id

product_idProductmany2one
product_no_variant_attribute_value_idsExtra Valuesmany2many
computed, stored
product_template_attribute_value_idsProduct Template Attribute Valuemany2many

related: product_id.product_template_attribute_value_ids

product_template_idProduct Templatemany2one
computed
product_uom_idUnitmany2one
computed, stored
product_uom_qtyQuantityfloat
required
purchase_priceUnit Costfloat

added by Margins in Sales Orders (sale_margin)

sale_order_template_idQuotation Template Referencemany2one
required
section_qtySection Quantityfloat
computed, stored
section_uom_idSection Unit of Measuremany2one
computed, stored
sequenceSequence

Gives the sequence order when displaying a list of sale quote lines.

integer
tax_idsTaxesmany2many
create_dateCreated ondatetime
read-onlyautomatic
create_uidCreated bymany2one
read-onlyautomatic
display_nameDisplay Namechar
read-onlycomputedautomatic
idIDinteger
read-onlyautomatic
write_dateLast Updated ondatetime
read-onlyautomatic
write_uidLast Updated bymany2one
read-onlyautomatic

Relations

Models linked from this model

Fields of other models pointing here

Reading this model through the API

Odoo 20 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.

curl
curl -X POST "https://your-instance.odoo.com/json/2/sale.order.template.line/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["name","product_uom_qty","sale_order_template_id","company_id","product_id"],"limit":5}'
Python (requests)
import requests

BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}

res = requests.post(
    f"{BASE_URL}/sale.order.template.line/search_read",
    headers=headers,
    json={"domain": [], "fields": ["name","product_uom_qty","sale_order_template_id","company_id","product_id"], "limit": 5},
)
res.raise_for_status()
print(res.json())
  • External API access requires Odoo's Custom plan.
  • XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
  • The access rights and record rules of the key's user apply.

Cite this tool

Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.

<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/sale-order-template-line">sale.order.template.line (Odoo 20.0)</a>

Sources

Data verified on September 25, 2026 · Odoo 20.0 Community

Have an Odoo project, or want to put your ERP to work with AI? Let's talk

Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.