Skip to content

Commit

Permalink
[17.0][MIG] agreement_serviceprofile: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ilo committed Oct 1, 2024
1 parent 02ec305 commit eb9f96e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
4 changes: 4 additions & 0 deletions agreement_serviceprofile/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ Contributors

- Brian McMaster <[email protected]>

- `Camptocamp <https://www.camptocamp.com>`__:

- Italo LOPES <[email protected]>

Maintainers
-----------

Expand Down
2 changes: 2 additions & 0 deletions agreement_serviceprofile/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
- Murtuza Saleh \<<[email protected]>\>
- [Mc Master Lawn and Pest Services](https://www.mcmpest.com):
- Brian McMaster \<<[email protected]>\>
- [Camptocamp](https://www.camptocamp.com):
- Italo LOPES \<<[email protected]>\>
4 changes: 4 additions & 0 deletions agreement_serviceprofile/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<li>Brian McMaster &lt;<a class="reference external" href="mailto:brian&#64;mcmpest.com">brian&#64;mcmpest.com</a>&gt;</li>
</ul>
</li>
<li><a class="reference external" href="https://www.camptocamp.com">Camptocamp</a>:<ul>
<li>Italo LOPES &lt;<a class="reference external" href="mailto:italo.lopes&#64;camptocamp.com">italo.lopes&#64;camptocamp.com</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
6 changes: 4 additions & 2 deletions agreement_serviceprofile/views/agreement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
<field
name="product_variant_id"
context="{'default_is_serviceprofile': True, 'default_type': 'service'}"
attrs="{'invisible': [('use_product_variant', '=', False)], 'required': [('use_product_variant','!=', False)]}"
invisible="use_product_variant == False"
required="use_product_variant != False"
/>
<field
name="product_id"
context="{'default_is_serviceprofile': True, 'default_type': 'service'}"
attrs="{'invisible': [('use_product_variant', '!=', False)], 'required': [('use_product_variant','=', False)]}"
invisible="use_product_variant != False"
required="use_product_variant == False"
/>
</group>
</group>
Expand Down
10 changes: 6 additions & 4 deletions agreement_serviceprofile/views/agreement_serviceprofile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<field name="partner_id" />
<field name="product_id" />
<field name="product_variant_id" />
<field name="active" invisible="1" />
<field name="active" column_invisible="1" />
</tree>
</field>
</record>
Expand All @@ -37,7 +37,7 @@
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
invisible="active == True"
/>
<field name="active" invisible="1" />
<div class="oe_title">
Expand All @@ -54,12 +54,14 @@
<field
name="product_id"
context="{'default_is_serviceprofile': True, 'default_type': 'service'}"
attrs="{'invisible': [('use_product_variant', '!=', False)], 'required': [('use_product_variant','=', False)]}"
invisible="use_product_variant != False"
required="use_product_variant == False"
/>
<field
name="product_variant_id"
context="{'default_is_serviceprofile': True, 'default_type': 'service'}"
attrs="{'invisible': [('use_product_variant', '=', False)], 'required': [('use_product_variant','!=', False)]}"
invisible="use_product_variant == False"
required="use_product_variant != False"
/>
<field name="use_product_variant" />
</group>
Expand Down

0 comments on commit eb9f96e

Please sign in to comment.