mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[16.0][MIG] document_page_approval: Migration to 16.0
This commit is contained in:
@@ -46,7 +46,7 @@ class TestDocumentPageApproval(common.TransactionCase):
|
||||
self.assertEqual(chreq.state, "to approve")
|
||||
|
||||
# Needed to compute calculated fields
|
||||
page.refresh()
|
||||
page.invalidate_model()
|
||||
self.assertNotEqual(chreq.content, page.content)
|
||||
|
||||
# who_am_i
|
||||
@@ -61,7 +61,7 @@ class TestDocumentPageApproval(common.TransactionCase):
|
||||
# new changes should create change requests
|
||||
page.write({"content": "New content"})
|
||||
# Needed to compute calculated fields
|
||||
page.refresh()
|
||||
page.invalidate_model()
|
||||
self.assertNotEqual(page.content, "New content")
|
||||
chreq = self.history_obj.search(
|
||||
[("page_id", "=", page.id), ("state", "!=", "approved")]
|
||||
|
||||
Reference in New Issue
Block a user