mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-16 04:02:56 -06:00
[IMP] document_page_reference: black, isort, prettier
This commit is contained in:
parent
4a23974391
commit
9df259a2a7
@ -5,7 +5,7 @@
|
|||||||
"name": "Document Page Reference",
|
"name": "Document Page Reference",
|
||||||
"summary": """
|
"summary": """
|
||||||
Include references on document pages""",
|
Include references on document pages""",
|
||||||
"version": "13.0.1.0.0",
|
"version": "14.0.1.0.0",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "Creu Blanca,Odoo Community Association (OCA)",
|
"author": "Creu Blanca,Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/knowledge",
|
"website": "https://github.com/OCA/knowledge",
|
||||||
|
@ -10,10 +10,11 @@ from odoo.tools.misc import html_escape
|
|||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from jinja2.sandbox import SandboxedEnvironment
|
import re
|
||||||
|
|
||||||
from jinja2 import Undefined
|
from jinja2 import Undefined
|
||||||
from jinja2.lexer import name_re as old_name_re
|
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)
|
name_re = re.compile(u"^%s$" % old_name_re.pattern)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user