Skip to content

Commit

Permalink
[MIG] product_template_multi_link: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Luis-Mora committed May 2, 2024
1 parent 8e3a99c commit 2b3ac77
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
3 changes: 3 additions & 0 deletions product_template_multi_link/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ Contributors
------------

- Sylvain LE GAL <http://www.twitter.com/legalsylvain>
- `Binhex <https://binhex.cloud//com>`__:

- David Luis Mora <[email protected]>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion product_template_multi_link/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Product Multi Links (Template)",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Generic Modules",
"author": "GRAP, ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https:/OCA/e-commerce",
Expand Down
2 changes: 2 additions & 0 deletions product_template_multi_link/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
- Sylvain LE GAL \<<http://www.twitter.com/legalsylvain>\>
- [Binhex](https://binhex.cloud//com):
- David Luis Mora \<<[email protected]>\>
4 changes: 4 additions & 0 deletions product_template_multi_link/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,10 @@ <h1>Authors</h1>
<h1>Contributors</h1>
<ul class="simple">
<li>Sylvain LE GAL &lt;<a class="reference external" href="http://www.twitter.com/legalsylvain">http://www.twitter.com/legalsylvain</a>&gt;</li>
<li><a class="reference external" href="https://binhex.cloud//com">Binhex</a>:<ul>
<li>David Luis Mora &lt;<a class="reference external" href="mailto:d.luis&#64;binhex.cloud">d.luis&#64;binhex.cloud</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
4 changes: 2 additions & 2 deletions product_template_multi_link/views/action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<field name="name">Product Links</field>
<field name="res_model">product.template.link</field>
<field name="view_mode">tree,kanban</field>
<field name="domain">[('product_template_id', '=', active_id)]</field>
<field name="context">{'default_product_template_id': active_id}</field>
<field name="domain">[('product_template_id', '=', id)]</field>
<field name="context">{'default_product_template_id': id}</field>
</record>
</odoo>
11 changes: 2 additions & 9 deletions product_template_multi_link/views/product_template_link_type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,9 @@
<tree editable="top">
<field name="is_symmetric" />
<field name="name" />
<field
name="inverse_name"
required="1"
attrs="{'readonly': [('is_symmetric', '=', True)]}"
/>
<field name="inverse_name" required="1" invisible="is_symmetric" />
<field name="code" />
<field
name="inverse_code"
attrs="{'readonly': [('is_symmetric', '=', True)]}"
/>
<field name="inverse_code" invisible="is_symmetric" />
</tree>
</field>
</record>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<field name="operation_type" />
<field
name="type_id"
attrs="{'invisible': [('operation_type', '!=', 'link')], 'required': [('operation_type', '=', 'link')]}"
invisible="operation_type != 'link'"
required="operation_type == 'link'"
/>
</group>
</group>
Expand All @@ -38,15 +39,15 @@
type="object"
class="oe_highlight"
help="Create links?"
attrs="{'invisible': [('operation_type', '!=', 'link')]}"
invisible="operation_type != 'link'"
/>
<button
name="action_apply"
string="Remove links"
type="object"
class="oe_highlight"
help="Remove links?"
attrs="{'invisible': [('operation_type', '!=', 'unlink')]}"
invisible="operation_type != 'unlink'"
/>
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
Expand Down

0 comments on commit 2b3ac77

Please sign in to comment.