[MIG] mail_preview_base: Migration to 15.0
This commit is contained in:
parent
c84c5194ae
commit
e07f18b46e
@ -5,14 +5,19 @@
|
||||
"name": "Mail Preview",
|
||||
"summary": """
|
||||
Base to add more previewing options""",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "15.0.1.0.0",
|
||||
"license": "LGPL-3",
|
||||
"author": "Creu Blanca,Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/social",
|
||||
"depends": ["mail"],
|
||||
"data": [
|
||||
"template/assets.xml",
|
||||
"views/ir_attachment_view.xml",
|
||||
],
|
||||
"qweb": ["static/src/xml/preview.xml"],
|
||||
"assets": {
|
||||
"web.assets_backend": [
|
||||
"mail_preview_base/static/src/js/preview.js",
|
||||
"mail_preview_base/static/src/scss/preview.scss",
|
||||
],
|
||||
"web.assets_qweb": ["mail_preview_base/static/src/xml/preview.xml"],
|
||||
},
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
odoo.define("mail_preview_base.preview", function (require) {
|
||||
"use strict";
|
||||
|
||||
var DocumentViewer = require("mail.DocumentViewer");
|
||||
const DocumentViewer = require("@mail/js/document_viewer")[Symbol.for("default")];
|
||||
var basic_fields = require("web.basic_fields");
|
||||
var registry = require("web.field_registry");
|
||||
|
||||
|
@ -1,27 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
|
||||
Copyright 2020 CreuBlanca
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
||||
|
||||
-->
|
||||
<odoo>
|
||||
<template
|
||||
id="assets_backend"
|
||||
name="mail_preview_base_assets"
|
||||
inherit_id="web.assets_backend"
|
||||
>
|
||||
<xpath expr="//script[last()]" position="after">
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/mail_preview_base/static/src/js/preview.js"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="/mail_preview_base/static/src/scss/preview.scss"
|
||||
/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
Loading…
Reference in New Issue
Block a user