diff --git a/modules/product_attribute/product.xml b/modules/product_attribute/product.xml
index d9b7650ec0..6cb1c2f0d1 100644
--- a/modules/product_attribute/product.xml
+++ b/modules/product_attribute/product.xml
@@ -130,4 +130,18 @@ this repository contains the full copyright notices and license terms. -->
product_form
+
+
+ product.product
+
+ product_list_purchase_line
+
+
+
+
+ product.product
+
+ product_list_sale_line
+
+
diff --git a/modules/product_attribute/setup.py b/modules/product_attribute/setup.py
index 48e089d237..5cad1947a5 100755
--- a/modules/product_attribute/setup.py
+++ b/modules/product_attribute/setup.py
@@ -50,6 +50,11 @@ for dep in info.get('depends', []):
requires.append(get_require_version('trytond_%s' % dep))
requires.append(get_require_version('trytond'))
+tests_require = [
+ get_require_version('trytond_purchase'),
+ get_require_version('trytond_sale'),
+ ]
+
setup(name=name,
version=version,
description='Tryton module with product attributes',
@@ -119,6 +124,9 @@ setup(name=name,
license='GPL-3',
python_requires='>=3.9',
install_requires=requires,
+ extras_require={
+ 'test': tests_require,
+ },
zip_safe=False,
entry_points="""
[trytond.modules]
diff --git a/modules/product_attribute/tests/test_module.py b/modules/product_attribute/tests/test_module.py
index a2665a0fdb..e68ce7ed8e 100644
--- a/modules/product_attribute/tests/test_module.py
+++ b/modules/product_attribute/tests/test_module.py
@@ -7,6 +7,7 @@ from trytond.tests.test_tryton import ModuleTestCase
class ProductTestCase(ModuleTestCase):
'Test Product Attribute module'
module = 'product_attribute'
+ extras = ['purchase', 'sale']
del ModuleTestCase
diff --git a/modules/product_attribute/tryton.cfg b/modules/product_attribute/tryton.cfg
index 7178f41472..64eb069eac 100644
--- a/modules/product_attribute/tryton.cfg
+++ b/modules/product_attribute/tryton.cfg
@@ -3,6 +3,9 @@ version=7.7.0
depends:
ir
product
+extras_depend:
+ purchase
+ sale
xml:
product.xml
message.xml
diff --git a/modules/product_attribute/view/product_list_purchase_line.xml b/modules/product_attribute/view/product_list_purchase_line.xml
new file mode 100644
index 0000000000..6b4288acc1
--- /dev/null
+++ b/modules/product_attribute/view/product_list_purchase_line.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
diff --git a/modules/product_attribute/view/product_list_sale_line.xml b/modules/product_attribute/view/product_list_sale_line.xml
new file mode 100644
index 0000000000..6b4288acc1
--- /dev/null
+++ b/modules/product_attribute/view/product_list_sale_line.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+