Files
odoo_source/addons/iap/views/res_config_settings.xml
T
Urvi Soni e109e476e6 [IMP] various: reorganize the general setting
Purpose of the task is, 'general setting' is not easily understandable
by the user. The user often gets lost. This is especially damaging
through onboarding as some new users like to discover the software by
scrolling through the general settings.

So in this commit, the general setting is well organized and easily
understandable by the user.

Related PR: https://github.com/odoo/enterprise/pull/14707

closes odoo/odoo#61645

Taskid: 2374990
Related: odoo/enterprise#14707
Related: odoo/upgrade#1958
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-03-25 15:48:10 +00:00

43 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="open_iap_account" model="ir.actions.server">
<field name="name">Open IAP Account</field>
<field name="model_id" ref="base_setup.model_res_config_settings"/>
<field name="binding_model_id" ref="base_setup.model_res_config_settings"/>
<field name="state">code</field>
<field name="code">
if records:
action = records._redirect_to_iap_account()
</field>
</record>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.base.setup.iap</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='contacts_settings']" position="inside">
<div id="iap_portal">
<div class='row mt16 o_settings_container iap_portal' name="iap_purchases_setting_container">
<div class="col-12 col-lg-6 o_setting_box" id="iap_credits_setting">
<div class='o_setting_right_pane'>
<div class="o_form_label">
Odoo IAP
<a href="https://www.odoo.com/documentation/user/14.0/general/in_app_purchase/in_app_purchase.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<a href="https://www.odoo.com/documentation/14.0/webservices/iap.html" title="Documentation" class="ml-1 o_doc_link" target="_blank"></a>
</div>
<div class="text-muted">
View your IAP Services and recharge your credits
</div>
<div class='mt8'>
<button name="%(iap.open_iap_account)d" icon="fa-arrow-right" type="action" string="View My Services" class="btn-link"/>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>