Browse Source

publish muk_utils - 12.0

pull/9/head
MuK IT GmbH 5 years ago
parent
commit
006233c254
  1. 2
      muk_utils/__manifest__.py
  2. 2
      muk_utils/models/scss_editor.py

2
muk_utils/__manifest__.py

@ -19,7 +19,7 @@
{
"name": "MuK Utils",
"summary": """Utility Features""",
"version": '12.0.1.4.16',
"version": '12.0.1.4.17',
"category": 'Extra Tools',
"license": "AGPL-3",
"author": "MuK IT",

2
muk_utils/models/scss_editor.py

@ -91,6 +91,7 @@ class ScssEditor(models.AbstractModel):
def replace_content(self, url, xmlid, content):
custom_url = self._get_custom_url(url, xmlid)
custom_view = self._get_custom_view(custom_url)
custom_attachment = self._get_custom_attachment(custom_url)
datas = base64.b64encode((content or "\n").encode("utf-8"))
if custom_attachment.exists():
@ -104,6 +105,7 @@ class ScssEditor(models.AbstractModel):
'datas_fname': url.split("/")[-1],
'url': custom_url,
})
if not custom_view.exists():
view_to_xpath = self.env["ir.ui.view"].get_related_views(
xmlid, bundles=True
).filtered(lambda v: v.arch.find(url) >= 0)

Loading…
Cancel
Save