Skip to Content
Menu
This question has been flagged
1 Reply
3008 Views

<? xml version = "1.0" encoding = "UTF-8"?>

<Templates>

<! - This template is "SalesDashboard". ->

<t t-name = "sales_dashboard.SalesDashboard">

<div t-if = "show_demo or values" class = "o_sales_dashboard">

<Div>

<table class = "table-condensed table">

<Tr>

<td class = "o_main" title = "Sales Alerts" rowspan = "4">

<a href="#" class="o_dashboard_action" name="sales_dashboard_act">

<span class = "fa fa-th-large fa-3x">

<br />

Sales Alerts

<span class = "o_highlight">

<t t-esc = "values ​​['nb_opportunities']" />

</ Span>

<br />

</a>

</ Td>

<td class = "o_higher" title = "Orders for MD" colspan = "4">

<a href = "#" class = "o_dashboard_action" name = "action_orders"

data-extra = "md_approval">

<t t-if = "show_demo">

Orders for MD approval

</ T>

<span class = "o_highlight">

<t t-esc = "values ​​['orders'] ['md_approval']" />

</ Span>

<br />

</a>

</ Td>

</ Tr>

In the above code, say Sales Alerts should be visible only to certain groups.

I've added groups to the tag. It does not work.

How to make them work based on groups?

Avatar
Discard