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
[UPD] Update document_page_approval.pot [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: knowledge-16.0/knowledge-16.0-document_page_approval Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/
This commit is contained in:
committed by
Bhavesh Heliconia
parent
a045036e67
commit
eb0953684b
@@ -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