Skip to content
Snippets Groups Projects
Commit af72f160 authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[update] security groups & access + dashboard overview

parent 7452708a
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
"license": "AGPL-3",
"depends": ["hall", "hall_flow", "hall_sale"],
"data": [
"security/dashboard_security.xml",
"security/ir.model.access.csv",
# datas
# templates
......
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="1">
<record model="ir.module.category" id="dashboard_category">
<field name="name">Dashboard</field>
<field name="sequence">10</field>
</record>
<record id="group_dashboard_user" model="res.groups">
<field name="name">Dashboard user</field>
<field name="category_id" ref="festa_dashboard.dashboard_category" />
</record>
</odoo>
id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
access_hall_contract_sale_report,access_hall_contract_sale_report,model_hall_contract_sale_report,hall.group_hall_user,1,0,0,0
access_hall_contract_sale_report_dashboard,access_hall_contract_sale_report_dashboard,model_hall_contract_sale_report,group_dashboard_user,1,0,0,0
access_hall_contract_sale_report_manager,access_hall_contract_sale_report_manager,model_hall_contract_sale_report,hall.group_hall_manager,1,1,1,1
access_hall_contract_target_report,access_hall_contract_target_report,model_hall_contract_target_report,hall.group_hall_user,1,0,0,0
access_hall_contract_target_report_dashboard,access_hall_contract_target_report_dashboard,model_hall_contract_target_report,group_dashboard_user,1,0,0,0
access_hall_contract_target_report_manager,access_hall_contract_target_report_manager,model_hall_contract_target_report,hall.group_hall_manager,1,1,1,1
......@@ -268,8 +268,9 @@
</thead>
<tbody>
<tr
t-foreach="values['contract_ids']"
t-foreach="values['contract_ids'].filtered('cashpad_id').sorted('commercial_name')"
t-as="contract"
t-att-class="'text-muted fst-italic' if not contract.active else ''"
>
<t
t-if="contract in hall.contract_ids"
......@@ -290,7 +291,7 @@
t-out="contract.stand_id.name"
/>
<td
t-out="contract.partner_id.name"
t-out="contract.commercial_name"
/>
<td
class="text-end"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment