-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[17.0][MIG] agreement_legal: Migration to 17.0
- Loading branch information
ilo
committed
Oct 25, 2024
1 parent
ff0c7b3
commit cddeef9
Showing
21 changed files
with
273 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,6 +103,7 @@ Contributors | |
- Sandip Mangukiya <[email protected]> | ||
- Yves Goldberg <[email protected]> | ||
- Tharathip Chaweewongphan <[email protected]> | ||
- Italo LOPES <[email protected]> | ||
|
||
Other credits | ||
------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
- Sandip Mangukiya \<<[email protected]>\> | ||
- Yves Goldberg \<<[email protected]>\> | ||
- Tharathip Chaweewongphan \<<[email protected]>\> | ||
- Italo LOPES \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<templates> | ||
|
||
<t t-inherit="web.FormView" t-inherit-mode="extension"> | ||
<xpath | ||
expr="//*[@class='btn btn-secondary o_form_button_create']" | ||
position="after" | ||
> | ||
<t t-if="props.resModel === 'agreement'"> | ||
<t t-call="agreement_legal.TemplateButton" /> | ||
</t> | ||
</xpath> | ||
<xpath | ||
expr="//*[@class='btn btn-secondary o_form_button_create']" | ||
position="attributes" | ||
> | ||
<attribute name="t-if">canCreateTemplate</attribute> | ||
</xpath> | ||
</t> | ||
|
||
</templates> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<templates> | ||
|
||
<t | ||
t-name="agreement_legal.KanbanViewButtons" | ||
t-inherit="web.KanbanView.Buttons" | ||
t-inherit-mode="primary" | ||
> | ||
<div role="toolbar" position="inside"> | ||
<t t-call="agreement_legal.TemplateButton" /> | ||
</div> | ||
</t> | ||
<t | ||
t-name="agreement_legal.KanbanView" | ||
t-inherit="web.KanbanView" | ||
t-inherit-mode="primary" | ||
> | ||
<xpath expr="//button[hasclass('o-kanban-button-new')]" position="attributes"> | ||
<attribute name="t-if">!noCreate and canCreateTemplate</attribute> | ||
</xpath> | ||
</t> | ||
|
||
|
||
</templates> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<templates> | ||
<t | ||
t-name="agreement_legal.ListView" | ||
t-inherit="web.ListView.Buttons" | ||
t-inherit-mode="primary" | ||
> | ||
<xpath expr="//div[hasclass('o_list_buttons')]" position="attributes"> | ||
<attribute name="t-if">canCreateTemplate</attribute> | ||
</xpath> | ||
<xpath expr="//div[hasclass('o_list_buttons')]" position="after"> | ||
<t t-call="agreement_legal.TemplateButton" /> | ||
</xpath> | ||
</t> | ||
|
||
|
||
</templates> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<templates> | ||
|
||
<t t-name="agreement_legal.TemplateButton"> | ||
<button | ||
type="button" | ||
t-if="!canCreateTemplate" | ||
t-on-click="onClickCreateFromTemplate" | ||
class="create_agreement_from_template btn btn-primary mx-1" | ||
> | ||
Create From Template | ||
</button> | ||
</t> | ||
|
||
</templates> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.