OdooWiki OCA HUB

Store Attribute value sis Sales Order line fields

sale_order_line_field_from_product_attribute folder_open OCA/sale-workflow open_in_new
Sales/Sales License: AGPL-3

Allows storing Product Attribute values in a custom sales order line field. This can be useful to make easier reporting and data analysys on these attributes.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you choose a sales order line field where a product attribute value is automatically copied, so attribute values become available for reporting and analysis.

This module adds a setting on product attributes so their values can be copied automatically onto sales order lines.

  • On the product attribute form, a new field appears (only for attributes that do not create variants) where you can pick a field of the sales order line to store the attribute value in.
  • When a sales order line is saved with attribute values, the module looks at the attributes that have such a field selected and writes the attribute value into that field on the sales order line.
  • If the customer entered a custom value for the attribute, that custom value is stored; otherwise the standard attribute value name is stored.
  • This makes the attribute value a normal column on sales order lines, which is easier to use in reports, filters and analysis.

The module touches the product attribute configuration screen and the sales order line model. It does not add new menus or reports by itself.

Depends on

sale
Models and fields (2)
  • sale.order.line · extends an existing model
  • product.attribute · extends an existing modelstore_in_field

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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 16.0
  • Add a custom text field to Sales Order Line
  • Create an Attributes with Variants Creation Mode set to "Never"
  • In the Attribute, set the "Store In Field" with the custem text field created

On a Sales Order Line, when selecting a Product with the configured Attribute, the corresponding value will be copied in to custom text field. This also works for attribute custom values.

No verified information in OCA: Installation.

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.