File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,9 @@ class ThemeLeftPanel(models.Model):
287
287
left_panel_hover_item_bg = fields .Char ('Hover item Background color' , help = "Hover item Background color for Left Menu Bar" )
288
288
left_panel_hover_item_bg_active = fields .Boolean (default = False , help = "Hover item Background color for Left Menu Bar" )
289
289
290
+ left_panel_right_border = fields .Char ('Right border color' , help = "Right border color for Left Menu Bar" )
291
+ left_panel_right_border_active = fields .Boolean (default = False , help = "Right border color for Left Menu Bar" )
292
+
290
293
less = fields .Text ('less' , help = 'technical computed field' , compute = '_compute_less' )
291
294
292
295
@api .multi
@@ -417,6 +420,13 @@ def _compute_less(self):
417
420
}}
418
421
"""
419
422
)
423
+ if self .left_panel_right_border_active :
424
+ code = code + '''#app-sidebar{{
425
+ border: 3px solid {theme.left_panel_right_border};
426
+ border-top: 0;
427
+ border-bottom: 0;
428
+ border-left: 0;
429
+ }}'''
420
430
code = code .format (
421
431
theme = r ,
422
432
)
Original file line number Diff line number Diff line change 150
150
<field name =" left_panel_hover_item_bg_active" nolabel =" 1" class =" oe_inline" />
151
151
<field name =" left_panel_hover_item_bg" widget =" color" attrs =" {'readonly':[('left_panel_hover_item_bg_active','=',False)]}" class =" oe_inline" />
152
152
</div >
153
+ <div >
154
+ <label for =" left_panel_right_border" />
155
+ <field name =" left_panel_right_border_active" nolabel =" 1" class =" oe_inline" />
156
+ <field name =" left_panel_right_border" widget =" color" attrs =" {'readonly':[('left_panel_right_border_active','=',False)]}" class =" oe_inline" />
157
+ </div >
153
158
</group >
154
159
</group >
155
160
</sheet >
You can’t perform that action at this time.
0 commit comments