Add the attributes name field to the sale and purchase list views
Closes #14280
This commit is contained in:
@@ -130,4 +130,18 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">product_form</field>
|
||||
</record>
|
||||
</data>
|
||||
<data depends="purchase">
|
||||
<record model="ir.ui.view" id="product_view_list_purchase_line">
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit" ref="purchase.product_view_list_purchase_line"/>
|
||||
<field name="name">product_list_purchase_line</field>
|
||||
</record>
|
||||
</data>
|
||||
<data depends="sale">
|
||||
<record model="ir.ui.view" id="product_view_list_sale_line">
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit" ref="sale.product_view_list_sale_line"/>
|
||||
<field name="name">product_list_sale_line</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,6 +3,9 @@ version=7.7.0
|
||||
depends:
|
||||
ir
|
||||
product
|
||||
extras_depend:
|
||||
purchase
|
||||
sale
|
||||
xml:
|
||||
product.xml
|
||||
message.xml
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="//field[@name='name']" position="after">
|
||||
<field name="attributes_name" expand="1" optional="1"/>
|
||||
<field name="attributes" tree_invisible="1"/>
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="//field[@name='name']" position="after">
|
||||
<field name="attributes_name" expand="1" optional="1"/>
|
||||
<field name="attributes" tree_invisible="1"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user