Skip to content

Commit a4cbb67

Browse files
add setup
1 parent cf8a885 commit a4cbb67

4 files changed

Lines changed: 9 additions & 14 deletions

File tree

product_tag/views/product_tag_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<menuitem
4343
id="product_tag_menu"
4444
name="Product Tags"
45-
parent="sale.product_menu_catalog"
45+
parent="sale.prod_config_main"
4646
action="product_tag_action"
4747
sequence="20"
4848
/>

product_tag/views/product_views.xml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<record id="product_normal_form_view_inherit" model="ir.ui.view">
4-
<field name="name">product.product.form</field>
5-
<field name="model">product.product</field>
6-
<field name="inherit_id" ref="product.product_normal_form_view" />
7-
<field name="arch" type="xml">
8-
<field name="product_tag_ids" position="attributes">
9-
<attribute
10-
name="options"
11-
>{'no_open': True, 'color_field': 'color'}</attribute>
12-
</field>
13-
</field>
14-
</record>
153
<record id="product_product_tree_view_inherit" model="ir.ui.view">
164
<field name="name">product.product.tree</field>
175
<field name="model">product.product</field>
@@ -21,7 +9,7 @@
219
<field
2210
name="product_tag_ids"
2311
widget="many2many_tags"
24-
options="{'color_field': 'color', 'no_edit_color': 1}"
12+
options="{'color_field': 'color'}"
2513
optional="hide"
2614
/>
2715
</field>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../product_tag

setup/product_tag/setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)