[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",
|
"name": "partner_profiles_portal",
|
||||||
"version": "12.0.2.2.0",
|
"version": "12.0.2.2.1",
|
||||||
"author": "Elabore",
|
"author": "Elabore",
|
||||||
"website": "https://elabore.coop",
|
"website": "https://elabore.coop",
|
||||||
"maintainer": "Stéphan Sainléger",
|
"maintainer": "Stéphan Sainléger",
|
||||||
|
@@ -9,17 +9,21 @@
|
|||||||
<div class="mb8" t-field="user_id.partner_id"
|
<div class="mb8" t-field="user_id.partner_id"
|
||||||
t-options="{"widget": "contact", "fields": ["email", "phone", "address", "name"]}" />
|
t-options="{"widget": "contact", "fields": ["email", "phone", "address", "name"]}" />
|
||||||
<div name="profiles_management">
|
<div name="profiles_management">
|
||||||
<a t-attf-href="/my/account">
|
<div id="account">
|
||||||
<button class="btn btn-primary mb8">
|
<a t-attf-href="/my/account">
|
||||||
My information
|
<button class="btn btn-primary mb8">
|
||||||
</button>
|
My information
|
||||||
</a>
|
</button>
|
||||||
<br />
|
</a>
|
||||||
<a t-attf-href="/my/structures">
|
</div>
|
||||||
<button class="btn btn-primary mb8">
|
<div
|
||||||
My structures
|
id="structures" t-if="not user_id.partner_id.is_company">
|
||||||
</button>
|
<a t-attf-href="/my/structures">
|
||||||
</a>
|
<button class="btn btn-primary mb8">
|
||||||
|
My structures
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
Reference in New Issue
Block a user