odex30_standard/hr_linkedin_recruitment/views/oauth_views.xml

33 lines
1.3 KiB
XML

<?xml version="1.0"?>
<odoo>
<template id="providers_fix" inherit_id="auth_oauth.providers">
<xpath expr="//t[@t-if]" position="replace">
<t t-if="providers and len(providers) &gt; 0">
<em t-attf-class="d-block text-center text-muted small my-#{len(providers) if len(providers) &lt; 3 else 3}">- or -</em>
<div class="o_auth_oauth_providers list-group mt-1 mb-1 text-start">
<a t-foreach="providers" t-as="p" class="list-group-item list-group-item-action py-2" t-att-href="p['auth_link']">
<i t-att-class="p['css_class']"/>
<t t-esc="p['body']"/>
</a>
</div>
</t>
</xpath>
</template>
<record id="view_oauth_provider_form" model="ir.ui.view">
<field name="name">
auth.oauth.provider.view.form.inherit.hr.linkedin.recruitment
</field>
<field name="model">auth.oauth.provider</field>
<field name="inherit_id" ref="auth_oauth.view_oauth_provider_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='client_id']" position="after">
<field name="client_secret"/>
</xpath>
</field>
</record>
</odoo>