Browse Source

publish muk_utils - 12.0

pull/32/head
MuK IT GmbH 5 years ago
parent
commit
a97c3f5c43
  1. 2
      muk_utils/models/scss_editor.py

2
muk_utils/models/scss_editor.py

@ -45,7 +45,7 @@ class ScssEditor(models.AbstractModel):
def _get_custom_attachment(self, url): def _get_custom_attachment(self, url):
return self.env["ir.attachment"].with_context( return self.env["ir.attachment"].with_context(
bin_size=False, bin_size_datas=False bin_size=False, bin_size_datas=False
).search([("url", '=', url)])
).search([("url", '=', url)], limit=1)
def _get_custom_view(self, url): def _get_custom_view(self, url):
return self.env["ir.ui.view"].search([("name", '=', url)]) return self.env["ir.ui.view"].search([("name", '=', url)])

Loading…
Cancel
Save