summaryrefslogtreecommitdiff
path: root/odoo/addons/base
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2021-03-25 08:45:35 +0000
committerAdrien Dieudonne <adr@odoo.com>2021-04-28 09:41:54 +0000
commitdf1cf7adf56e8fdf0a5348a5154b661f6b1f81b8 (patch)
treedf2b10b57d0d7b4801e95695d30ae03a2b8356ab /odoo/addons/base
parent0d3335237b0a754320c4050302af60f69b19f2cd (diff)
[FIX] base: apps: hide learn more button on iOS
According to the app-store guidelines we are not allowed to sell from the iOS app. Our updates are currently blocked because of this. In the rush, we have no choice but to hide the 'learn more' button displayed on each app. This redirects the customer to the documentation page where you can find subscription links. And this is unfortunately not allowed by Apple... Source: https://developer.apple.com/app-store/review/guidelines/#business Related PR: https://github.com/odoo/mobile-ios/pull/102 https://github.com/odoo/mobile-ios/pull/103 Task-ID: 2483253
Diffstat (limited to 'odoo/addons/base')
-rw-r--r--odoo/addons/base/views/ir_module_views.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/addons/base/views/ir_module_views.xml b/odoo/addons/base/views/ir_module_views.xml
index 8ea043a575f..1c75a436fc8 100644
--- a/odoo/addons/base/views/ir_module_views.xml
+++ b/odoo/addons/base/views/ir_module_views.xml
@@ -179,7 +179,7 @@
</a>
<div class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<a type="edit" class="dropdown-item">Module Info</a>
- <a t-if="record.website.raw_value" role="menuitem" class="dropdown-item" t-att-href="record.website.raw_value" target="_blank">Learn More</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">Upgrade</a>
<a t-if="installed" name="button_uninstall_wizard" type="object" role="menuitem" class="dropdown-item">Uninstall</a>
</div>
@@ -194,7 +194,7 @@
<code groups="base.group_no_one"><field name="name"/></code>
</p>
<div class="oe_module_action">
- <a t-att-href="record.website.raw_value" target="_blank" attrs="{'invisible':[('website', '=', '')]}" class="btn btn-sm btn-secondary float-right" role="button">Learn More</a>
+ <a t-att-href="record.website.raw_value" target="_blank" attrs="{'invisible':[('website', '=', '')]}" class="btn btn-sm btn-secondary float-right o-hidden-ios" role="button">Learn More</a>
<a type="edit" class="btn btn-secondary btn-sm float-right" role="button" attrs="{'invisible': [('website', '&lt;&gt;', '')]}">Module Info</a>
<button type="object" class="btn btn-primary btn-sm" name="button_immediate_install" states="uninstalled" t-if="! record.to_buy.raw_value">Install</button>
<a href="https://odoo.com/pricing?utm_source=db&amp;utm_medium=module#hosting=on_premise" class="btn btn-info btn-sm" states="uninstalled,uninstallable" t-if="record.to_buy.raw_value" role="button">Upgrade</a>