Skip to content

Commit

Permalink
first step
Browse files Browse the repository at this point in the history
  • Loading branch information
Kev-Roche committed Oct 4, 2021
0 parents commit 5251136
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 0 deletions.
Empty file added __init__.py
Empty file.
19 changes: 19 additions & 0 deletions __manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2021 Akretion (https://www.akretion.com).
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Custom Background",
"summary": "change background",
"version": "14.0.1.0.0",
"category": "Theme/Creative",
"author": " Akretion",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"web_responsive",
],
"data": [
"views/assets.xml",
],
}
3 changes: 3 additions & 0 deletions readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1. mettre une image dans static/src/img
2. mettre son nom ligne 8 dans static/src/css/custom_background.scss
par exemple : background: url("../img/randonnee-montagne-tohapi.jpg");
13 changes: 13 additions & 0 deletions static/src/css/custom_background.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
// customized background image
.o_menu_apps {
user-select: none;

.dropdown-menu {
@include full-screen-dropdown();
background: url("../img/randonnee-montagne-tohapi.jpg");
background-size: cover;
background-position: center;

}
}
Binary file added static/src/img/randonnee-montagne-tohapi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions views/assets.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="assets_backend"
name="Custom Background"
inherit_id="web.assets_backend"
>
<xpath expr="//link[last()]" position="after">
<link
rel="stylesheet"
href="/custom_background/static/src/css/custom_background.scss"
/>
</xpath>
</template>
</odoo>

0 comments on commit 5251136

Please sign in to comment.