[IMP] document_page_reference: black, isort, prettier

This commit is contained in:
Michael Telahun 2021-11-15 04:23:42 +03:00 committed by Anusha
parent 4a23974391
commit 9df259a2a7
3 changed files with 7 additions and 6 deletions

View File

@ -5,7 +5,7 @@
"name": "Document Page Reference",
"summary": """
Include references on document pages""",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",

View File

@ -10,10 +10,11 @@ from odoo.tools.misc import html_escape
_logger = logging.getLogger(__name__)
try:
from jinja2.sandbox import SandboxedEnvironment
import re
from jinja2 import Undefined
from jinja2.lexer import name_re as old_name_re
import re
from jinja2.sandbox import SandboxedEnvironment
name_re = re.compile(u"^%s$" % old_name_re.pattern)