[MOV] website_mail: rename portal related files
PURPOSE Fix frontend rating and clean a bit module organization SPECIFICATIONS In order to ease understanding of portal chatter dependencies let us name files according to guidelines. In this commit we rename a bit files in website mail to understand which widgets and portal parts are impacted by website mail bridge module. Assets are also moved in their own file to ease module discovering. LINKS Task 2057301 PR #35870
This commit is contained in:
@@ -12,12 +12,10 @@ It is responsible of comments moderation for published documents (forum, slides,
|
||||
""",
|
||||
'depends': ['website', 'mail'],
|
||||
'data': [
|
||||
'views/assets.xml',
|
||||
'views/website_mail_templates.xml',
|
||||
'security/website_mail_security.xml',
|
||||
],
|
||||
'qweb': [
|
||||
'static/src/xml/website_mail.xml'
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': True,
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,6 +8,6 @@ var portalChatter = require('portal.chatter');
|
||||
*/
|
||||
portalChatter.PortalChatter.include({
|
||||
xmlDependencies: (portalChatter.PortalChatter.prototype.xmlDependencies || [])
|
||||
.concat(['/website_mail/static/src/xml/website_mail.xml']),
|
||||
.concat(['/website_mail/static/src/xml/portal_chatter.xml']),
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="head" inherit_id="website.assets_frontend" name="Mail customization">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/website_mail/static/src/js/follow.js"></script>
|
||||
<script type="text/javascript" src="/website_mail/static/src/js/portal_chatter.js"></script>
|
||||
<link rel="stylesheet" type="text/scss" href="/website_mail/static/src/css/website_mail.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
@@ -16,13 +16,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template id="head" inherit_id="website.assets_frontend" name="Mail customization">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/website_mail/static/src/js/follow.js"></script>
|
||||
<script type="text/javascript" src="/website_mail/static/src/js/website_mail.js"></script>
|
||||
<link rel="stylesheet" type="text/scss" href="/website_mail/static/src/css/website_mail.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user