Skip to content

Commit

Permalink
[MIG] agreement_serviceprofile: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantodorovich committed Nov 21, 2024
1 parent fcb69a4 commit a7fb970
Show file tree
Hide file tree
Showing 12 changed files with 75 additions and 69 deletions.
52 changes: 29 additions & 23 deletions agreement_serviceprofile/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,23 @@ Agreement Service Profile
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fagreement-lightgray.png?logo=github
:target: https://github.com/OCA/agreement/tree/16.0/agreement_serviceprofile
:target: https://github.com/OCA/agreement/tree/17.0/agreement_serviceprofile
:alt: OCA/agreement
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/agreement-16-0/agreement-16-0-agreement_serviceprofile
:target: https://translation.odoo-community.org/projects/agreement-17-0/agreement-17-0-agreement_serviceprofile
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/agreement&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/agreement&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds an *Agreement Service Profile* object with the following properties:
This module adds an *Agreement Service Profile* object with the
following properties:

* name,
* link to a agreement,
* active.
- name,
- link to a agreement,
- active.

**Table of contents**

Expand All @@ -45,43 +46,48 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/agreement/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/agreement/issues/new?body=module:%20agreement_serviceprofile%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/agreement/issues/new?body=module:%20agreement_serviceprofile%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~
-------

* Pavlov Media
* Open Source Integrators

Contributors
~~~~~~~~~~~~
------------

* `Pavlov Media <https://www.pavlovmedia.com>`_:
- `Pavlov Media <https://www.pavlovmedia.com>`__:

* Patrick Wilson <[email protected]>
- Patrick Wilson <[email protected]>

* `Open Source Integrators <https://www.opensourceintegrators.com>`_:
- `Open Source Integrators <https://www.opensourceintegrators.com>`__:

* Bhavesh Odedra <[email protected]>
* Wolfgang Hall <[email protected]>
* Maxime Chambreuil <[email protected]>
* Sandip Mangukiya <[email protected]>
- Bhavesh Odedra <[email protected]>
- Wolfgang Hall <[email protected]>
- Maxime Chambreuil <[email protected]>
- Sandip Mangukiya <[email protected]>

* `Serpent Consulting Services Pvt. Ltd. <https://www.serpentcs.com>`_:
- `Serpent Consulting Services Pvt. Ltd. <https://www.serpentcs.com>`__:

* Murtuza Saleh <[email protected]>
- Murtuza Saleh <[email protected]>

* `Mc Master Lawn and Pest Services <https://www.mcmpest.com>`_:
- `Mc Master Lawn and Pest Services <https://www.mcmpest.com>`__:

* Brian McMaster <[email protected]>
- Brian McMaster <[email protected]>

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

- Italo Lopes <[email protected]>
- Iván Todorovich <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -101,6 +107,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-max3903|

