Skip to content

Commit

Permalink
Merge pull request #1 from nuxly/dev_issue_60
Browse files Browse the repository at this point in the history
Dev issue 60
  • Loading branch information
fdesmottes authored Jan 12, 2023
2 parents ebd0837 + 9434cdb commit 5458e35
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# nuxly-odoo-addons
Our own addons Odoo

[//]: # (addons)

Available addons
----------------
addon | version | summary
--- | --- | ---
[home_menu_background](home_menu_background/) | 14.0.0.0 | Background customization
[isacompta_export](isacompta_export/) | 14.0.0.0 | ASCII Export for ISACOMPTA
[timesheet_reminder_mail](timesheet_reminder_mail/) | 14.0.0.0 | Timesheet reminder

[//]: # (end addons)
7 changes: 7 additions & 0 deletions home_menu_background/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Background customization

This module aims to customize odoo background (overlayed image, colors).

## Usage

This version is a beta version. You must manually edit the SCSS (`/home_menu_background/static/scss/ui.scss`) file to customize the background.
1 change: 1 addition & 0 deletions home_menu_background/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
28 changes: 28 additions & 0 deletions home_menu_background/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
{
'name': "Background customization",

'summary': """
Background customization for web client and login screen""",

'description': """
Customize odoo background (overlayed image, colors) for web client and login screen.
""",

'author': "Nuxly",
'website': "https://www.nuxly.com",

# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml
# for the full list
'category': 'Technical',
'version': '14.0.0.0',

# any module necessary for this one to work correctly
'depends': ['base', 'web_enterprise'],

# always loaded
'data': [
'views/templates.xml',
],
}
6 changes: 6 additions & 0 deletions home_menu_background/static/scss/ui.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Shared with web client and login screen
.o_home_menu_background {
background: url(/web_enterprise/static/src/img/home-menu-bg-overlay.svg),
linear-gradient(to right bottom, #A7C5D0, #A7C5D0);
background-size: cover;
}
8 changes: 8 additions & 0 deletions home_menu_background/views/templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_common" name="home_menu_background assets common" inherit_id="web_enterprise.assets_common">
<xpath expr="//link[@href='/web_enterprise/static/src/scss/ui.scss']" position="replace">
<link rel="stylesheet" type="text/scss" href="/home_menu_background/static/scss/ui.scss"/>
</xpath>
</template>
</odoo>

0 comments on commit 5458e35

Please sign in to comment.