In this commit, we remove three usages of the getBundle function from @web/core/assets.js. The final goal is to remove it totally to simplify the understanding of assets's API. To replace the use of getBundle in mobile preview dialog, an xml template has been created on the server side and then called by http requests. During the request, we retrieve the list of assets (server side getbundle) to inject these into the xml template. taskId : 3266441 closes odoo/odoo#138055 Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
12 lines
311 B
XML
12 lines
311 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="mass_mailing.preview_content_mobile">
|
|
<html>
|
|
<head>
|
|
<t t-call-assets="mass_mailing.iframe_css_assets_edit" t-js="False"></t>
|
|
</head>
|
|
<body></body>
|
|
</html>
|
|
</template>
|
|
</odoo>
|