[IMP] partner_profiles_portal: hide My structures
button for company users
This commit is contained in:
committed by
Stéphan Sainléger
parent
bba6775f07
commit
0c81c36d30
@@ -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",
|
||||
|
@@ -9,12 +9,15 @@
|
||||
<div class="mb8" t-field="user_id.partner_id"
|
||||
t-options="{"widget": "contact", "fields": ["email", "phone", "address", "name"]}" />
|
||||
<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>
|
Reference in New Issue
Block a user