Lleva el lanzador al diseño v2 y fija la identidad visual v1
Traduce el lanzador al diseño firmado: tres bloques grandes con código de color (Venta, Panel General, QR) sobre una fila de tarjetas chicas, con los SVG del diseño inline. Sigue siendo el dropdown nativo por herencia de web.NavBar.AppsMenu, forzado a pantalla completa con :has(); la navegación (DropdownItem, xmlid, foco de la app actual) no cambia. Toda app instalada que no esté mapeada cae a la fila inferior con su ícono nativo, así nada queda inalcanzable. beyond_variables.scss deja de ser placeholder a la espera del cliente: es la identidad v1 que definió Collina. El naranja y el morado quedan como variables locales del lanzador, no como tokens: no son colores de marca, son la codificación por color de esos tres bloques. Manrope se autoaloja en static/fonts en vez de cargarse de Google Fonts: las terminales de sucursal tienen que funcionar sin internet. La fila inferior centra con márgenes automáticos y no con justify-content: centrar desborda hacia ambos lados y deja las primeras tarjetas fuera del borde izquierdo, donde el scroll no llega. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
871ab622bc
commit
6bac70fc39
10 files changed
+439
-98
No files matched your search
@@ -8,8 +8,9 @@ Cimientos del sistema Beyond (BRIEF §4 y §6):
|
||||
- Tres grupos de seguridad del modelo de roles: administrador general,
|
||||
administrador de sucursal y empleado. Las reglas de registro (ir.rule)
|
||||
que aíslan datos por sucursal llegan en Fase 1 junto con beyond_branch.
|
||||
- Branding mínimo: nombre "Beyond" de la instancia y paleta placeholder
|
||||
(se sustituye cuando el cliente entregue su identidad visual).
|
||||
- Branding: nombre "Beyond" de la instancia, identidad visual v1 definida
|
||||
por Collina (paleta y tipografía Manrope autoalojada) y el lanzador de
|
||||
aplicaciones a pantalla completa (ADR-005).
|
||||
|
||||
Depende de hr/hr_attendance porque el rol "empleado" se define sobre
|
||||
empleados y asistencias, y las ir.rule de Fase 1 para esos modelos
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,18 +1,43 @@
|
||||
// =============================================================================
|
||||
// Paleta placeholder Beyond (Fase 0) — SUSTITUIR cuando el cliente entregue
|
||||
// su identidad visual definitiva (BRIEF §3, riesgo R2).
|
||||
// Beyond — visual identity v1 (defined by Collina Systems)
|
||||
//
|
||||
// Este archivo se antepone (prepend) a web._assets_primary_variables, por lo
|
||||
// que colorea tanto el backend como el POS: las variables de Odoo se declaran
|
||||
// con !default y respetan lo definido aquí.
|
||||
// This is no longer a placeholder waiting on the client: Beyond never handed
|
||||
// over a brand manual (BRIEF §3, risk R2), so Collina defined the identity and
|
||||
// signed it off through the launcher v2 design (ADR-005 / tickets C-005–C-006).
|
||||
// Every value below is taken from that design. If the client ever delivers a
|
||||
// brand of their own, this file is the single place to swap it.
|
||||
//
|
||||
// This file is prepended to web._assets_primary_variables, so it colours both
|
||||
// the backend and the POS: Odoo's own variables are declared with !default and
|
||||
// therefore respect whatever is defined here.
|
||||
//
|
||||
// SCOPE — only cross-cutting brand tokens live here. The launcher's orange
|
||||
// (#C55A22) and purple (#8C4A72) are deliberately NOT tokens: they are not
|
||||
// brand colours, they are the colour-coding of the three launcher blocks and
|
||||
// mean nothing outside that screen. Publishing them in this bundle would push
|
||||
// them into the backend and POS and invite their use as semantic colours.
|
||||
// They live as local variables in webclient/beyond_launcher.scss.
|
||||
//
|
||||
// TYPOGRAPHY — the design uses Manrope. The @font-face rules are declared in
|
||||
// webclient/beyond_launcher.scss because the woff2 files are only wired into
|
||||
// web.assets_backend so far; there is no font-family token here yet on purpose,
|
||||
// a token would promise a face that other bundles (POS) cannot resolve.
|
||||
// =============================================================================
|
||||
|
||||
// Tokens de marca (placeholder)
|
||||
$beyond-primary: #0f6b5c; // verde esmeralda profundo
|
||||
$beyond-primary-dark: #0a4a40; // variante oscura (navbar POS, énfasis)
|
||||
$beyond-accent: #c79a3b; // dorado (acentos, precios, badges)
|
||||
$beyond-surface: #f7f5f0; // fondo cálido de superficies
|
||||
// Brand green. The launcher's "Venta" block and its hover/pressed states.
|
||||
$beyond-primary: #0E6B57;
|
||||
$beyond-primary-dark: #0A5B49;
|
||||
$beyond-primary-darker: #084C3D;
|
||||
|
||||
// Color de marca del cliente web: de aquí derivan $o-brand-primary, $o-action
|
||||
// y el $primary de Bootstrap en los bundles de backend y POS.
|
||||
// Surfaces
|
||||
$beyond-surface: #F6F5F1; // warm page background
|
||||
$beyond-surface-hover: #ECEAE3; // hover on a surface-coloured control
|
||||
|
||||
// Ink
|
||||
$beyond-ink: #23201D; // primary text, icon strokes, focus ring
|
||||
$beyond-ink-soft: #4A453E; // secondary labels
|
||||
$beyond-ink-muted: #A39C91; // supporting text (signature, metadata)
|
||||
|
||||
// Web client brand colour: $o-brand-primary, $o-action and Bootstrap's
|
||||
// $primary derive from this in both the backend and POS bundles.
|
||||
$o-community-color: $beyond-primary;
|
||||
@@ -1,14 +1,92 @@
|
||||
// =============================================================================
|
||||
// C-005/C-006 · Lanzador Beyond (ADR-005)
|
||||
// C-005/C-006 · Beyond launcher v2 (ADR-005)
|
||||
//
|
||||
// Pantalla completa con DOS BANDAS alineadas (C-006): apps diarias en
|
||||
// tarjetas grandes de un solo tamaño; ocasionales en tarjetas chicas de un
|
||||
// solo tamaño. Sin mezclar tamaños en la misma fila, sin huecos: tarjetas
|
||||
// de ancho fijo por banda, centradas y repartidas de forma pareja.
|
||||
// :has() está soportado por los navegadores objetivo (BRIEF §8). Los
|
||||
// !important pisan el posicionamiento inline del popover.
|
||||
// Faithful translation of the signed-off "Lanzador v2" design. Every colour,
|
||||
// radius, size, gap, duration and font weight below comes from that file; the
|
||||
// few rules that have no counterpart there are marked ENGINEERING and explain
|
||||
// what they protect against (an app-less band, a long fallback row, a short
|
||||
// viewport) — the design only covers the nominal case.
|
||||
//
|
||||
// It is still the native apps dropdown, restyled: the popover is forced full
|
||||
// screen with :has() + !important, which beats the inline positioning the
|
||||
// popover service writes. :has() is supported by the target browsers
|
||||
// (BRIEF §8).
|
||||
//
|
||||
// Local, on purpose: the orange and purple below are the launcher's block
|
||||
// colour-coding, not brand colours, so they are NOT tokens in
|
||||
// scss/beyond_variables.scss. See the SCOPE note there.
|
||||
// =============================================================================
|
||||
|
||||
// "Panel General" block
|
||||
$beyond-launcher-panel: #C55A22;
|
||||
$beyond-launcher-panel-hover: #B14E1B;
|
||||
$beyond-launcher-panel-active: #984115;
|
||||
|
||||
// "QR" block
|
||||
$beyond-launcher-qr: #8C4A72;
|
||||
$beyond-launcher-qr-hover: #7C3E64;
|
||||
$beyond-launcher-qr-active: #6B3556;
|
||||
|
||||
$beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Manrope, self-hosted. NOT loaded from Google Fonts on purpose: the branch
|
||||
// terminals have to keep working with no internet. These are the same variable
|
||||
// woff2 subsets the design shipped (one file per unicode range, weight axis
|
||||
// 500–800), so the four weights the design uses all resolve from one file.
|
||||
// -----------------------------------------------------------------------------
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-cyrillic-ext.woff2') format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-cyrillic.woff2') format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-greek.woff2') format('woff2');
|
||||
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Full-screen shell
|
||||
// -----------------------------------------------------------------------------
|
||||
.o-dropdown--menu:has(.beyond_launcher_band) {
|
||||
position: fixed !important;
|
||||
inset: 0 !important;
|
||||
@@ -18,82 +96,179 @@
|
||||
max-height: none !important;
|
||||
transform: none !important;
|
||||
margin: 0 !important;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2.5rem;
|
||||
padding: 3.5rem clamp(1.5rem, 8vw, 8rem);
|
||||
overflow-y: auto;
|
||||
background: $beyond-surface;
|
||||
}
|
||||
color: $beyond-ink;
|
||||
font-family: $beyond-font-family;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
// ENGINEERING — the design assumes a viewport tall enough for the whole
|
||||
// layout, where nothing scrolls. Below that, scrolling the shell beats
|
||||
// clipping tiles out of reach (see .beyond_launcher_primary).
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
|
||||
.beyond_launcher_band {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
gap: 1rem;
|
||||
// The signature strip
|
||||
.beyond_launcher_brand {
|
||||
flex: none;
|
||||
padding: 18px 22px 6px;
|
||||
|
||||
// Una banda sin apps (según rol) no deja franja fantasma
|
||||
&:empty {
|
||||
span {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
color: $beyond-ink-muted;
|
||||
}
|
||||
}
|
||||
|
||||
// ENGINEERING — a band with no apps for this role must not leave a ghost
|
||||
// strip. :has() rather than :empty so template whitespace cannot fool it.
|
||||
.beyond_launcher_primary:not(:has(.beyond_block)),
|
||||
.beyond_launcher_secondary:not(:has(.beyond_tile)) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Banda inferior: separador sutil entre lo diario y lo ocasional
|
||||
.beyond_launcher_ocasional {
|
||||
padding-top: 2rem;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.beyond_app_card {
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.75rem;
|
||||
padding: 1rem;
|
||||
background: #fff;
|
||||
border-radius: 1rem;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
|
||||
&:hover,
|
||||
&.focus {
|
||||
background: #fff;
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
|
||||
.beyond_launcher_primary {
|
||||
// Design says `flex: 1; min-height: 0`. `1 0 auto` renders identically
|
||||
// wherever the layout fits and, when it does not, pushes the shell into
|
||||
// scrolling instead of squashing the blocks.
|
||||
flex: 1 0 auto;
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
padding: 8px 6px 0;
|
||||
}
|
||||
|
||||
.beyond_app_name {
|
||||
white-space: normal;
|
||||
line-height: 1.2;
|
||||
.beyond_launcher_secondary {
|
||||
flex: none;
|
||||
height: 128px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 6px;
|
||||
// ENGINEERING — the row also catches every unmapped app, so it can grow
|
||||
// past the viewport. Scrolling sideways keeps them reachable without
|
||||
// breaking the fixed 128px band. The design's centring is done with
|
||||
// auto margins rather than justify-content on purpose: centred flex
|
||||
// content overflows in BOTH directions, pushing the first tiles off
|
||||
// the left edge where scrolling cannot reach them. Auto margins
|
||||
// collapse to 0 once there is no free space, so the row simply starts
|
||||
// at the left and scrolls right.
|
||||
justify-content: flex-start;
|
||||
overflow-x: auto;
|
||||
|
||||
.beyond_tile:first-child { margin-inline-start: auto; }
|
||||
.beyond_tile:last-child { margin-inline-end: auto; }
|
||||
}
|
||||
}
|
||||
|
||||
// Tamaño único por banda (C-006): diarias grandes…
|
||||
.beyond_launcher_daily .beyond_app_card {
|
||||
width: 14rem;
|
||||
min-height: 11.5rem;
|
||||
font-size: 1.25rem;
|
||||
// Shared reset: DropdownItem renders an <a.dropdown-item>, so Bootstrap's
|
||||
// block layout, padding, colour and nowrap have to go before the design's
|
||||
// own box takes over.
|
||||
.beyond_block,
|
||||
.beyond_tile {
|
||||
box-sizing: border-box;
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: auto;
|
||||
background: none;
|
||||
border: 0;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.beyond_app_icon {
|
||||
width: 5rem;
|
||||
height: 5rem;
|
||||
object-fit: contain;
|
||||
// -------------------------------------------------------------------------
|
||||
// Main band: three colour-coded blocks sharing the width
|
||||
// -------------------------------------------------------------------------
|
||||
.beyond_block {
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
justify-content: center;
|
||||
gap: 34px;
|
||||
padding: 0;
|
||||
border-radius: 28px;
|
||||
transition: flex-grow 220ms ease, background 180ms ease;
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
flex-grow: 1.18;
|
||||
}
|
||||
|
||||
// The design has one "you are here" affordance, the focus ring, so the
|
||||
// current app (.focus, set by the navbar) reuses it. :focus is the
|
||||
// literal design state and keeps arrow-key navigation visible.
|
||||
&:focus,
|
||||
&.focus {
|
||||
outline: 4px solid $beyond-ink;
|
||||
outline-offset: -6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// …ocasionales chicas
|
||||
.beyond_launcher_ocasional .beyond_app_card {
|
||||
width: 10rem;
|
||||
min-height: 8rem;
|
||||
font-size: 0.95rem;
|
||||
.beyond_block_name {
|
||||
font-size: 30px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.beyond_block_venta {
|
||||
background: $beyond-primary;
|
||||
|
||||
&:hover { background: $beyond-primary-dark; }
|
||||
&:active { background: $beyond-primary-darker; }
|
||||
}
|
||||
|
||||
.beyond_block_panel {
|
||||
background: $beyond-launcher-panel;
|
||||
|
||||
&:hover { background: $beyond-launcher-panel-hover; }
|
||||
&:active { background: $beyond-launcher-panel-active; }
|
||||
}
|
||||
|
||||
.beyond_block_qr {
|
||||
background: $beyond-launcher-qr;
|
||||
|
||||
&:hover { background: $beyond-launcher-qr-hover; }
|
||||
&:active { background: $beyond-launcher-qr-active; }
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Secondary row: small tiles (~132x98, well over the 48px touch floor)
|
||||
// -------------------------------------------------------------------------
|
||||
.beyond_tile {
|
||||
flex: none;
|
||||
width: 132px;
|
||||
padding: 14px 0;
|
||||
gap: 10px;
|
||||
border-radius: 20px;
|
||||
transition: background 140ms ease;
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&.focus {
|
||||
background: $beyond-surface-hover;
|
||||
}
|
||||
}
|
||||
|
||||
.beyond_tile_name {
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: $beyond-ink-soft;
|
||||
// ENGINEERING — fallback app names are arbitrary; clip them rather than
|
||||
// let a long one wrap and push the tile out of the 128px band.
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.beyond_app_icon {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
// Native icon, sized like the designed 42px glyphs it stands in for.
|
||||
.beyond_tile_icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
<!--
|
||||
C-005/C-006 · Lanzador Beyond. Se extiende el menú de apps nativo
|
||||
(ADR-005): botón de casa, y las apps repartidas en DOS BANDAS desde
|
||||
la plantilla — diarias y ocasionales — para que cada banda alinee
|
||||
tarjetas de un solo tamaño (C-006: nada de mosaicos irregulares).
|
||||
C-005/C-006 · Beyond launcher v2 (ADR-005).
|
||||
|
||||
Still an extension of the native apps menu, not a new screen: the
|
||||
grid button becomes a house and the dropdown is forced full screen
|
||||
from the stylesheet. Navigation stays native (DropdownItem,
|
||||
onSelected, getMenuItemHref, data-menu-xmlid, current-app focus),
|
||||
so hotkeys, keyboard navigation and group filtering are untouched.
|
||||
|
||||
v2 replaces the two symmetric bands with the signed-off layout: a
|
||||
three-block colour-coded main band (Venta / Panel General / QR) over
|
||||
a row of small tiles. Blocks are laid out in design order, which is
|
||||
why apps are matched one by one instead of looped over: each block
|
||||
carries its own inline SVG and its own colour.
|
||||
|
||||
Apps are matched by xmlid string, never imported: a module that is
|
||||
not installed simply never matches (no hard dependency). Every
|
||||
installed app that no rule below claims falls through to the bottom
|
||||
row with its native icon, so nothing becomes unreachable.
|
||||
-->
|
||||
<t t-name="beyond_base.NavBar.AppsMenu"
|
||||
t-inherit="web.NavBar.AppsMenu"
|
||||
@@ -13,34 +27,160 @@
|
||||
<i class="fa fa-home fs-4"/>
|
||||
</xpath>
|
||||
<xpath expr="//DropdownItem[@t-foreach='apps']" position="replace">
|
||||
<!-- Referencias por string: si un módulo no está instalado, su
|
||||
xmlid simplemente no empata (sin dependencia dura). El
|
||||
Kiosco (C-023) es de uso diario: se abre cada mañana. -->
|
||||
<t t-set="beyondDaily"
|
||||
t-value="['point_of_sale.menu_point_root', 'beyond_attendance_qr.menu_kiosco_app', 'beyond_branch.menu_beyond_root', 'contacts.menu_contacts']"/>
|
||||
<div class="beyond_launcher_band beyond_launcher_daily">
|
||||
<t t-set="beyondPrimary"
|
||||
t-value="['point_of_sale.menu_point_root', 'beyond_branch.menu_beyond_root', 'beyond_attendance_qr.menu_kiosco_app']"/>
|
||||
<t t-set="beyondSecondary"
|
||||
t-value="['stock.menu_stock_root', 'contacts.menu_contacts', 'mail.menu_root_discuss', 'hr.menu_hr_root', 'spreadsheet_dashboard.spreadsheet_dashboard_menu_root']"/>
|
||||
|
||||
<div class="beyond_launcher_brand">
|
||||
<span>Powered by Collina Systems</span>
|
||||
</div>
|
||||
|
||||
<!-- Main band: three colour-coded blocks that share the width.
|
||||
A block whose app is hidden for this role simply does not
|
||||
render and the remaining ones spread out on their own. -->
|
||||
<div class="beyond_launcher_band beyond_launcher_primary">
|
||||
<t t-foreach="apps" t-as="app" t-key="app.id">
|
||||
<DropdownItem
|
||||
t-if="beyondDaily.includes(app.xmlid)"
|
||||
class="{ 'o_app': true, 'beyond_app_card': true, focus: menuService.getCurrentApp() === app }"
|
||||
t-if="app.xmlid === 'point_of_sale.menu_point_root'"
|
||||
class="{ 'o_app': true, 'beyond_block': true, 'beyond_block_venta': true, focus: menuService.getCurrentApp() === app }"
|
||||
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
||||
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
||||
>
|
||||
<img t-if="app.webIconData" class="beyond_app_icon" t-att-src="app.webIconData" alt=""/>
|
||||
<span class="beyond_app_name" t-esc="app.name"/>
|
||||
<svg width="168" height="168" viewBox="0 0 48 48" fill="none" aria-hidden="true">
|
||||
<path d="M11 16h26l3.2 25.3A3.5 3.5 0 0 1 36.7 45H11.3a3.5 3.5 0 0 1-3.5-3.7L11 16Z" fill="#FFFFFF"/>
|
||||
<path d="M11 16h13v29H11.3a3.5 3.5 0 0 1-3.5-3.7L11 16Z" fill="#FFFFFF" fill-opacity="0.55"/>
|
||||
<path d="M16.5 16a7.5 7.5 0 0 1 15 0" stroke="#FFFFFF" stroke-width="4.5" fill="none" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="beyond_block_name">Venta</span>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
<t t-foreach="apps" t-as="app" t-key="app.id">
|
||||
<DropdownItem
|
||||
t-if="app.xmlid === 'beyond_branch.menu_beyond_root'"
|
||||
class="{ 'o_app': true, 'beyond_block': true, 'beyond_block_panel': true, focus: menuService.getCurrentApp() === app }"
|
||||
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
||||
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
||||
>
|
||||
<svg width="168" height="168" viewBox="0 0 48 48" fill="none" aria-hidden="true">
|
||||
<rect x="4" y="8" width="40" height="32" rx="5" fill="#FFFFFF"/>
|
||||
<rect x="9" y="20" width="13" height="15" rx="2.5" fill="#C55A22"/>
|
||||
<rect x="26" y="20" width="13" height="7" rx="2.5" fill="#C55A22" fill-opacity="0.55"/>
|
||||
<rect x="26" y="30" width="13" height="5" rx="2.5" fill="#C55A22" fill-opacity="0.55"/>
|
||||
<rect x="9" y="13" width="30" height="3.5" rx="1.75" fill="#C55A22" fill-opacity="0.35"/>
|
||||
</svg>
|
||||
<span class="beyond_block_name">Panel General</span>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
<t t-foreach="apps" t-as="app" t-key="app.id">
|
||||
<DropdownItem
|
||||
t-if="app.xmlid === 'beyond_attendance_qr.menu_kiosco_app'"
|
||||
class="{ 'o_app': true, 'beyond_block': true, 'beyond_block_qr': true, focus: menuService.getCurrentApp() === app }"
|
||||
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
||||
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
||||
>
|
||||
<svg width="168" height="168" viewBox="0 0 48 48" fill="none" aria-hidden="true">
|
||||
<rect x="6" y="4" width="36" height="27" rx="4" fill="#FFFFFF"/>
|
||||
<rect x="21" y="31" width="6" height="8" fill="#FFFFFF" fill-opacity="0.55"/>
|
||||
<rect x="13" y="39" width="22" height="5" rx="2.5" fill="#FFFFFF" fill-opacity="0.55"/>
|
||||
<circle cx="24" cy="17.5" r="4.5" fill="#8C4A72"/>
|
||||
<path d="M31.5 10a10.5 10.5 0 0 1 0 15" stroke="#8C4A72" stroke-width="3" fill="none" stroke-linecap="round"/>
|
||||
<path d="M16.5 10a10.5 10.5 0 0 0 0 15" stroke="#8C4A72" stroke-width="3" fill="none" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="beyond_block_name">QR</span>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
</div>
|
||||
<div class="beyond_launcher_band beyond_launcher_ocasional">
|
||||
|
||||
<!-- Secondary row: the designed tiles first, in design order,
|
||||
then every other installed app with its native icon. -->
|
||||
<div class="beyond_launcher_band beyond_launcher_secondary">
|
||||
<t t-foreach="apps" t-as="app" t-key="app.id">
|
||||
<DropdownItem
|
||||
t-if="!beyondDaily.includes(app.xmlid)"
|
||||
class="{ 'o_app': true, 'beyond_app_card': true, focus: menuService.getCurrentApp() === app }"
|
||||
t-if="app.xmlid === 'stock.menu_stock_root'"
|
||||
class="{ 'o_app': true, 'beyond_tile': true, focus: menuService.getCurrentApp() === app }"
|
||||
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
||||
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
||||
>
|
||||
<img t-if="app.webIconData" class="beyond_app_icon" t-att-src="app.webIconData" alt=""/>
|
||||
<span class="beyond_app_name" t-esc="app.name"/>
|
||||
<svg width="42" height="42" viewBox="0 0 48 48" fill="none" aria-hidden="true">
|
||||
<path d="M24 5l18 9v20l-18 9-18-9V14l18-9Z" fill="#23201D"/>
|
||||
<path d="M6 14l18 9v20L6 34V14Z" fill="#23201D" fill-opacity="0.55"/>
|
||||
<path d="M6 14l18 9 18-9" stroke="#F6F5F1" stroke-width="2.5"/>
|
||||
</svg>
|
||||
<span class="beyond_tile_name">Inventario</span>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
<t t-foreach="apps" t-as="app" t-key="app.id">
|
||||
<DropdownItem
|
||||
t-if="app.xmlid === 'contacts.menu_contacts'"
|
||||
class="{ 'o_app': true, 'beyond_tile': true, focus: menuService.getCurrentApp() === app }"
|
||||
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
||||
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
||||
>
|
||||
<svg width="42" height="42" viewBox="0 0 48 48" fill="none" aria-hidden="true">
|
||||
<rect x="7" y="6" width="34" height="36" rx="5" fill="#23201D"/>
|
||||
<rect x="7" y="6" width="7" height="36" rx="3" fill="#23201D"/>
|
||||
<rect x="16" y="6" width="2" height="36" fill="#F6F5F1" fill-opacity="0.35"/>
|
||||
<circle cx="29" cy="20" r="5.5" fill="#F6F5F1"/>
|
||||
<path d="M19 35c1.6-4.8 5.2-7.2 10-7.2S37.4 30.2 39 35H19Z" fill="#F6F5F1"/>
|
||||
</svg>
|
||||
<span class="beyond_tile_name">Contactos</span>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
<t t-foreach="apps" t-as="app" t-key="app.id">
|
||||
<DropdownItem
|
||||
t-if="app.xmlid === 'mail.menu_root_discuss'"
|
||||
class="{ 'o_app': true, 'beyond_tile': true, focus: menuService.getCurrentApp() === app }"
|
||||
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
||||
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
||||
>
|
||||
<svg width="42" height="42" viewBox="0 0 48 48" fill="none" aria-hidden="true">
|
||||
<path d="M24 7c9.9 0 18 6.6 18 14.8S33.9 36.6 24 36.6c-2 0-3.9-.3-5.7-.8L8 40l3.2-7.6C8.1 29.6 6 25.9 6 21.8 6 13.6 14.1 7 24 7Z" fill="#23201D"/>
|
||||
<circle cx="16.5" cy="21.5" r="2.8" fill="#F6F5F1"/>
|
||||
<circle cx="24" cy="21.5" r="2.8" fill="#F6F5F1"/>
|
||||
<circle cx="31.5" cy="21.5" r="2.8" fill="#F6F5F1"/>
|
||||
</svg>
|
||||
<span class="beyond_tile_name">Mensajes</span>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
<!-- Empleados has no icon in the signed-off design, so it
|
||||
keeps its native one rather than an invented drawing. -->
|
||||
<t t-foreach="apps" t-as="app" t-key="app.id">
|
||||
<DropdownItem
|
||||
t-if="app.xmlid === 'hr.menu_hr_root'"
|
||||
class="{ 'o_app': true, 'beyond_tile': true, focus: menuService.getCurrentApp() === app }"
|
||||
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
||||
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
||||
>
|
||||
<img t-if="app.webIconData" class="beyond_tile_icon" t-att-src="app.webIconData" alt=""/>
|
||||
<span class="beyond_tile_name">Empleados</span>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
<t t-foreach="apps" t-as="app" t-key="app.id">
|
||||
<DropdownItem
|
||||
t-if="app.xmlid === 'spreadsheet_dashboard.spreadsheet_dashboard_menu_root'"
|
||||
class="{ 'o_app': true, 'beyond_tile': true, focus: menuService.getCurrentApp() === app }"
|
||||
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
||||
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
||||
>
|
||||
<svg width="42" height="42" viewBox="0 0 48 48" fill="none" aria-hidden="true">
|
||||
<rect x="6" y="27" width="9" height="15" rx="2" fill="#23201D" fill-opacity="0.45"/>
|
||||
<rect x="19" y="17" width="9" height="25" rx="2" fill="#23201D" fill-opacity="0.7"/>
|
||||
<rect x="32" y="7" width="9" height="35" rx="2" fill="#23201D"/>
|
||||
</svg>
|
||||
<span class="beyond_tile_name">Tableros</span>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
<!-- Fallback: anything installed that no rule above claims. -->
|
||||
<t t-foreach="apps" t-as="app" t-key="app.id">
|
||||
<DropdownItem
|
||||
t-if="!beyondPrimary.includes(app.xmlid) and !beyondSecondary.includes(app.xmlid)"
|
||||
class="{ 'o_app': true, 'beyond_tile': true, focus: menuService.getCurrentApp() === app }"
|
||||
onSelected="() => this.onNavBarDropdownItemSelection(app)"
|
||||
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
|
||||
>
|
||||
<img t-if="app.webIconData" class="beyond_tile_icon" t-att-src="app.webIconData" alt=""/>
|
||||
<span class="beyond_tile_name" t-esc="app.name"/>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user