Skip to content

Commit abb348c

Browse files
committed
[MIG] base_tier_validation_board: migration to 18.0
1 parent 9e98437 commit abb348c

File tree

5 files changed

+11
-19
lines changed

5 files changed

+11
-19
lines changed

base_tier_validation_board/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Credits
6262
Authors
6363
-------
6464

65-
* FrogeFlow
65+
* ForgeFlow
6666

6767
Contributors
6868
------------

base_tier_validation_board/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
{
44
"name": "Tier Review Activity Board",
55
"summary": "Add Tier Review Boards",
6-
"version": "17.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"development_status": "Beta",
88
"maintainers": ["JasminSForgeFlow"],
99
"category": "Tools",
1010
"website": "https://github.com/OCA/server-ux",
11-
"author": "FrogeFlow, Odoo Community Association (OCA)",
11+
"author": "ForgeFlow, Odoo Community Association (OCA)",
1212
"license": "AGPL-3",
1313
"installable": True,
1414
"depends": ["base_tier_validation", "spreadsheet_dashboard"],

base_tier_validation_board/models/tier_review.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def _search(
6060
offset=0,
6161
limit=None,
6262
order=None,
63-
access_rights_uid=None,
6463
):
6564
# Rules do not apply to administrator
6665
if self.env.is_superuser():
@@ -69,16 +68,13 @@ def _search(
6968
offset=offset,
7069
limit=limit,
7170
order=order,
72-
access_rights_uid=access_rights_uid,
7371
)
7472
query = super()._search(domain, offset, limit, order)
7573
ids = self.browse(query).ids
7674
if not ids:
7775
return query
7876

79-
super(
80-
TierReview, self.with_user(access_rights_uid or self._uid)
81-
).check_access_rights("read")
77+
super().check_access("read")
8278

8379
self.flush_model(["model", "res_id"])
8480
reviews_to_check = []
@@ -102,14 +98,10 @@ def _search(
10298
allowed_ids = set()
10399
for doc_model, doc_ids in review_to_documents.items():
104100
doc_operation = "read"
105-
DocumentModel = self.env[doc_model].with_user(
106-
access_rights_uid or self._uid
107-
)
108-
right = DocumentModel.check_access_rights(
109-
doc_operation, raise_exception=False
110-
)
101+
DocumentModel = self.env[doc_model].with_user(self._uid)
102+
right = DocumentModel.has_access(doc_operation)
111103
if right:
112-
valid_docs = DocumentModel.browse(doc_ids)._filter_access_rules(
104+
valid_docs = DocumentModel.browse(doc_ids)._filtered_access(
113105
doc_operation
114106
)
115107
valid_doc_ids = set(valid_docs.ids)

base_tier_validation_board/static/description/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
407407
<div class="section" id="authors">
408408
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
409409
<ul class="simple">
410-
<li>FrogeFlow</li>
410+
<li>ForgeFlow</li>
411411
</ul>
412412
</div>
413413
<div class="section" id="contributors">

base_tier_validation_board/views/tier_review_view.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<field name="done_by" />
5757
<field name="comment" />
5858
<templates>
59-
<t t-name="kanban-box">
59+
<t t-name="card">
6060
<div t-attf-class="oe_kanban_content oe_kanban_global_click">
6161
<div class="oe_kanban_content">
6262
<div>
@@ -73,7 +73,7 @@
7373
<div class="oe_kanban_bottom_left">
7474
<div>
7575
<div>
76-
<strong>Requsted by: </strong>
76+
<strong>Requested by: </strong>
7777
<field name="requested_by" />
7878
</div>
7979
<div>
@@ -115,7 +115,7 @@
115115
name="view_ids"
116116
eval="[(5, 0, 0),
117117
(0, 0, {'view_mode': 'kanban', 'view_id': ref('tier_review_view_kanban')}),
118-
(0, 0, {'view_mode': 'tree', 'view_id': ref('base_tier_validation.tier_review_view_tree')}),
118+
(0, 0, {'view_mode': 'list', 'view_id': ref('base_tier_validation.tier_review_view_tree')}),
119119
(0, 0, {'view_mode': 'form', 'view_id': ref('tier_review_view_form_board')}),
120120
(0, 0, {'view_mode': 'pivot'}),
121121
(0, 0, {'view_mode': 'graph'})]"

0 commit comments

Comments
 (0)