This module is part of the `OCA/agreement <https://github.com/OCA/agreement/tree/16.0/agreement_serviceprofile>`_ project on GitHub.
This module is part of the `OCA/agreement <https://github.com/OCA/agreement/tree/17.0/agreement_serviceprofile>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion agreement_serviceprofile/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Agreement Service Profile",
"summary": "Adds an Agreement Service Profile object",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Contract",
"author": "Pavlov Media, "
"Open Source Integrators, "
Expand Down
10 changes: 0 additions & 10 deletions agreement_serviceprofile/migrations/16.0.1.0.0/post-migration.py

This file was deleted.

3 changes: 3 additions & 0 deletions agreement_serviceprofile/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
14 changes: 14 additions & 0 deletions agreement_serviceprofile/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- [Pavlov Media](https://www.pavlovmedia.com):
- Patrick Wilson \<<[email protected]>\>
- [Open Source Integrators](https://www.opensourceintegrators.com):
- Bhavesh Odedra \<<[email protected]>\>
- Wolfgang Hall \<<[email protected]>\>
- Maxime Chambreuil \<<[email protected]>\>
- Sandip Mangukiya \<<[email protected]>\>
- [Serpent Consulting Services Pvt. Ltd.](https://www.serpentcs.com):
- 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]>\>
- Iván Todorovich \<<[email protected]>\>
18 changes: 0 additions & 18 deletions agreement_serviceprofile/readme/CONTRIBUTORS.rst

This file was deleted.

6 changes: 6 additions & 0 deletions agreement_serviceprofile/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This module adds an *Agreement Service Profile* object with the
following properties:

- name,
- link to a agreement,
- active.
5 changes: 0 additions & 5 deletions agreement_serviceprofile/readme/DESCRIPTION.rst

This file was deleted.

14 changes: 10 additions & 4 deletions agreement_serviceprofile/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,9 @@ <h1 class="title">Agreement Service Profile</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:097e5a413e793ba3dab9a155cf77620a585f80eab38fcc3a06560bca83c3c5b9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/agreement/tree/16.0/agreement_serviceprofile"><img alt="OCA/agreement" src="https://img.shields.io/badge/github-OCA%2Fagreement-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/agreement-16-0/agreement-16-0-agreement_serviceprofile"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/agreement&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds an <em>Agreement Service Profile</em> object with the following properties:</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/agreement/tree/17.0/agreement_serviceprofile"><img alt="OCA/agreement" src="https://img.shields.io/badge/github-OCA%2Fagreement-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/agreement-17-0/agreement-17-0-agreement_serviceprofile"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/agreement&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds an <em>Agreement Service Profile</em> object with the
following properties:</p>
<ul class="simple">
<li>name,</li>
<li>link to a agreement,</li>
Expand All @@ -393,7 +394,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/agreement/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/agreement/issues/new?body=module:%20agreement_serviceprofile%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/agreement/issues/new?body=module:%20agreement_serviceprofile%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -427,6 +428,11 @@ <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>
<li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;camptocamp.com">ivan.todorovich&#64;camptocamp.com</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -440,7 +446,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/agreement/tree/16.0/agreement_serviceprofile">OCA/agreement</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/agreement/tree/17.0/agreement_serviceprofile">OCA/agreement</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
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_detailed_type': 'serviceprofile', 'default_type': 'service'}"
attrs="{'invisible': [('use_product_variant', '=', False)], 'required': [('use_product_variant','!=', False)]}"
invisible="not use_product_variant"
required="use_product_variant"
/>
<field
name="product_id"
context="{'default_detailed_type': 'serviceprofile', 'default_type': 'service'}"
attrs="{'invisible': [('use_product_variant', '!=', False)], 'required': [('use_product_variant','=', False)]}"
invisible="use_product_variant"
required="not use_product_variant"
/>
</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"
/>
<field name="active" invisible="1" />
<div class="oe_title">
Expand All @@ -54,12 +54,14 @@
<field
name="product_id"
context="{'default_detailed_type': 'serviceprofile', 'default_type': 'service'}"
attrs="{'invisible': [('use_product_variant', '!=', False)], 'required': [('use_product_variant','=', False)]}"
invisible="use_product_variant"
required="not use_product_variant"
/>
<field
name="product_variant_id"
context="{'default_detailed_type': 'serviceprofile', 'default_type': 'service'}"
attrs="{'invisible': [('use_product_variant', '=', False)], 'required': [('use_product_variant','!=', False)]}"
invisible="not use_product_variant"
required="use_product_variant"
/>
<field name="use_product_variant" />
</group>
Expand Down
4 changes: 2 additions & 2 deletions agreement_serviceprofile/views/product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<page
id="agreement"
string="Service"
attrs="{'invisible': [('detailed_type', '!=', 'serviceprofile')]}"
invisible="detailed_type != 'serviceprofile'"
>
<group>
<group id="agreement_left">
Expand All @@ -34,7 +34,7 @@
<page
id="agreement"
string="Service"
attrs="{'invisible': [('detailed_type', '!=', 'serviceprofile')]}"
invisible="detailed_type != 'serviceprofile'"
>
<group>
<group id="agreement_left">
Expand Down

0 comments on commit a7fb970

Please sign in to comment.