pos.order.line: fields, relations and API
The pos.order.line model ("Point of Sale Order Lines") is a persistent model declared by the Point of Sale module, then extended by 7 other modules. It exposes 54 fields, 48 of them declared directly on the model; 6 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 19 JSON-2 API call.
Model identity
- Technical name
pos.order.line- Label
- Point of Sale Order Lines
- Type
- Persistent (models.Model)
- SQL table
pos_order_line- Origin module
- Point of Sale (
point_of_sale) - Extended by
- l10n_fr_pos_cert, pos_event, pos_sale, pos_restaurant, pos_loyalty, pos_mrp, pos_self_order
- Display field (_rec_name)
product_id- Inherits from (mixins)
- pos.load.mixin
Model fields
48 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
54 of 54 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| attribute_value_ids | Selected Attributes | many2many | |
| combo_id | Combo reference | many2one | added by POS Self Order ( |
| combo_item_id | Combo Item | many2one | |
| combo_line_ids | Combo Lines | one2many | inverse: |
| combo_parent_id | Combo Parent | many2one | |
| company_id | Company | many2one | related: |
| coupon_id | Coupon The coupon used to claim that reward. | many2one | added by Point of Sale - Coupons & Loyalty ( |
| course_id | Course Ref | many2one | added by Restaurant ( |
| currency_id | Currency | many2one | related: |
| custom_attribute_value_ids | Custom Values | one2many | inverse: |
| customer_note | Customer Note | char | |
| discount | Discount (%) | float | |
| down_payment_details | Down Payment Details | text | added by POS - Sales ( |
| event_registration_ids | Event Registrations | one2many | inverse: added by POS - Event ( |
| event_ticket_id | Event Ticket | many2one | added by POS - Event ( |
| extra_tax_data | Extra Tax Data | json | |
| full_product_name | Full Product Name | char | |
| is_edited | Edited | boolean | |
| is_reward_line | Is Reward Line Whether this line is part of a reward or not. | boolean | added by Point of Sale - Coupons & Loyalty ( |
| is_total_cost_computed | Is Total Cost Computed Allows to know if the total cost has already been computed or not | boolean | |
| margin | Margin | monetary | computed |
| margin_percent | Margin (%) | float | computed |
| name | Line No | char | required |
| note | Product Note | char | |
| notice | Discount Notice | char | |
| order_id | Order Ref | many2one | required |
| pack_lot_ids | Lot/serial Number | one2many | inverse: |
| points_cost | Points Cost How many point this reward cost on the coupon. | float | added by Point of Sale - Coupons & Loyalty ( |
| price_extra | Price extra | float | |
| price_subtotal | Tax Excl. | monetary | requiredread-only |
| price_subtotal_incl | Tax Incl. | monetary | requiredread-only |
| price_type | Price Type | selection | Values: |
| price_unit | Unit Price | float | |
| product_id | Product | many2one | required |
| product_uom_id | Product Unit | many2one→ uom.uom | related: |
| qty | Quantity | float | |
| qty_delivered | Delivery Quantity | float | computed, stored added by POS - Sales ( |
| refund_orderline_ids | Refund Order Lines Orderlines in this field are the lines that refunded this orderline. | one2many | inverse: |
| refunded_orderline_id | Refunded Order Line If this orderline is a refund, then the refunded orderline is specified in this field. | many2one | |
| refunded_qty | Refunded Quantity Number of items refunded in this orderline. | float | computed |
| reward_id | Reward The reward associated with this line. | many2one | added by Point of Sale - Coupons & Loyalty ( |
| reward_identifier_code | Reward Identifier Code Technical field used to link multiple reward lines from the same reward together. | char | added by Point of Sale - Coupons & Loyalty ( |
| sale_order_line_id | Source Sale Order Line | many2one | added by POS - Sales ( |
| sale_order_origin_id | Linked Sale Order | many2one | added by POS - Sales ( |
| tax_ids | Taxes | many2many | read-only |
| tax_ids_after_fiscal_position | Taxes to Apply | many2many | computed |
| total_cost | Total cost | float | read-only |
| uuid | Uuid | char | read-only |
| create_date | Created on | datetime | read-onlyautomatic |
| create_uid | Created by | many2one | read-onlyautomatic |
| display_name | Display Name | char | read-onlycomputedautomatic |
| id | ID | integer | read-onlyautomatic |
| write_date | Last Updated on | datetime | read-onlyautomatic |
| write_uid | Last Updated by | many2one | read-onlyautomatic |
Relations
Models linked from this model
- account.tax: tax_ids, tax_ids_after_fiscal_position
- event.event.ticket: event_ticket_id
- event.registration: event_registration_ids
- loyalty.card: coupon_id
- loyalty.reward: reward_id
- pos.order: order_id
- pos.order.line: combo_line_ids, combo_parent_id, refund_orderline_ids, refunded_orderline_id
- pos.pack.operation.lot: pack_lot_ids
- product.attribute.custom.value: custom_attribute_value_ids
- product.combo: combo_id
- product.combo.item: combo_item_id
- product.product: product_id
- product.template.attribute.value: attribute_value_ids
- res.company: company_id
- res.currency: currency_id
- restaurant.order.course: course_id
- sale.order: sale_order_origin_id
- sale.order.line: sale_order_line_id
- uom.uom: product_uom_id
Fields of other models pointing here
- account.tax: pos_order_line_ids
- event.registration: pos_order_line_id
- pos.order.line: combo_parent_id, refunded_orderline_id
- pos.pack.operation.lot: pos_order_line_id
- product.attribute.custom.value: pos_order_line_id
Reading this model through the API
Odoo 19 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 -X POST "https://your-instance.odoo.com/json/2/pos.order.line/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["product_id","name","order_id","price_subtotal","price_subtotal_incl"],"limit":5}'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}/pos.order.line/search_read",
headers=headers,
json={"domain": [], "fields": ["product_id","name","order_id","price_subtotal","price_subtotal_incl"], "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/pos-order-line">pos.order.line (Odoo 19.0)</a>Sources
Data verified on September 23, 2026 · Odoo 19.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.