Browse Source

MAR 20: [FIX] Bug Fixed 'vista_backend_theme'

pull/346/merge
Cybrosys Technologies 1 month ago
parent
commit
bf37a8f877
  1. 2
      vista_backend_theme/__manifest__.py
  2. 7
      vista_backend_theme/doc/RELEASE_NOTES.md
  3. 8
      vista_backend_theme/static/src/js/chrome/sidebar_menu.js
  4. 4
      vista_backend_theme/static/src/js/systray.js
  5. 1
      vista_backend_theme/static/src/scss/theme.scss
  6. 1
      vista_backend_theme/static/src/scss/theme_black.scss
  7. 1
      vista_backend_theme/static/src/scss/theme_green.scss
  8. 2
      vista_backend_theme/static/src/xml/top_bar_templates.xml

2
vista_backend_theme/__manifest__.py

@ -21,7 +21,7 @@
#############################################################################
{
"name": "Vista Backend Theme",
"version": "18.0.1.0.0",
"version": "18.0.1.0.1",
"category": "Themes/Backend",
"summary": "Vista Backend Theme is an attractive theme for backend",
"description": """Minimalist and elegant backend theme for Odoo 17,

7
vista_backend_theme/doc/RELEASE_NOTES.md

@ -1,8 +1,13 @@
## Module <vista_backend_theme>
#### 16.10.2024
#### Version 18.0.1.0.0
#### ADD
- Initial commit for Vista Backend Theme
#### 16.10.2024
#### Version 18.0.1.0.1
#### UPDATE
- Updated the code in the added conditions in the js files.

8
vista_backend_theme/static/src/js/chrome/sidebar_menu.js

@ -6,7 +6,7 @@ import { useRef, onMounted } from "@odoo/owl";
patch(NavBar.prototype, {
setup(){
super.setup();
this.closeSidebar = useRef("closeSidebar")
this.closeSidebar = useRef("closeSidebars")
this.openSidebar = useRef("openSidebar")
this.sidebar = useRef("sidebar")
this.sidebarPanel = useRef("sidebarPanel")
@ -16,10 +16,12 @@ patch(NavBar.prototype, {
onMounted(() => {
const closeSide = this.closeSidebar.el
const openSide = this.openSidebar.el
console.log(closeSide,this.closeSidebar)
console.log(openSide)
if (closeSide){
closeSide.addEventListener("click",this.closeSides)
}
if (openSide) {
openSide.addEventListener("click",this.openSides)
}
});
},

4
vista_backend_theme/static/src/js/systray.js

@ -12,11 +12,7 @@ export class ThemeWidget extends Component{
is_admin:false,
})
this.action = useService("action");
console.log(session.storeData['res.partner'])
console.log(session.storeData.Store.self.id)
// console.log(session.storeData['res.partner'].filter((partner)=>partner.userId === session.user_id[0]))
var admin = session.storeData['res.partner'].find((partner)=>partner.id == session.storeData.Store.self.id)
console.log(admin)
this.state.is_admin=admin.isAdmin;
}
_onClick(){ // create a onclick function for click on brush icon open the theme data wizard

1
vista_backend_theme/static/src/scss/theme.scss

@ -215,6 +215,7 @@ li.o_MessagingMenu.o-is-open {
margin-right: auto;
}
.top_heading{
background-color: #386aeb;
display: flex;
align-items: center;
ul.o_menu_apps{

1
vista_backend_theme/static/src/scss/theme_black.scss

@ -339,6 +339,7 @@ li.o_MessagingMenu.o-is-open {
margin-right: auto;
}
.top_heading{
background-color: black;
display: flex;
align-items: center;
ul.o_menu_apps{

1
vista_backend_theme/static/src/scss/theme_green.scss

@ -253,6 +253,7 @@ li.o_MessagingMenu.o-is-open {
margin-right: auto;
}
.top_heading{
background-color: #00A97F;
display: flex;
align-items: center;
ul.o_menu_apps{

2
vista_backend_theme/static/src/xml/top_bar_templates.xml

@ -84,7 +84,7 @@
<div class="c_dots_menu"/>
</div>
</a>
<a id="closeSidebar" t-ref="closeSidebar"
<a id="closeSidebar" t-ref="closeSidebars"
style="display: none; cursor: pointer;">
<div class="c_sidebar_passive">
<div class="c_dots_menu_toggled "/>

Loading…
Cancel
Save