Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] agreement_legal : Migration to 17.0 #40

Open
wants to merge 76 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
d89aca0
[ADD] agreement_legal migration
ygol Mar 29, 2019
17633e4
[FIX] flake8
ygol Mar 29, 2019
f6639a2
[FIX] flake8(2)
ygol Mar 29, 2019
16e8334
[FIX] agreement_legal: remove account dependency
ygol Apr 2, 2019
73b5732
[FIX] ooops
ygol Apr 2, 2019
28cf2b3
[FIX] handling code field + partner_id
ygol Apr 2, 2019
d2d1903
[UPD] remove field reference and use field code
ygol Apr 2, 2019
fa7bdac
[ADD] custom dynamic parties
ygol Apr 11, 2019
fda7e2b
[FIX] flake8
ygol Apr 12, 2019
9f03559
[FIX] pylint
ygol Apr 12, 2019
39a8507
[IMP] add default html value for parties
ygol Apr 16, 2019
01d34d0
[UPD] flake8
ygol Apr 16, 2019
fbece28
[FIX][12.0] Menu Icon.
murtuzasaleh Apr 18, 2019
d2a26bd
[FIX] Icon in settings
max3903 Apr 30, 2019
4d309f3
[FIX] agreement_legal: module name
max3903 May 1, 2019
85ddbc6
[FIX] Issue #323 + Cleanup
max3903 May 7, 2019
cf1914c
Update agreement_section.py
max3903 May 7, 2019
7505850
[FIX] Duplicate label
max3903 May 8, 2019
6e25d24
[FIX] Clauses are copied from the sections
max3903 May 8, 2019
346997c
[FIX] agreement_legal: Copy
max3903 May 13, 2019
18c5c20
[FIX] View priority
max3903 May 15, 2019
edca591
[FIX] Issue #331
max3903 May 17, 2019
1f737b2
[IMP] agreement_legal: add readonly group
max3903 May 20, 2019
08c4aa3
[UPD] update agreement demo data with compulsory fields
ygol May 29, 2019
cd246dd
[UPD] move data to demo keyword
ygol May 29, 2019
694b126
[UPD] PR review's remarks
ygol May 29, 2019
166bcb9
Update agreement_legal/__manifest__.py
ygol May 29, 2019
1563751
[UPD] update agreement demo data with compulsory fields
ygol May 29, 2019
cbedf79
[FIX] Issue #342
ygol Jun 5, 2019
b56c466
[IMP] agreement_serviceprofile: add stage
brian10048 Jul 18, 2019
502aa01
Update agreement_legal/models/agreement.py
ygol Sep 11, 2019
0ed400e
[IMP] move some notions from agreement_legal to agreement
gurneyalex Sep 27, 2019
71b559f
[IMP] New icon for agreement modules (svg file in agreement_legal)
marcelsavegnago Feb 15, 2020
6df63ee
[FIX] agreement_legal: Change company_contact_id domain
Tardo Feb 17, 2020
ee2bce7
[FIX] agreement_legal: Change partner_id domain in agreement view
Tardo Feb 18, 2020
aaec72c
[FIX] company_partner_id and partner_id have the same label: Partner.
MiquelRForgeFlow Feb 18, 2020
aa7f5dc
[IMP] agreement,agreement_legal: support activities
Mar 6, 2020
6b421df
[FIX] agreement_legal
murtuzasaleh May 5, 2020
c961b49
[12.0][FIX] agreement_legal: Error when mass action on list view
newtratip Feb 18, 2021
a079cb6
[14.0][MIG] agreement_legal (Version 12.0 to 14.0)
patrickrwilson May 4, 2021
059affa
[FIX] Removed old demo file
patrickrwilson Jul 2, 2021
70bcb1b
[14.0][ENH] agreement_legal
newtratip Jul 16, 2021
59e3e90
[FIX] agreement_legal: Change create_new_version() function in agreem…
victoralmau Oct 8, 2021
f6612c6
[FIX] agreement_legal: Change image field name in view.
victoralmau Oct 15, 2021
d3d175f
[IMP] agreement_legal: Replace the created_by + date_created fields.
victoralmau Oct 19, 2021
3590bd8
[IMP] agreement_legal: Add agreement list button
olgamarcocb Nov 17, 2021
4fb89e6
[IMP] agreement_legal: Add res_partner security group
olgamarcocb Oct 14, 2021
d2b921c
Added translation using Weblate (Spanish (Argentina))
ibuioli Feb 6, 2022
36af898
Translated using Weblate (Spanish (Argentina))
ibuioli Feb 6, 2022
baeefa3
[MIG] agreement_legal: Migration to 15.0
olgamarcocb May 11, 2022
3b9fe60
[IMP] agreement_legal: black, isort, prettier
etobella Aug 31, 2022
a36615c
[MIG] agreement_legal: Finish migration to 15.0
etobella Aug 31, 2022
1cefe52
[UPD] Update agreement_legal.pot
Oct 1, 2022
a3e2713
[UPD] README.rst
OCA-git-bot Oct 1, 2022
fb70f83
[IMP] agreement_legal: pre-commit stuff
urvisha-serpentcs Jan 13, 2023
92ab1b0
[MIG] agreement_legal: Migration to 16.0
urvisha-serpentcs Jan 13, 2023
10816a8
[IMP] fix pre-commit issue
urvisha-serpentcs Jan 13, 2023
8ed45d1
[UPD] Update agreement_legal.pot
Jun 8, 2023
2d73f70
[UPD] README.rst
OCA-git-bot Jun 8, 2023
a009633
Update translation files
weblate Jun 8, 2023
998ae74
[IMP] agreement_legal: Define warning days cron and filter
olgamarcocb Oct 15, 2021
2304558
[FIX] agreement_legal: Fix alert, improve test coverage
etobella Dec 13, 2021
63ac10c
[IMP] agreement_legal: create in batch
len-foss May 27, 2023
473e0cc
[REF] agreement_legal: split logic and view code functions
len-foss May 27, 2023
f61b67b
[MIG] agreement_legal: cleanup
heliaktiv Jun 5, 2023
becd180
[UPD] Update agreement_legal.pot
Jun 26, 2023
35300cf
agreement_legal 16.0.2.0.0
OCA-git-bot Jun 26, 2023
ecdb82f
Update translation files
weblate Jun 26, 2023
4834311
Translated using Weblate (Spanish)
Ivorra78 Jul 20, 2023
6547a70
[UPD] README.rst
OCA-git-bot Sep 3, 2023
f06ef92
Update translation files
weblate Oct 9, 2023
55af94f
Translated using Weblate (French)
gregory-moka Nov 8, 2023
0ea99d2
Added translation using Weblate (Italian)
mymage May 2, 2024
1b16fc0
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec Jul 6, 2024
ff0c7b3
[IMP] agreement_legal: pre-commit auto fixes
Sep 20, 2024
8969ca5
[17.0][MIG] agreement_legal: Migration to 17.0
Sep 20, 2024
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
143 changes: 143 additions & 0 deletions agreement_legal/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
================
Agreements Legal
================

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

