Store Product Attribute Values in Sale Order Lines
Project description
Sale Order Line all Product Attribute Values
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:
Create an Attribute called “Trademark” (for example) with Display Type “Pills”, Variants Creation Mode “Never” and add an Attribute Value called “Adidas”
Create a product called “Shoe Adidas REF 123” and “Show Adidas REF 456”
Add “Trademark: Adidas” on Attributes & Variants tab on both products and configure (you can set an incremented price if you want)
Sell both products in a Sale Order
Created Sale Order Lines has Product Template Attribute Values and Attribute Values its lines.
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
Contributors
Eduardo de Miguel (Moduon)
Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>
Maintainers
This module is maintained by the OCA.
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:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_sale_order_line_product_attribute_values-18.0.1.0.1-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_sale_order_line_product_attribute_values-18.0.1.0.1-py3-none-any.whl
- Upload date:
- Size: 31.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
433780cc48c1e71dd70cfa85e476d4ed32606ce8b84e2308aa7cc2d21a2fe26d
|
|
| MD5 |
0dac685a07e7b4350ffc52733e58d8b0
|
|
| BLAKE2b-256 |
0e7e28b103f210ebd30ba68a630b73958e76c3f7166396e7fa0692e153c8068c
|