Migrate to 13.0 document_page_approval

To pass test is necesary set approval required to False in demo data
This commit is contained in:
flachica
2020-07-04 19:13:10 +02:00
committed by FernandoRomera
parent bc79903d9e
commit 32b684c65f
8 changed files with 27 additions and 37 deletions

View File

@@ -22,4 +22,4 @@ def post_init_hook(cr, registry): # pragma: no cover
def uninstall_hook(cr, registry): # pragma: no cover
# Remove unapproved pages
_logger.info("Deleting unapproved Change Requests.")
cr.execute("DELETE FROM document_page_history " "WHERE state != 'approved'")
cr.execute("DELETE FROM document_page_history WHERE state != 'approved'")