Skip to content

Commit

Permalink
[IMP] agreement_legal: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chandni-serpentcs committed Feb 20, 2024
1 parent ba79e59 commit 134d93a
Show file tree
Hide file tree
Showing 15 changed files with 98 additions and 89 deletions.
78 changes: 40 additions & 38 deletions agreement_legal/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,27 @@ Agreements Legal
: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_legal
:target: https://github.com/OCA/agreement/tree/17.0/agreement_legal
: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_legal
:target: https://translation.odoo-community.org/projects/agreement-17-0/agreement-17-0-agreement_legal
: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 allows you to manage agreements, letter of intent and contract content.
The module is meant to be used by the legal team of a company and to allow them
to define sections, clauses and templates with their respective content that can
be dynamic.
This module allows you to manage agreements, letter of intent and
contract content. The module is meant to be used by the legal team of a
company and to allow them to define sections, clauses and templates with
their respective content that can be dynamic.

Based on the template, an agreement can be created and the pdf document generated.
Based on the template, an agreement can be created and the pdf document
generated.

The agreement would go through a workflow to finally become a contract with the
customer signature.
The agreement would go through a workflow to finally become a contract
with the customer signature.

**Table of contents**

Expand All @@ -48,71 +49,72 @@ Configuration

To configure this module:

* Go to Agreement > Configuration > Templates
* Create a new template with sections and clauses and their respective content
* Go to Agreement > Configuration > Stages
* Create and reorder stages to match your process
- Go to Agreement > Configuration > Templates
- Create a new template with sections and clauses and their respective
content
- Go to Agreement > Configuration > Stages
- Create and reorder stages to match your process

Usage
=====

To use this module:

* Go to Agreement > Agreements
* Create a new agreement
* Select a template
* Follow the process to get the required approval
* Send the invitation to the customer to review and sign the agreement
- Go to Agreement > Agreements
- Create a new agreement
- Select a template
- Follow the process to get the required approval
- Send the invitation to the customer to review and sign the agreement

Known issues / Roadmap
======================

* Split the module to remove the dependencies on sale and account and provide
the same feature in extra modules (agreement_sale, agreement_account,
agreement_purchase)
- Split the module to remove the dependencies on sale and account and
provide the same feature in extra modules (agreement_sale,
agreement_account, agreement_purchase)

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_legal%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_legal%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
* Yves Goldberg (Ygol Internetwork)

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

* Patrick Wilson <pwilson@pavlovmedia.com>
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
* Wolfgang Hall <whall@opensourceintegrators.com>
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
* Sandip Mangukiya <smangukiya@opensourceintegrators.com>
* Yves Goldberg <yves@ygol.com>
* Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
- Patrick Wilson <pwilson@pavlovmedia.com>
- Bhavesh Odedra <bodedra@opensourceintegrators.com>
- Wolfgang Hall <whall@opensourceintegrators.com>
- Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
- Sandip Mangukiya <smangukiya@opensourceintegrators.com>
- Yves Goldberg <yves@ygol.com>
- Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>

Other credits
~~~~~~~~~~~~~
-------------

The development of this module has been financially supported by:

* Pavlov Media
* Open Source Integrators
* Yves Goldberg
- Pavlov Media
- Open Source Integrators
- Yves Goldberg

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

This module is maintained by the OCA.

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

|maintainer-max3903| |maintainer-ygol|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions agreement_legal/models/agreement.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,12 @@ def _get_default_stage_id(self):
def _get_old_version_default_vals(self):
self.ensure_one()
default_vals = {
"name": "{} - OLD VERSION".format(self.name),
"name": f"{self.name} - OLD VERSION",
"active": False,
"parent_agreement_id": self.id,
"version": self.version,
"revision": self.revision,
"code": "{}-V{}".format(self.code, str(self.version)),
"code": f"{self.code}-V{str(self.version)}",
"stage_id": self.stage_id.id,
}
return default_vals
Expand Down
3 changes: 3 additions & 0 deletions agreement_legal/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
7 changes: 7 additions & 0 deletions agreement_legal/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To configure this module:

