[FIX] base: missing upgrade and uninstall button in apps kanban
before this commit, the uninstall and upgrade option is not shown in the kanban. introduced in: https://github.com/odoo/odoo/commit/5b68871097df5e7a13966dee4c650d1f34f9e7c1 * open apps kanban * click on kanban menu(3 dots) of installed app * upgrade and uninstall button is not shown after this commit, the upgrade and uninstall button will be shown in the apps kanban menu depending on the state of the app closes odoo/odoo#135132 X-original-commit: 90184ff280b4225522797528af51a32591eb5347 Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
This commit is contained in:
committed by
Rémy Voet (ryv)
parent
44d9b70b8e
commit
654948ea63
@@ -165,6 +165,7 @@
|
||||
<field name="application"/>
|
||||
<templates>
|
||||
<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>
|
||||
@@ -172,7 +173,6 @@
|
||||
</t>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_module_vignette">
|
||||
<t t-set="installed" t-value="record.state.raw_value == 'installed'"/>
|
||||
<div class="oe_module_icon">
|
||||
<img t-attf-src="#{record.icon.value}" class="w-100" alt="Icon"/>
|
||||
<span t-if="record.icon_flag" class="oe_module_flag"><t t-out="record.icon_flag.raw_value"/></span>
|
||||
|
||||
Reference in New Issue
Block a user