Skip to content

Commit b76dcb0

Browse files
committed
[MIG] product_attribute_archive: Migration to 18.0
1 parent 7f593be commit b76dcb0

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

product_attribute_archive/README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Contributors
6969
------------
7070

7171
- Kevin Khao <[email protected]>
72+
- Maksym Yankin <[email protected]>
7273

7374
Maintainers
7475
-----------

product_attribute_archive/__manifest__.py

+1-1
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"],
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
- Kevin Khao \<<[email protected]>\>
2+
- Maksym Yankin \<<[email protected]>\>

product_attribute_archive/static/description/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
412412
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
413413
<ul class="simple">
414414
<li>Kevin Khao &lt;<a class="reference external" href="mailto:kevin.khao&#64;akretion.com">kevin.khao&#64;akretion.com</a>&gt;</li>
415+
<li>Maksym Yankin &lt;<a class="reference external" href="mailto:maksym.yankin&#64;camptocamp.com">maksym.yankin&#64;camptocamp.com</a>&gt;</li>
415416
</ul>
416417
</div>
417418
<div class="section" id="maintainers">

product_attribute_archive/views/product_attribute.xml

+3-5
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)