mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
[14.0][FIX] document_page_approval: fix read
This commit is contained in:
parent
6367f2f3ef
commit
4c33bfe432
@ -130,8 +130,9 @@ class DocumentPage(models.Model):
|
||||
|
||||
def action_changes_pending_approval(self):
|
||||
self.ensure_one()
|
||||
action = self.env.ref("document_page_approval.action_change_requests")
|
||||
action = action.read()[0]
|
||||
action = self.env["ir.actions.act_window"]._for_xml_id(
|
||||
"document_page_approval.action_change_requests"
|
||||
)
|
||||
context = literal_eval(action["context"])
|
||||
context["search_default_page_id"] = self.id
|
||||
context["default_page_id"] = self.id
|
||||
|
Loading…
Reference in New Issue
Block a user