Skip to content

Commit f30ecc0

Browse files
committed
[MIG] product_attribute_archive: Migration to 18.0
1 parent 0a36340 commit f30ecc0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

product_attribute_archive/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Product Attribute Archive",
66
"summary": """
77
Add an active field on product attributes""",
8-
"version": "16.0.1.0.0",
8+
"version": "18.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "Akretion,Odoo Community Association (OCA)",
1111
"depends": ["product"],

product_attribute_archive/views/product_attribute.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
<!-- Copyright 2021 Akretion
33
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
44
<odoo>
5-
65
<record model="ir.ui.view" id="product_attribute_form_view">
76
<field name="name">product.attribute.form</field>
87
<field name="model">product.attribute</field>
98
<field name="inherit_id" ref="product.product_attribute_view_form" />
109
<field name="arch" type="xml">
1110
<xpath expr="//group[@name='main_fields']" position="before">
12-
<field name="active" invisible="1" />
13-
<widget
11+
<field name="active" invisible="1" />
12+
<widget
1413
name="web_ribbon"
1514
title="Archived"
1615
bg_color="bg-danger"
17-
attrs="{'invisible': [('active', '=', True)]}"
16+
invisible="active"
1817
/>
1918
</xpath>
2019
<field name="html_color" position="after">
@@ -37,5 +36,4 @@
3736
<record model="ir.actions.act_window" id="product.attribute_action">
3837
<field name="context">{'active_test': False}</field>
3938
</record>
40-
4139
</odoo>

0 commit comments

Comments
 (0)