Skip to main content

Store Product Attribute Values in Sale Order Lines

Project description

Alpha License: LGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

This module extends the functionality of Sale Order Lines to support view and filter by Product Attribute Values used.

Table of contents

Use Cases / Context

This module was developed because there is no way to know what Product Attribute Values has been used on a product if there is only one attribute configured in the product with “Never create variants” mode.

It will be useful for you if you want to know which Product Attribute Values has been used in which Sale Order Lines.

If you need this module for those reasons, these might interest you too:

  • sale_order_line_menu

Configuration

This module will not trigger the recomputation of the lines attributes when installing only this module. This will avoid the installation timeout.

If you later want to recompute the lines, you can use a scheduled action similar to this one:

env["sale.order.line"].search([
  ("product_template_id.attribute_line_ids", "!=", []),
])._compute_all_product_template_attribute_value_ids()

Usage

To use this module, you need to:

  1. Create an Attribute called “Trademark” (for example) with Display Type “Pills”, Variants Creation Mode “Never” and add an Attribute Value called “Adidas”

  2. Create a product called “Shoe Adidas REF 123” and “Show Adidas REF 456”

  3. Add “Trademark: Adidas” on Attributes & Variants tab on both products and configure (you can set an incremented price if you want)

  4. Sell both products in a Sale Order

  5. Created Sale Order Lines has Product Template Attribute Values and Attribute Values its lines.

  6. If you has installed sale_order_line_menu, you can check those values on Sale > Orders > Order Lines.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Moduon

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

Shide rafaelbn

This module is part of the OCA/sale-workflow project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_sale_order_line_product_attribute_values-16.0.1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_sale_order_line_product_attribute_values-16.0.1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e78f19942e8a07587aa93a6f7e567a2a6a20647fb3e422526749d6b15ec3280
MD5 3cae27f8fe4ce6bd1dddf267ee60f0f7
BLAKE2b-256 f886e8bc344401a98bcad0309a66e12fb8f2d9c47f15dd52ebd6a94e031b4bf9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page