Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
d27fac4
[ADD] agreement_legal migration
ygol Mar 29, 2019
8eedb66
[FIX] flake8
ygol Mar 29, 2019
e80a1fd
[FIX] flake8(2)
ygol Mar 29, 2019
f77f09f
[FIX] agreement_legal: remove account dependency
ygol Apr 2, 2019
b07cd83
[FIX] ooops
ygol Apr 2, 2019
f6cc091
[FIX] handling code field + partner_id
ygol Apr 2, 2019
4b18d43
[UPD] remove field reference and use field code
ygol Apr 2, 2019
7bca7db
[ADD] custom dynamic parties
ygol Apr 11, 2019
33e0863
[FIX] flake8
ygol Apr 12, 2019
152052f
[FIX] pylint
ygol Apr 12, 2019
7fc121a
[IMP] add default html value for parties
ygol Apr 16, 2019
9db3dfa
[UPD] flake8
ygol Apr 16, 2019
3daefbb
[FIX][12.0] Menu Icon.
murtuzasaleh Apr 18, 2019
64f9935
[FIX] Icon in settings
max3903 Apr 30, 2019
dc50d69
[FIX] agreement_legal: module name
max3903 May 1, 2019
cfee348
[FIX] Issue #323 + Cleanup
max3903 May 7, 2019
ec2bd53
Update agreement_section.py
max3903 May 7, 2019
688447a
[FIX] Duplicate label
max3903 May 8, 2019
c518c2f
[FIX] Clauses are copied from the sections
max3903 May 8, 2019
8729619
[FIX] agreement_legal: Copy
max3903 May 13, 2019
bb61c95
[FIX] View priority
max3903 May 15, 2019
01c84ce
[FIX] Issue #331
max3903 May 17, 2019
c64f8ab
[IMP] agreement_legal: add readonly group
max3903 May 20, 2019
b3ea580
[UPD] update agreement demo data with compulsory fields
ygol May 29, 2019
931356c
[UPD] move data to demo keyword
ygol May 29, 2019
6503f99
[UPD] PR review's remarks
ygol May 29, 2019
b7488e8
Update agreement_legal/__manifest__.py
ygol May 29, 2019
016f618
[UPD] update agreement demo data with compulsory fields
ygol May 29, 2019
13a9ad2
[FIX] Issue #342
ygol Jun 5, 2019
ffe276b
[IMP] agreement_serviceprofile: add stage
brian10048 Jul 18, 2019
1a4d614
Update agreement_legal/models/agreement.py
ygol Sep 11, 2019
34f9aa8
[IMP] move some notions from agreement_legal to agreement
gurneyalex Sep 27, 2019
a7bbb7c
[IMP] New icon for agreement modules (svg file in agreement_legal)
marcelsavegnago Feb 15, 2020
f4e063f
[FIX] agreement_legal: Change company_contact_id domain
Tardo Feb 17, 2020
f65ee11
[FIX] agreement_legal: Change partner_id domain in agreement view
Tardo Feb 18, 2020
0223e05
[FIX] company_partner_id and partner_id have the same label: Partner.
MiquelRForgeFlow Feb 18, 2020
b981bd4
[IMP] agreement,agreement_legal: support activities
Mar 6, 2020
58c93ab
[FIX] agreement_legal
murtuzasaleh May 5, 2020
d13be82
[12.0][FIX] agreement_legal: Error when mass action on list view
newtratip Feb 18, 2021
32c6707
[14.0][MIG] agreement_legal (Version 12.0 to 14.0)
patrickrwilson May 4, 2021
e7cb1e4
[FIX] Removed old demo file
patrickrwilson Jul 2, 2021
d3ec78f
[14.0][ENH] agreement_legal
newtratip Jul 16, 2021
eabd9c1
[FIX] agreement_legal: Change create_new_version() function in agreem…
victoralmau Oct 8, 2021
8e8a107
[FIX] agreement_legal: Change image field name in view.
victoralmau Oct 15, 2021
0c883be
[IMP] agreement_legal: Replace the created_by + date_created fields.
victoralmau Oct 19, 2021
9f0040e
[IMP] agreement_legal: Add agreement list button
olgamarcocb Nov 17, 2021
1677f54
[IMP] agreement_legal: Add res_partner security group
olgamarcocb Oct 14, 2021
be15e8b
Added translation using Weblate (Spanish (Argentina))
ibuioli Feb 6, 2022
64e3599
Translated using Weblate (Spanish (Argentina))
ibuioli Feb 6, 2022
70df765
[MIG] agreement_legal: Migration to 15.0
olgamarcocb May 11, 2022
94231d1
[IMP] agreement_legal: black, isort, prettier
etobella Aug 31, 2022
1d8d289
[MIG] agreement_legal: Finish migration to 15.0
etobella Aug 31, 2022
d6be0a0
[IMP] agreement_legal: pre-commit stuff
urvisha-serpentcs Jan 13, 2023
5df3b6c
[MIG] agreement_legal: Migration to 16.0
urvisha-serpentcs Jan 13, 2023
f197e48
[IMP] agreement_legal: Define warning days cron and filter
olgamarcocb Oct 15, 2021
f0be787
[FIX] agreement_legal: Fix alert, improve test coverage
etobella Dec 13, 2021
bfbc119
[IMP] agreement_legal: create in batch
len-foss May 27, 2023
15a2bfe
[REF] agreement_legal: split logic and view code functions
len-foss May 27, 2023
53f76c4
[MIG] agreement_legal: cleanup
aktiv-heli-kantawala Jun 5, 2023
7716014
Translated using Weblate (Spanish)
Ivorra78 Jul 20, 2023
2888ca4
Translated using Weblate (French)
gregory-moka Nov 8, 2023
a33e1b9
Added translation using Weblate (Italian)
mymage May 2, 2024
9f225b0
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec Jul 6, 2024
39eee23
[IMP] agreement_legal: pre-commit auto fixes
imlopes Sep 20, 2024
c1b1f0f
[17.0][MIG] agreement_legal: Migration to 17.0
imlopes Sep 20, 2024
d4a6be1
Translated using Weblate (Italian)
mymage Feb 5, 2025
484cf24
[IMP] agreement_legal: pre-commit execution
Mar 20, 2025
704a016
[MIG] agreement_legal: Migration to 18.0
Mar 20, 2025
31bd49b
Added translation using Weblate (Swedish)
jakobkrabbe Sep 18, 2025
1b55094
[IMP] agreement_legal: Add logo
etobella Oct 17, 2025
73ebdfb
Translated using Weblate (Swedish)
jakobkrabbe Nov 4, 2025
4945671
[MOV] agreement_legal > agreement: res.partner.agreement_[ids|count]
vvrossem Sep 22, 2025
cb20367
[FIX] agreement_legal: use url instead kanban_image()
Saran440 Dec 3, 2025
12a6156
Translated using Weblate (Swedish)
jakobkrabbe Jan 14, 2026
d8b17b4
[FIX] agreement_legal: remove redundant t-name from report_agreement_…
BhaveshHeliconia Mar 6, 2026
d5cfdc3
Added translation using Weblate (Turkish)
bo-eska Mar 10, 2026
f61fa0e
[IMP] agreement_legal: refactor agreement form to inherit base view
Copilot Apr 20, 2026
ed9d480
[IMP] agreement_legal: Recompute from template
CRogos Apr 20, 2026
924f03e
[REF] agreement_legal: Replace repeated dynamic field code with mixin
CRogos Apr 20, 2026
c3a36ac
[IMP] agreement_legal: Add field translations
May 2, 2025
92e76d6
fix(agreement_legal) Fix #62
ygol Feb 19, 2025
3fddc00
[IMP] agreement_legal: Recompute from template
Feb 3, 2026
a18c5e1
[FIX] Fix duplicated clauses
May 12, 2026
dedcac7
[IMP] agreement_legal: pre-commit auto fixes
CRogos Apr 20, 2026
2a1cfa2
[MIG] agreement_legal: Migration to 19.0
CRogos Jul 3, 2026
00e711d
[IMP] agreement: migration script to prevent duplicate groups when ag…
CRogos Jul 30, 2026
35a2afd
[REF] agreement_legal: Split into agreement_legal_* modules
CRogos Jul 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions agreement/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,18 @@ Agreements

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

