Skip to content

Commit

Permalink
[FIX] portal: raise front-end asset priority
Browse files Browse the repository at this point in the history
This is necessary to make it among the first of the "assets frontend"
inherited views, and specifically make it appear *before* the one from
website. Without this, SCSS styles may be randomly broken if the
original installation order of `portal` and `website` was reversed
(e.g. for older databases).
  • Loading branch information
odony committed Sep 3, 2018
1 parent b789092 commit 74d72b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/portal/views/assets.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_frontend" inherit_id="web.assets_frontend" name="Portal Assets">
<template id="assets_frontend" inherit_id="web.assets_frontend" name="Portal Assets" priority="15">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/portal/static/src/scss/bootstrap.extend.scss"/>
<link rel="stylesheet" type="text/scss" href="/portal/static/src/scss/portal.scss"/>
Expand Down

0 comments on commit 74d72b9

Please sign in to comment.