updated the app view menu
This commit is contained in:
parent
b56c531377
commit
3b4d2f4866
@ -10,7 +10,14 @@
|
||||
'dine360_restaurant',
|
||||
'dine360_theme_chennora',
|
||||
],
|
||||
'data': [],
|
||||
'data': [
|
||||
'views/apps_kanban_menu.xml',
|
||||
],
|
||||
'assets': {
|
||||
'web.assets_backend': [
|
||||
'Dine360_Chennora/static/src/css/apps_kanban_fix.css',
|
||||
],
|
||||
},
|
||||
'installable': True,
|
||||
'application': True,
|
||||
}
|
||||
|
||||
31
addons/Dine360_Chennora/static/src/css/apps_kanban_fix.css
Normal file
31
addons/Dine360_Chennora/static/src/css/apps_kanban_fix.css
Normal file
@ -0,0 +1,31 @@
|
||||
/* Fix Apps kanban icon sizing and dropdown overlap */
|
||||
.o_modules_kanban .oe_module_vignette,
|
||||
.o_modules_kanban .o_kanban_record {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.o_modules_kanban .o_kanban_record {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.o_modules_kanban .oe_module_icon {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.o_modules_kanban .oe_module_icon img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.o_modules_kanban .oe_module_vignette .dropdown-menu {
|
||||
right: 0;
|
||||
left: auto;
|
||||
min-width: 160px;
|
||||
z-index: 1060;
|
||||
}
|
||||
15
addons/Dine360_Chennora/views/apps_kanban_menu.xml
Normal file
15
addons/Dine360_Chennora/views/apps_kanban_menu.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<template id="dine360_apps_kanban_menu" inherit_id="base.module_view_kanban" name="Dine360 Apps Kanban Menu">
|
||||
<xpath expr="//t[@t-name='kanban-menu']" position="replace">
|
||||
<t t-name="kanban-menu">
|
||||
<t t-set="installed" t-value="record.state.raw_value == 'installed'"/>
|
||||
<a type="edit" class="dropdown-item">Module Info</a>
|
||||
<a t-if="record.website.raw_value" role="menuitem" class="dropdown-item o-hidden-ios" t-att-href="record.website.raw_value" target="_blank">Learn More</a>
|
||||
<a t-if="installed" name="button_immediate_upgrade" type="object" role="menuitem" class="dropdown-item" groups="base.group_system">Upgrade</a>
|
||||
<a t-if="installed" name="button_uninstall_wizard" type="object" role="menuitem" class="dropdown-item" groups="base.group_system">Uninstall</a>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
x
Reference in New Issue
Block a user