- Go to Agreement \> Configuration \> Templates
- Create a new template with sections and clauses and their respective
content
- Go to Agreement \> Configuration \> Stages
- Create and reorder stages to match your process
6 changes: 0 additions & 6 deletions agreement_legal/readme/CONFIGURE.rst

This file was deleted.

7 changes: 7 additions & 0 deletions agreement_legal/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- Patrick Wilson \<<pwilson@pavlovmedia.com>\>
- Bhavesh Odedra \<<bodedra@opensourceintegrators.com>\>
- Wolfgang Hall \<<whall@opensourceintegrators.com>\>
- Maxime Chambreuil \<<mchambreuil@opensourceintegrators.com>\>
- Sandip Mangukiya \<<smangukiya@opensourceintegrators.com>\>
- Yves Goldberg \<<yves@ygol.com>\>
- Tharathip Chaweewongphan \<<tharathipc@ecosoft.co.th>\>
7 changes: 0 additions & 7 deletions agreement_legal/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The development of this module has been financially supported by:

* Pavlov Media
* Open Source Integrators
* Yves Goldberg
- Pavlov Media
- Open Source Integrators
- Yves Goldberg
10 changes: 10 additions & 0 deletions agreement_legal/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
This module allows you to manage agreements, letter of intent and
contract content. The module is meant to be used by the legal team of a
company and to allow them to define sections, clauses and templates with
their respective content that can be dynamic.

Based on the template, an agreement can be created and the pdf document
generated.

The agreement would go through a workflow to finally become a contract
with the customer signature.
9 changes: 0 additions & 9 deletions agreement_legal/readme/DESCRIPTION.rst

This file was deleted.

3 changes: 3 additions & 0 deletions agreement_legal/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Split the module to remove the dependencies on sale and account and
provide the same feature in extra modules (agreement_sale,
agreement_account, agreement_purchase)
3 changes: 0 additions & 3 deletions agreement_legal/readme/ROADMAP.rst

This file was deleted.

7 changes: 7 additions & 0 deletions agreement_legal/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To use this module:

- Go to Agreement \> Agreements
- Create a new agreement
- Select a template
- Follow the process to get the required approval
- Send the invitation to the customer to review and sign the agreement
7 changes: 0 additions & 7 deletions agreement_legal/readme/USAGE.rst

This file was deleted.

30 changes: 16 additions & 14 deletions agreement_legal/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,15 @@ <h1 class="title">Agreements Legal</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0295ff399e3360ceab87b6befafe455990f071e7cca04046a03e5529f21757c2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_legal"><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_legal"><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 allows you to manage agreements, letter of intent and contract content.
The module is meant to be used by the legal team of a company and to allow them
to define sections, clauses and templates with their respective content that can
be dynamic.</p>
<p>Based on the template, an agreement can be created and the pdf document generated.</p>
<p>The agreement would go through a workflow to finally become a contract with the
customer signature.</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_legal"><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_legal"><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 allows you to manage agreements, letter of intent and
contract content. The module is meant to be used by the legal team of a
company and to allow them to define sections, clauses and templates with
their respective content that can be dynamic.</p>
<p>Based on the template, an agreement can be created and the pdf document
generated.</p>
<p>The agreement would go through a workflow to finally become a contract
with the customer signature.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -398,7 +399,8 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<p>To configure this module:</p>
<ul class="simple">
<li>Go to Agreement &gt; Configuration &gt; Templates</li>
<li>Create a new template with sections and clauses and their respective content</li>
<li>Create a new template with sections and clauses and their respective
content</li>
<li>Go to Agreement &gt; Configuration &gt; Stages</li>
<li>Create and reorder stages to match your process</li>
</ul>
Expand All @@ -417,17 +419,17 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>Split the module to remove the dependencies on sale and account and provide
the same feature in extra modules (agreement_sale, agreement_account,
agreement_purchase)</li>
<li>Split the module to remove the dependencies on sale and account and
provide the same feature in extra modules (agreement_sale,
agreement_account, agreement_purchase)</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-4">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_legal%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_legal%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 @@ -470,7 +472,7 @@ <h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</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> <a class="reference external image-reference" href="https://github.com/ygol"><img alt="ygol" src="https://github.com/ygol.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_legal">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_legal">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

0 comments on commit 134d93a

Please sign in to comment.