[IMP] partner_profiles_portal: hide My structures button for company users

This commit is contained in:
Stéphan Sainléger
2023-05-05 14:13:34 +02:00
committed by Stéphan Sainléger
parent bba6775f07
commit 0c81c36d30
2 changed files with 16 additions and 12 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "partner_profiles_portal",
"version": "12.0.2.2.0",
"version": "12.0.2.2.1",
"author": "Elabore",
"website": "https://elabore.coop",
"maintainer": "Stéphan Sainléger",

View File

@@ -9,12 +9,15 @@
<div class="mb8" t-field="user_id.partner_id"
t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;email&quot;, &quot;phone&quot;, &quot;address&quot;, &quot;name&quot;]}" />
<div name="profiles_management">
<div id="account">
<a t-attf-href="/my/account">
<button class="btn btn-primary mb8">
My information
</button>
</a>
<br />
</div>
<div
id="structures" t-if="not user_id.partner_id.is_company">
<a t-attf-href="/my/structures">
<button class="btn btn-primary mb8">
My structures
@@ -22,6 +25,7 @@
</a>
</div>
</div>
</div>
</xpath>
</template>
</odoo>