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

[18.0][MIG] document_page_approval: Migration to 18.0 #524

Open
wants to merge 53 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
e6a5d97
create document_page_approval module
cloutierjo Apr 16, 2013
1232fca
[IMP] Documentation
Jul 19, 2013
3237814
Set document_page_approval as unported
Jul 18, 2014
c3dd8a3
start porting
gborelli Nov 11, 2014
08ace91
Comment workflow that cause the error
llacroix Dec 29, 2014
f0cef0f
[IMP] - Changed string from email template.
Jul 23, 2015
2f590b6
[FIX] - document-page-approval: Fixes #60 url not valid when website …
Aug 19, 2015
f01154a
[MIG] document_page_approval: Migration to 9.0
naousse Oct 28, 2015
38b8c0f
[MIG] document_page_approval: Migration to 10.0
LeartS Dec 22, 2016
463bb6c
[FIX] View
max3903 Apr 13, 2018
afc1bf0
[IMP][10.0][document_page_approval] Change Requests and workflow impr…
ivantodorovich Apr 13, 2018
ffb2adb
[MIG] document_page_approval: Migration to 11.0
Jun 14, 2018
6b2a0bf
[FIX+IMP] document_page_approval:
ivantodorovich Apr 20, 2018
6501702
[FIX] pylint/javascript-lint
MiquelRForgeFlow Mar 11, 2019
a909f5e
[FIX] document_page_aproval: Modify in records rules
nicomacr May 31, 2019
e172757
[MIG] document_page_approval: Migration to v12
Aug 23, 2019
8d8c8ac
[IMP] document_page_approval: black, isort
Jul 4, 2020
cd6a16d
Migrate to 13.0 document_page_approval
Jul 4, 2020
508727b
[IMP] document_page_approval: black, isort, prettier + squashed admin…
jeroen-vet Sep 22, 2020
b4a66d9
[MIG] document_page_approval: Migration to 14.0
jeroen-vet Feb 23, 2021
705bf60
[FIX] document_page_approval: Avoid W7940 (dangerous-view-replace-wo-…
pedrobaeza Mar 30, 2022
a045036
[MIG] document_page_approval: Migration to 15.0
victoralmau Jul 26, 2022
eb09536
[16.0][MIG] document_page_approval: Migration to 16.0
FernandoRomera Dec 13, 2022
a5e21e3
Translated using Weblate (Italian)
mymage Dec 28, 2022
7cd101e
Translated using Weblate (Croatian)
badbole Feb 15, 2023
def06b5
Translated using Weblate (Italian)
francesco-ooops Apr 7, 2023
ae774de
Translated using Weblate (Italian)
mymage Apr 10, 2023
8776626
[FIX] document_page_approval: Change mail template expressions
victoralmau Apr 19, 2023
10b8dac
Translated using Weblate (Italian)
francesco-ooops Apr 26, 2023
443e60d
Translated using Weblate (Italian)
mymage May 18, 2023
f350ce6
Translated using Weblate (Spanish)
luis-ron Jun 6, 2023
54f7ef8
Translated using Weblate (Italian)
francesco-ooops Jun 6, 2023
23b35e3
Translated using Weblate (Italian)
mymage Jun 22, 2023
d6e4502
Translated using Weblate (Spanish)
Ivorra78 Aug 4, 2023
531a338
Translated using Weblate (Italian)
mymage Sep 4, 2023
b756193
Translated using Weblate (Spanish)
Ivorra78 Sep 5, 2023
21b6ce2
Translated using Weblate (Portuguese)
peterromao Feb 28, 2024
72b41d9
Translated using Weblate (Italian)
mymage Apr 2, 2024
279891c
[FIX] document_page_approval: Add correct followers in history pages
victoralmau Feb 23, 2021
f2188b3
Translated using Weblate (Spanish)
berisoft-arg May 15, 2024
a1fea69
Translated using Weblate (Swedish)
jakobkrabbe Jun 19, 2024
49f3835
[IMP] document_page_approval: pre-commit auto fixes
victoralmau Nov 12, 2024
a4972a0
[MIG] document_page_approval: Migration to 17.0
EdgarRetes Oct 2, 2024
f606356
[MIG] document_page_approval: Finish migration
victoralmau Nov 12, 2024
31c0bcf
[UPD] Update document_page_approval.pot
Nov 13, 2024
d9da88f
[BOT] post-merge updates
OCA-git-bot Nov 13, 2024
c4a42dd
Update translation files
weblate Nov 13, 2024
727c9c9
[UPD] Update document_page_approval.pot
Jan 24, 2025
3ed8b2f
Update translation files
weblate Jan 24, 2025
4bc910e
Translated using Weblate (Italian)
mymage Jan 25, 2025
116562d
Translated using Weblate (Spanish)
victoralmau Feb 3, 2025
a53bc19
[IMP] document_page_approval: pre-commit auto fixes
BhaveshHeliconia Feb 17, 2025
feb3997
[MIG] document_page_approval: Migration to 18.0
BhaveshHeliconia Feb 17, 2025
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
14 changes: 10 additions & 4 deletions document_page_approval/data/email_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@
<field name="body_html" type="html">
<p>Hello,</p>
<p><t t-out="object.create_uid.name" /> submited a new Change Request for <b
t-out="object.page_id.name"
/> and it needs your approval.</p>
t-out="object.page_id.name"
/> and it needs your approval.</p>
<h1>
<a t-att-href="object.page_url" t-out="object.display_name" />
</h1>
<p><b>Modified by:</b> <t t-out="object.create_uid.name" /></p>
<p><b>Date:</b> <t t-out="object.create_date" /></p>
<p>
<b>Modified by:</b>
<t t-out="object.create_uid.name" />
</p>
<p>
<b>Date:</b>
<t t-out="object.create_date" />
</p>
<t t-if="object.summary">
<h3>Summary</h3>
<p t-out="object.summary" />
Expand Down
5 changes: 3 additions & 2 deletions document_page_approval/models/document_page_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ def _compute_page_url(self):
)

page.page_url = (
"{}/web#db={}&id={}&" "model=document.page.history"
).format(base_url, self.env.cr.dbname, page.id)
f"{base_url}/web#db={self.env.cr.dbname}&id={page.id}&"
"model=document.page.history"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nota that these URLs are still supported, but have changed and might stop working in future versions.

)

def _compute_diff(self):
"""Shows a diff between this version and the previous version"""
Expand Down
4 changes: 2 additions & 2 deletions document_page_approval/views/document_page_approval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
invisible="not has_changes_pending_approval"
>
This document has <b
>Changes Pending Approval</b>. You are viewing the last approved content.
>Changes Pending Approval</b>. You are viewing the last approved content.
</div>
<div
class="alert alert-warning oe_edit_only"
Expand All @@ -142,7 +142,7 @@
invisible="not is_approval_required"
>
This document requires approval. If edited, you will create a new <b
>Change Request</b>.
>Change Request</b>.
</div>
<div
class="alert alert-warning oe_edit_only"
Expand Down