Skip to content

Commit 30a2052

Browse files
[18.0][MIG] product_attribute_description and website_product_attribute_description: Migration to v18.0 (#221)
* [18.0][MIG] product_attribute_description: migration to v18.0 * [18.0][MIG] website_product_attribute_description: Migration to v18.0 * update descriptions * [18.0][IMP] Display info (i) icon inline next to attribute values. --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
1 parent 38c4401 commit 30a2052

File tree

17 files changed

+231
-0
lines changed

17 files changed

+231
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
=============================
2+
Product Attribute Description
3+
=============================
4+
5+
This module adds description to product's attributes. It can be shown in the online shop using module website_product_attribute_description.
6+
7+
Usage
8+
=====
9+
10+
#. Go to Sales or Inventory -> Configuration -> Attributea -> Choose an atribute -> Add your description
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Product Attribute Description",
3+
"version": "18.0.1.0.0",
4+
"category": "Website",
5+
"author": "ERP Harbor Consulting Services, Nitrokey GmbH",
6+
"website": "https://github.com/nitrokey/odoo-modules",
7+
"summary": """
8+
This module adds description to product's attributes.
9+
""",
10+
"depends": ["product"],
11+
"data": [
12+
"views/product_attribute_view.xml",
13+
],
14+
"license": "AGPL-3",
15+
"installable": True,
16+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import product_attribute
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from odoo import fields, models
2+
3+
4+
class ProductAttribute(models.Model):
5+
_inherit = "product.attribute"
6+
7+
description = fields.Text(translate=True)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Dhara Solanki <dsolanki@initos.com>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module adds description to product's attributes. It can be shown in the online shop using module website_product_attribute_description.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#. Go to Sales or Inventory -> Configuration -> Attributea -> Choose an atribute -> Add your description
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo>
3+
<record id="product_attribute_form_view_extended" model="ir.ui.view">
4+
<field name="name">product.attribute.form.view.extended</field>
5+
<field name="model">product.attribute</field>
6+
<field name="inherit_id" ref="product.product_attribute_view_form" />
7+
<field name="arch" type="xml">
8+
<field name="value_ids" position="after">
9+
<group name="description">
10+
<field name="description" />
11+
</group>
12+
</field>
13+
</field>
14+
</record>
15+
</odoo>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
=====================================
2+
Website Product Attribute Description
3+
=====================================
4+
5+
This module shows attribute descriptions in tooltip from product details in website's online shop.
6+
7+
Usage
8+
=====
9+
10+
#. Go to Sales or Inventory -> Configuration -> Attributea -> Choose an atribute -> Add your description
11+
#. To check your description go to the shop, find a product with that attribute
12+
#. Move cursor over attribute and you will get your description from as a attribute tooltip

0 commit comments

Comments
 (0)