- code,
- name,
- link to a partner,
- signature date.
- start date.
- end date.
- code,
- name,
- link to a partner,
- signature date.
- start date.
- end date.

Optionally, you can also enable using: \* agreement types \* a flag to
set an agreement as a template agreement

|Agreement Form|

.. |Agreement Form| image:: https://raw.githubusercontent.com/OCA/agreement/19.0/agreement/static/description/screenshot_form.png
.. image:: https://raw.githubusercontent.com/OCA/agreement/19.0/agreement/static/description/screenshot_form.png
:alt: Agreement Form

**Table of contents**

Expand Down Expand Up @@ -75,33 +74,33 @@ Authors
Contributors
------------

- Alexis de Lattre <alexis.delattre@akretion.com>
- Alexis de Lattre <alexis.delattre@akretion.com>

- Yves Goldberg <yves@ygol.com>
- Yves Goldberg <yves@ygol.com>

- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>

- `Tecnativa <https://www.tecnativa.com>`__:
- `Tecnativa <https://www.tecnativa.com>`__:

- Sergio Teruel
- Sergio Teruel

- Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
- Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>

- `Acsone <https://www.acsone.eu/>`__:
- `Acsone <https://www.acsone.eu/>`__:

- Maxime Franco
- Maxime Franco

- `Trobz <https://www.trobz.com/>`__:
- `Trobz <https://www.trobz.com/>`__:

