Skip to content

Commit

Permalink
[MIG] product_attribute_archive: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yankinmax committed Jan 21, 2025
1 parent 19f3be2 commit abea882
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions product_attribute_archive/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Contributors
------------

- Kevin Khao <[email protected]>
- Maksym Yankin <[email protected]>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion product_attribute_archive/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Product Attribute Archive",
"summary": """
Add an active field on product attributes""",
"version": "16.0.1.0.0",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "Akretion,Odoo Community Association (OCA)",
"depends": ["product"],
Expand Down
1 change: 1 addition & 0 deletions product_attribute_archive/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Kevin Khao \<<[email protected]>\>
- Maksym Yankin \<<[email protected]>\>
1 change: 1 addition & 0 deletions product_attribute_archive/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li>Kevin Khao &lt;<a class="reference external" href="mailto:kevin.khao&#64;akretion.com">kevin.khao&#64;akretion.com</a>&gt;</li>
<li>Maksym Yankin &lt;<a class="reference external" href="mailto:maksym.yankin&#64;camptocamp.com">maksym.yankin&#64;camptocamp.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
8 changes: 3 additions & 5 deletions product_attribute_archive/views/product_attribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
<!-- Copyright 2021 Akretion
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>

<record model="ir.ui.view" id="product_attribute_form_view">
<field name="name">product.attribute.form</field>
<field name="model">product.attribute</field>
<field name="inherit_id" ref="product.product_attribute_view_form" />
<field name="arch" type="xml">
<xpath expr="//group[@name='main_fields']" position="before">
<field name="active" invisible="1" />
<widget
<field name="active" invisible="1" />
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
invisible="active"
/>
</xpath>
<field name="html_color" position="after">
Expand All @@ -37,5 +36,4 @@
<record model="ir.actions.act_window" id="product.attribute_action">
<field name="context">{'active_test': False}</field>
</record>

</odoo>

0 comments on commit abea882

Please sign in to comment.