Skip to content

Commit 27f485b

Browse files
author
Antoni Marroig Campomar
committed
[IMP] agreement_legal: Recompute from template
1 parent 32efb43 commit 27f485b

7 files changed

Lines changed: 242 additions & 281 deletions

File tree

agreement_legal/README.rst

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
================
62
Agreements Legal
73
================
@@ -17,7 +13,7 @@ Agreements Legal
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fagreement-lightgray.png?logo=github
@@ -53,29 +49,29 @@ Configuration
5349

5450
To configure this module:
5551

56-
- Go to Agreement > Configuration > Templates
57-
- Create a new template with sections and clauses and their respective
58-
content
59-
- Go to Agreement > Configuration > Stages
60-
- Create and reorder stages to match your process
52+
- Go to Agreement > Configuration > Templates
53+
- Create a new template with sections and clauses and their respective
54+
content
55+
- Go to Agreement > Configuration > Stages
56+
- Create and reorder stages to match your process
6157

6258
Usage
6359
=====
6460

6561
To use this module:
6662

67-
- Go to Agreement > Agreements
68-
- Create a new agreement
69-
- Select a template
70-
- Follow the process to get the required approval
71-
- Send the invitation to the customer to review and sign the agreement
63+
- Go to Agreement > Agreements
64+
- Create a new agreement
65+
- Select a template
66+
- Follow the process to get the required approval
67+
- Send the invitation to the customer to review and sign the agreement
7268

7369
Known issues / Roadmap
7470
======================
7571

76-
- Split the module to remove the dependencies on sale and account and
77-
provide the same feature in extra modules (agreement_sale,
78-
agreement_account, agreement_purchase)
72+
- Split the module to remove the dependencies on sale and account and
73+
provide the same feature in extra modules (agreement_sale,
74+
agreement_account, agreement_purchase)
7975

8076
Bug Tracker
8177
===========
@@ -100,26 +96,26 @@ Authors
10096
Contributors
10197
------------
10298

103-
- Patrick Wilson <[email protected]>
104-
- Bhavesh Odedra <[email protected]>
105-
- Wolfgang Hall <[email protected]>
106-
- Maxime Chambreuil <[email protected]>
107-
- Sandip Mangukiya <[email protected]>
108-
- Yves Goldberg <[email protected]>
109-
- Tharathip Chaweewongphan <[email protected]>
110-
- Italo LOPES <[email protected]>
111-
- `APSL-Nagarro <https://www.apsl.tech>`__:
99+
- Patrick Wilson <[email protected]>
100+
- Bhavesh Odedra <[email protected]>
101+
- Wolfgang Hall <[email protected]>
102+
- Maxime Chambreuil <[email protected]>
103+
- Sandip Mangukiya <[email protected]>
104+
- Yves Goldberg <[email protected]>
105+
- Tharathip Chaweewongphan <[email protected]>
106+
- Italo LOPES <[email protected]>
107+
- `APSL-Nagarro <https://www.apsl.tech>`__:
112108

113-
- Antoni Marroig <[email protected]>
109+
- Antoni Marroig <[email protected]>
114110

115111
Other credits
116112
-------------
117113

118114
The development of this module has been financially supported by:
119115

120-
- Pavlov Media
121-
- Open Source Integrators
122-
- Yves Goldberg
116+
- Pavlov Media
117+
- Open Source Integrators
118+
- Yves Goldberg
123119

124120
Maintainers
125121
-----------

agreement_legal/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"data": [
1717
"data/cron.xml",
1818
"data/ir_sequence.xml",
19+
"data/ir_actions.xml",
1920
"data/agreement_stage.xml",
2021
"data/agreement_type.xml",
2122
"security/res_groups.xml",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<odoo noupdate="1">
3+
<!-- Copyright 2026 Antoni Marroig (APSL-Nagarro)
4+
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
5+
<record
6+
id="action_agreement_legal_recompute_from_template"
7+
model="ir.actions.server"
8+
>
9+
<field name="name">Recompute From Template</field>
10+
<field name="model_id" ref="agreement.model_agreement" />
11+
<field name="state">code</field>
12+
<field name="code">
13+
model.recompute_from_template()
14+
</field>
15+
<field name="binding_model_id" ref="agreement.model_agreement" />
16+
<field name="binding_view_types">list,form</field>
17+
</record>
18+
</odoo>

0 commit comments

Comments
 (0)