- Nhan Tran <nhant@trobz.com>
- Nhan Tran <nhant@trobz.com>

- `Komit <https://komit-consulting.com>`__:
- `Komit <https://komit-consulting.com>`__:

- Vang Nguyen Phu
- Vang Nguyen Phu

- `glueckkanja AG <https://glueckkanja.com>`__:
- `glueckkanja AG <https://glueckkanja.com>`__:

- Christopher Rogos
- Christopher Rogos

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion agreement/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Agreements",
"summary": "Adds an agreement object",
"version": "19.0.2.1.0",
"version": "19.0.2.2.0",
"category": "Contract",
"author": "Akretion, "
"Yves Goldberg (Ygol Internetwork), "
Expand Down
29 changes: 29 additions & 0 deletions agreement/migration/19.0.2.2.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import logging

from openupgradelib import openupgrade

_logger = logging.getLogger(__name__)

_rename_xmlids = [
# user groups
(
"agreement_legal.group_agreement_readonly",
"agreement.group_agreement_readonly",
),
(
"agreement_legal.group_agreement_user",
"agreement.group_agreement_user",
),
(
"agreement_legal.group_agreement_manager",
"agreement.group_agreement_manager",
),
]


@openupgrade.migrate()
def migrate(env, version):
_logger.info("Start pre-migration script for version %s", version)

# keep stages
openupgrade.rename_xmlids(env.cr, _rename_xmlids)
2 changes: 1 addition & 1 deletion agreement/models/agreement_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AgreementType(models.Model):
_name = "agreement.type"
_description = "Agreement Types"

name = fields.Char(required=True)
name = fields.Char(required=True, translate=True)
active = fields.Boolean(default=True)
domain = fields.Selection("_domain_selection", default="sale")

Expand Down
2 changes: 1 addition & 1 deletion agreement/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ <h1>Agreements</h1>
</ul>
<p>Optionally, you can also enable using: * agreement types * a flag to
set an agreement as a template agreement</p>
<p><img alt="Agreement Form" src="https://raw.githubusercontent.com/OCA/agreement/19.0/agreement/static/description/screenshot_form.png" /></p>
<img alt="Agreement Form" src="https://raw.githubusercontent.com/OCA/agreement/19.0/agreement/static/description/screenshot_form.png" />
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down
146 changes: 146 additions & 0 deletions agreement_legal/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

================
Agreements Legal
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a3afd8b54857b6dc844b90c8e5905af7b34b112e83b1a2d54d2a3b236c5c3c5d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
: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/19.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-19-0/agreement-19-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=19.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.

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.

