[FIX] website_theme_install: create theme attachments... with their key

This commit is contained in:
qsm-odoo
2018-08-31 13:44:31 +02:00
parent f7fbe8adff
commit 4bb0ea03e5
@@ -48,6 +48,7 @@ class IrModuleModule(models.Model):
for attach in self._get_module_data('theme.ir.attachment'):
already_create = loaded['attachments'].filtered(lambda x: x.key == attach.key)
new_attach = {
'key': attach.key,
'public': True,
'res_model': 'ir.ui.view',
'type': 'url',