.. |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/licence-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/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-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=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.

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.

**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

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)

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:%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>
- Italo LOPES <italo.lopes@camptocamp.com>

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/17.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
47 changes: 47 additions & 0 deletions agreement_legal/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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": "17.0.2.0.0",
"depends": ["contacts", "agreement", "product", "web"],
"data": [
"data/cron.xml",
"data/ir_sequence.xml",
"data/agreement_stage.xml",
"data/agreement_type.xml",
"security/res_groups.xml",
"security/ir.model.access.csv",
"report/agreement.xml",
"views/res_config_settings.xml",
"views/agreement_appendix.xml",
"views/agreement_clause.xml",
"views/agreement_recital.xml",
"views/agreement_section.xml",
"views/agreement_stages.xml",
"views/agreement_type.xml",
"views/agreement_subtype.xml",
"views/res_partner.xml",
"views/agreement.xml",
"views/menu.xml",
"wizards/create_agreement_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"],
}
64 changes: 64 additions & 0 deletions agreement_legal/data/agreement_stage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<odoo>

<record id="agreement_stage_new" model="agreement.stage">
<field name="name">New</field>
<field name="sequence">10</field>
<field name="stage_type">agreement</field>
</record>

<record id="agreement_stage_draft" model="agreement.stage">
<field name="name">Draft</field>
<field name="sequence">20</field>
<field name="stage_type">agreement</field>
</record>

<record id="agreement_stage_reviewed" model="agreement.stage">
<field name="name">Reviewed</field>
<field name="sequence">30</field>
<field name="stage_type">agreement</field>
</record>

<record id="agreement_stage_negotiation" model="agreement.stage">
<field name="name">Negotiation</field>
<field name="sequence">40</field>
<field name="stage_type">agreement</field>
</record>

<record id="agreement_stage_out" model="agreement.stage">
<field name="name">Out for Customer Signature</field>
<field name="sequence">50</field>
<field name="stage_type">agreement</field>
</record>

<record id="agreement_stage_internal" model="agreement.stage">
<field name="name">Waiting Internal Signature</field>
<field name="sequence">60</field>
<field name="stage_type">agreement</field>
</record>

<record id="agreement_stage_active" model="agreement.stage">
<field name="name">Active</field>
<field name="sequence">70</field>
<field name="stage_type">agreement</field>
</record>

<record id="agreement_stage_expired" model="agreement.stage">
<field name="name">Expired</field>
<field name="sequence">80</field>
<field name="stage_type">agreement</field>
</record>

<record id="agreement_stage_terminated" model="agreement.stage">
<field name="name">Terminated</field>
<field name="sequence">90</field>
<field name="fold">True</field>
<field name="stage_type">agreement</field>
</record>

<record id="agreement_stage_cancelled" model="agreement.stage">
<field name="name">Cancelled</field>
<field name="sequence">100</field>
<field name="fold">True</field>
<field name="stage_type">agreement</field>
</record>
</odoo>
15 changes: 15 additions & 0 deletions agreement_legal/data/agreement_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<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>
25 changes: 25 additions & 0 deletions agreement_legal/data/cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="1">
<!-- Add warning days -->
<record id="mail_activity_review_agreement" model="mail.activity.type">
<field name="name">Agreement needs a review</field>
<field name="summary">note</field>
<field name="category">default</field>
<field name="res_model">agreement</field>
<field name="icon">fa-tasks</field>
<field name="delay_count">0</field>
</record>
<!--Test warning days -->
<record model="ir.cron" forcecreate="True" id="ir_cron_test_acc_move_except">
<field name="name">Agreement: Check to Review Days</field>
<field name="model_id" ref="agreement_legal.model_agreement" />
<field name="state">code</field>
<field name="code">model._alert_to_review_date()</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_number">20</field>
<field name="interval_type">minutes</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="active" eval="True" />
</record>
</odoo>
12 changes: 12 additions & 0 deletions agreement_legal/data/ir_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<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>
40 changes: 40 additions & 0 deletions agreement_legal/demo/demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!--
© 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