.. image:: https://raw.githubusercontent.com/OCA/agreement/19.0/agreement_legal/static/description/screenshot_form.png
:alt: Agreement Form

**Table of contents**

.. contents::
:local:

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

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

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:%2019.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>
- Italo LOPES <italo.lopes@camptocamp.com>
- `glueckkanja AG <https://www.glueckkanja.com/>`__:

- Christopher Rogos

Other credits
-------------

The development of this module has been financially supported by:

- Pavlov Media
- Open Source Integrators
- Yves Goldberg

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

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px
:target: https://github.com/max3903
:alt: max3903
.. |maintainer-ygol| image:: https://github.com/ygol.png?size=40px
:target: https://github.com/ygol
:alt: ygol

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/19.0/agreement_legal>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions agreement_legal/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (C) 2018 - TODAY, Pavlov Media
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import wizards
37 changes: 37 additions & 0 deletions agreement_legal/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright (C) 2018 - TODAY, Pavlov Media
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Agreements Legal",
"summary": "Manage Agreements, LOI and Contracts",
"author": "Pavlov Media, "
"Open Source Integrators, "
"Yves Goldberg (Ygol Internetwork), "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/agreement",
"category": "Partner",
"license": "AGPL-3",
"version": "19.0.2.0.0",
"depends": ["agreement", "web"],
"data": [
"data/ir_sequence.xml",
"data/agreement_type.xml",
"security/res_groups.xml",
"security/ir.model.access.csv",
"views/res_config_settings.xml",
"views/agreement.xml",
"views/menu.xml",
"wizards/create_agreement_wizard.xml",
"wizards/recompute_agreement_from_template_wizard.xml",
],
"demo": ["demo/demo.xml"],
"assets": {
"web.assets_backend": [
"agreement_legal/static/src/js/**/*",
"agreement_legal/static/src/xml/**/*",
],
},
"application": True,
"development_status": "Beta",
"maintainers": ["max3903", "ygol"],
}
13 changes: 13 additions & 0 deletions agreement_legal/data/agreement_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<odoo>
<record id="agreement_type_agreement" model="agreement.type">
<field name="name">Agreement</field>
</record>

<record id="agreement_type_contract" model="agreement.type">
<field name="name">Contract</field>
</record>

<record id="agreement_type_loi" model="agreement.type">
<field name="name">Letter of Intent</field>
</record>
</odoo>
10 changes: 10 additions & 0 deletions agreement_legal/data/ir_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<odoo noupdate="1">
<!-- Sequence for agreement -->
<record id="seq_agreement" model="ir.sequence">
<field name="name">Agreements</field>
<field name="code">agreement</field>
<field name="prefix">AG</field>
<field name="padding">3</field>
<field name="company_id" eval="False" />
</record>
</odoo>
38 changes: 38 additions & 0 deletions agreement_legal/demo/demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!--
© 2019 Ygol Internetwork (yves@ygol.com)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">
<record id="agreement.market1" model="agreement">
<field name="description">Hardware IT (C2C-IT0042)</field>
<field name="agreement_type_id" ref="agreement_type_agreement" />
</record>

<record id="agreement.market2" model="agreement">
<field name="description">Fiber access office Lausanne (C2C-IT0043)</field>
<field name="agreement_type_id" ref="agreement_type_contract" />
</record>

<record id="agreement.market3" model="agreement">
<field name="description">Vétérinaire (AGR-VETO001)</field>
<field name="agreement_type_id" ref="agreement_type_loi" />
</record>

<record id="agreement.market4" model="agreement">
<field
name="description"
>Wazo IPBX deployment and maintenance (AGR-TEL001)</field>
<field name="agreement_type_id" ref="agreement_type_loi" />
</record>

<record id="agreement.market5" model="agreement">
<field name="description">SIP Phones supply (BUY-VOIP012)</field>
<field name="agreement_type_id" ref="agreement_type_agreement" />
</record>

<record id="agreement.market6" model="agreement">
<field name="is_template">True</field>
<field name="description">SIP-ISDN gateways (BUY-VOIP013)</field>
<field name="agreement_type_id" ref="agreement_legal.agreement_type_contract" />
</record>
</odoo>
Loading
Loading