fix(roles): restringe usuarios Taller y Mecanico a solo la seccion de Taller y oculta precios
Some checks failed
CI / lint-and-test (3.11) (push) Has been cancelled
CI / lint-and-test (3.13) (push) Has been cancelled

- sidebar.js: itemAllowed incluye mechanic junto a workshop -> solo muestra Taller
- app-init.js: redirige a /pos/workshop si el rol es workshop/mechanic
- config_bp.py: remueve customers.view y fleet.view de los permisos por defecto de workshop/mechanic
- workshop.js: hidePrices ahora tambien aplica para mechanic; oculta columnas/inputs de precio
- app-init.js/config.js: agrega etiquetas de rol para workshop y mechanic
- workshop.html: marca columnas de precio con price-col y oculta input catRate

Tests: 35 passed
This commit is contained in:
2026-06-30 16:36:38 +00:00
parent c58f622486
commit c2db68b184
5 changed files with 18 additions and 13 deletions

View File

@@ -254,7 +254,7 @@
<div class="form-field">
<input class="form-input" id="catHours" type="number" step="0.1" placeholder="Horas" />
</div>
<div class="form-field">
<div class="form-field price-col">
<input class="form-input" id="catRate" type="number" step="0.01" placeholder="Precio/hora" />
</div>
<div class="form-field form-field--span3">
@@ -271,8 +271,8 @@
<tr>
<th>Servicio</th>
<th>Horas</th>
<th>Precio/hora</th>
<th>Total sugerido</th>
<th class="price-col">Precio/hora</th>
<th class="price-col">Total sugerido</th>
<th></th>
</tr>
</thead>