From a25bc3649a3081e43c9ea425bda661cfd4f4b242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Sun, 23 Aug 2026 21:19:16 -0600 Subject: [PATCH 1/6] =?UTF-8?q?Saca=20Manrope=20y=20el=20color=20de=20l?= =?UTF-8?q?=C3=ADnea=20a=20piezas=20compartidas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La pantalla de inicio de sesión se pinta antes de que exista sesión: solo recibe web.assets_frontend y no ve un solo asset del backend, donde hasta hoy vivían las seis @font-face de Manrope. En vez de copiarlas a un segundo archivo, se mudan a scss/beyond_fonts.scss junto con $beyond-font-family, y ese archivo se lista en los dos paquetes. El token de familia viaja con las @font-face que lo hacen resoluble, nunca en beyond_variables.scss, que también alimenta paquetes (POS) donde los woff2 no se sirven. El #DCD8CE de la regla decorativa del lanzador gradúa a $beyond-line: los bordes de los campos del login son la segunda pantalla que lo necesita, y esa es exactamente la regla escrita en beyond_variables.scss. El naranja #C55A22 NO gradúa aunque el error del login sea el mismo hex: mismo valor, significado distinto, y un token fusionaría "Panel General" con "algo salió mal". Sin cambio visual en ninguna pantalla existente. Co-Authored-By: Claude Opus 5 (1M context) --- addons/beyond_base/__manifest__.py | 1 + .../static/src/scss/beyond_fonts.scss | 73 +++++++++++++++++++ .../static/src/scss/beyond_variables.scss | 23 ++++-- .../static/src/webclient/beyond_launcher.scss | 71 +++--------------- 4 files changed, 103 insertions(+), 65 deletions(-) create mode 100644 addons/beyond_base/static/src/scss/beyond_fonts.scss diff --git a/addons/beyond_base/__manifest__.py b/addons/beyond_base/__manifest__.py index 4e661c6..5cd497d 100644 --- a/addons/beyond_base/__manifest__.py +++ b/addons/beyond_base/__manifest__.py @@ -36,6 +36,7 @@ vivirán en este módulo. ('prepend', 'beyond_base/static/src/scss/beyond_variables.scss'), ], 'web.assets_backend': [ + 'beyond_base/static/src/scss/beyond_fonts.scss', 'beyond_base/static/src/webclient/beyond_launcher.scss', 'beyond_base/static/src/webclient/beyond_launcher.js', 'beyond_base/static/src/webclient/beyond_launcher.xml', diff --git a/addons/beyond_base/static/src/scss/beyond_fonts.scss b/addons/beyond_base/static/src/scss/beyond_fonts.scss new file mode 100644 index 0000000..4477e35 --- /dev/null +++ b/addons/beyond_base/static/src/scss/beyond_fonts.scss @@ -0,0 +1,73 @@ +// ============================================================================= +// Manrope, self-hosted — the face of the Beyond identity (ADR-005). +// +// This block used to live in webclient/beyond_launcher.scss, where it was +// reachable only from web.assets_backend. The login screen (C-0xx) is a +// PRE-SESSION page: it renders through web.assets_frontend and never receives +// a single backend asset, so it could not resolve the family. Rather than +// copy six @font-face rules into a second file, they moved here and the file +// is listed in both bundles. +// +// 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 every +// weight the designs use resolves from one file per range. +// +// The kiosk page (beyond_attendance_qr/views/kiosco_templates.xml) still +// restates the two latin ranges inline: it is a standalone template +// that calls no bundle at all, so it cannot include this file. +// ============================================================================= + +// The family token lives with the @font-face rules that make it resolvable — +// never on its own in beyond_variables.scss, which is prepended to bundles +// (POS) where these files are not served and the promise would be empty. +$beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif; + +@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; +} diff --git a/addons/beyond_base/static/src/scss/beyond_variables.scss b/addons/beyond_base/static/src/scss/beyond_variables.scss index 36055f6..223c525 100644 --- a/addons/beyond_base/static/src/scss/beyond_variables.scss +++ b/addons/beyond_base/static/src/scss/beyond_variables.scss @@ -21,12 +21,22 @@ // of one block on one screen and means nothing outside it. It stays a // local variable in webclient/beyond_launcher.scss. Publishing it in this // bundle would push it into the backend and POS and invite its use as a -// semantic colour. +// semantic colour. The login v1 error text is that same #C55A22 and it +// STILL did not graduate: one hex, two unrelated meanings ("Panel General" +// and "something went wrong") is not one token. If a second screen ever +// needs an ERROR colour, that is what graduates, under its own name. +// · The rule colour graduated (login v1): #DCD8CE was the launcher's +// decorative rule under the title and is now also the login's field +// borders, so it left beyond_launcher.scss as $beyond-line. // -// 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. +// TYPOGRAPHY — the designs use Manrope. The @font-face rules and the +// $beyond-font-family token live in scss/beyond_fonts.scss, which is listed in +// web.assets_backend AND web.assets_frontend (the login screen renders before +// the session, from the frontend bundle only). They are deliberately NOT here: +// this file is prepended to web._assets_primary_variables, which also feeds +// bundles that do not serve the woff2 — the POS — and a family token there +// would promise a face that cannot resolve. Ask beyond_fonts.scss for the +// family; it ships the face that backs it. // ============================================================================= // Brand green. The launcher's "Venta" block and its hover/pressed states. @@ -40,6 +50,9 @@ $beyond-kiosco: #8C4A72; $beyond-kiosco-dark: #7C3E64; $beyond-kiosco-darker: #6B3556; +// Lines. The launcher's rule under the title and the login's field borders. +$beyond-line: #DCD8CE; + // Surfaces $beyond-surface: #F6F5F1; // warm page background $beyond-surface-hover: #ECEAE3; // hover on a surface-coloured control diff --git a/addons/beyond_base/static/src/webclient/beyond_launcher.scss b/addons/beyond_base/static/src/webclient/beyond_launcher.scss index a7f09d9..c1183ac 100644 --- a/addons/beyond_base/static/src/webclient/beyond_launcher.scss +++ b/addons/beyond_base/static/src/webclient/beyond_launcher.scss @@ -17,6 +17,12 @@ // token when a SECOND screen needs it — which is how the purple became // $beyond-kiosco once the kiosk page and the QR dialog started using it. The // blue, gold and grey are new in v3 and no second screen uses them yet. +// +// One colour left this file the other way (login v1): the #DCD8CE of the rule +// under the title is now also the login field borders, so it graduated to +// $beyond-line. The orange above stayed put even though the login's error text +// is the same hex — same value, unrelated meaning, and a shared token would +// fuse "Panel General" with "something went wrong". // ============================================================================= // "Panel General" @@ -39,65 +45,10 @@ $beyond-launcher-tableros: #55606E; $beyond-launcher-tableros-hover: #4A545F; $beyond-launcher-tableros-active: #3F4750; -// Decorative rule under the title -$beyond-launcher-rule: #DCD8CE; - -$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; -} +// Manrope and $beyond-font-family now live in scss/beyond_fonts.scss: the login +// screen needs the same face from web.assets_frontend, and one copy of six +// @font-face rules is enough. That file is listed before this one in +// web.assets_backend, so the variable below is already defined here. // ----------------------------------------------------------------------------- // Full-screen shell @@ -147,7 +98,7 @@ $beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif; width: 64px; height: 4px; border-radius: 2px; - background: $beyond-launcher-rule; + background: $beyond-line; } // The signature, at the foot From 789a50cd8a0e163b645f5dc6e3d38c5a0dbdcee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Sun, 23 Aug 2026 21:19:30 -0600 Subject: [PATCH 2/6] Optimiza el logo del login de 1.19 MB a 20.2 KB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El archivo que entregó el diseño era un JPEG de 2832x1504 y 1.19 MB para pintarse a 360 px de ancho, delante de la sesión y en tablets de sucursal con la red que haya. Inaceptable para el primer byte que ve el usuario. Es tipografía blanca sobre negro plano: la luminancia ES la máscara de cobertura. De ahí sale un PNG de 1440x765 con los glifos en blanco sobre transparencia y 16 niveles de alfa — de sobra para los bordes del tipo, y los filtros del PNG colapsan el archivo. 20 667 bytes, 98.3% menos, y sin fondo propio: si el panel deja de ser negro el logo sigue sirviendo. 1440 px cubre hasta 4x de densidad sobre los 360 px del diseño. Lo correcto sería el SVG: es un logotipo puro, pesaría unos 3 KB y sería nítido a cualquier tamaño. Queda pedido al diseño; este PNG no bloquea. Co-Authored-By: Claude Opus 5 (1M context) --- addons/beyond_base/static/img/logo_login.png | Bin 0 -> 20667 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 addons/beyond_base/static/img/logo_login.png diff --git a/addons/beyond_base/static/img/logo_login.png b/addons/beyond_base/static/img/logo_login.png new file mode 100644 index 0000000000000000000000000000000000000000..d47fe77b8bd6f521827355b671d0fc92f49a2ba8 GIT binary patch literal 20667 zcmeFZ=Uinkb5(jv@jQ1OvjM-U)Ss(~vKW}pO zDg@DEAP7!nVgPqW1sXje$UO4=S^et)LrbGeH$*MV3wpAH|3*|cs6?EBB}39^<`>LO zbPBLbT++PKsVFJa9LkZG{O9JZk;{*C@PceN(i7wk2?-VdiZ2`3#g2#XiGhJ3sHSvJ zlWzZCN71yYAW4|={v|U8_P<=3KJiKQ8~1@&68yCI45&{r{Q*_9V{ldNHBLy~v0?HS1VrycDWJ!F1`|7PRqZr5V|u|niO}0{O*es` zHRrq@9LKnRjUb)(-9EagB}`b^AjU{o-JRG8;CNTl$eIxLd#0V_gM0GaGyI*i=jPyu zsn;cm!k%G7ctOhfXKMRHNswIk8n*d&(~%!P#0WWGZmP?qr;bV>8Yt8R0SQ^vEbY+W zJ~fzn%KD%N;e*Lu(5JOp3eQW$3x_KjB|IA=ekCNEb3L7hQK=ZJsIpYs>C!?YBA2l+w|Qi6Zi62?KWGV;m2tx@sFj z5EQ_?=gWjCqr*z%)~|<)t2ul56zefm7$D(DA9yjbm{^gC) z=OUV|!DU{1L3@UMsQLsioBGRmrTvMWe23%&%PcKDf5gn++Gs)V7SfSDx6Yh3-rd&2 zCqzYK@!x+K!)eBQh??mYL8YV=kJcN}5xy;T*=Z*ikN$(lCJ@ttOb(R(Fgi@M;r{HZ zxDd6MN!}1OT~S5cQk^`QNZaxLNM)-cQ|m^B>+0SLzRPnIN}ltMK*-GZ{9FzX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iVe6NJUdx=-7Vnx zPrtdB8T@*^@blw-r)SS&IGrk=zP^#ee|)y1S=8LOJMRBJ_3-z%v^`Jc7uQ(}&DgnZ z%b#c3e2?=ky}x>qvHp2vHk;bM?f;&?-~Yd?Bf2F0Zsz>MFCyeDo_G8)Td2mR<0qoTwhYpkr?A?MyL47_D1?2+MGKj}8T+f5EX!y@Bc>lxy TGt16MgZ$~~>gTe~DWM4f_=)zk literal 0 HcmV?d00001 From 71e0c85b0a47d4813c7c60e2d31be16967334c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Sun, 23 Aug 2026 21:19:53 -0600 Subject: [PATCH 3/6] =?UTF-8?q?Integra=20la=20pantalla=20de=20inicio=20de?= =?UTF-8?q?=20sesi=C3=B3n=20v1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Traducción fiel del diseño aprobado, por herencia de web.login y web.login_layout. Cero core: el

que postea a /web/login sigue siendo el de Odoo, entero, con su action, su method, su csrf_token y su redirect; lo que cambia es el markup alrededor de los campos y la envoltura donde se pinta. Las dos plantillas llevan priority="99" para aplicarse SIEMPRE al final: auth_signup y auth_passkey también heredan web.login, y el orden tenía que ser una decisión y no una casualidad de ids. De ahí la dependencia explícita de auth_signup. Tres cosas del diseño que no se implementan, a propósito: - La validación en vivo. Todo mensaje es del servidor, después del POST; el

de Odoo conserva texto y condición y solo pierde la caja alert de Bootstrap para tomar los 14px/700 #C55A22 del diseño. - La pantalla "Bienvenido, X". Un login correcto es una redirección y el usuario cae en el Menú Principal (ADR-005). La maqueta la necesitaba porque no tenía a dónde ir. - El min(360px, 72%) del logo, escrito como width + max-width: Sass evalúa un min() pelado y se niega a comparar px con %. El ancho usado es idéntico. Tres cosas que el diseño no conocía, decididas aquí: - web.user_switch (nuevo en Odoo 19) se retira. Escondía el formulario tras un "Elige un usuario" con las últimas cuentas de ese navegador: en una terminal de turno compartido eso es la lista de nombres y caras de los compañeros, antes de la sesión. - El enlace de alta pública se retira. Al personal lo da de alta la administración (ADR-008). - El bloque de llaves de acceso (auth_passkey) se queda, revestido al lenguaje del diseño. No estaba en la maqueta, pero es una vía real de entrada y quitarlo dejaría fuera a quien ya registró una. Toque >= 48px sin mover el diseño: el ojo se pinta 44x44 y lleva un área táctil invisible de 48x48 centrada. Foco solo en :focus-visible, con el anillo repuesto a mano porque `all: unset` se lleva el del navegador. Todo el SCSS va anidado bajo .beyond_login / .beyond_login_body: el paquete frontend lo carga cada página pública, incluido el portal del empleado, y ni una regla puede escaparse. El kiosco QR queda fuera de alcance por construcción, es una plantilla que no llama a ningún paquete. Co-Authored-By: Claude Opus 5 (1M context) --- addons/beyond_base/__manifest__.py | 19 +- .../static/src/login/beyond_login.js | 44 ++ .../static/src/login/beyond_login.scss | 500 ++++++++++++++++++ addons/beyond_base/views/login_templates.xml | 188 +++++++ 4 files changed, 747 insertions(+), 4 deletions(-) create mode 100644 addons/beyond_base/static/src/login/beyond_login.js create mode 100644 addons/beyond_base/static/src/login/beyond_login.scss create mode 100644 addons/beyond_base/views/login_templates.xml diff --git a/addons/beyond_base/__manifest__.py b/addons/beyond_base/__manifest__.py index 5cd497d..01278b1 100644 --- a/addons/beyond_base/__manifest__.py +++ b/addons/beyond_base/__manifest__.py @@ -9,24 +9,28 @@ Cimientos del sistema Beyond (BRIEF §4 y §6): 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: 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). + por Collina (paleta y tipografía Manrope autoalojada), el lanzador de + aplicaciones a pantalla completa (ADR-005) y la pantalla de inicio de + sesión, que hereda web.login sin tocar ni el formulario ni la ruta. 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 -vivirán en este módulo. +vivirán en este módulo. Depende de auth_signup (LGPL, el core lo +auto-instala igual) para fijar el orden de herencia sobre web.login: el +enlace de "¿Olvidaste tu contraseña?" es el suyo, con su condición real. """, 'version': '19.0.0.1.0', 'category': 'Beyond', 'author': 'Collina Systems', 'license': 'Other proprietary', - 'depends': ['base', 'web', 'hr', 'hr_attendance'], + 'depends': ['base', 'web', 'auth_signup', 'hr', 'hr_attendance'], 'data': [ 'security/beyond_security.xml', 'data/branding.xml', 'data/bootstrap_admin.xml', 'data/menu_cleanup.xml', 'data/idioma.xml', + 'views/login_templates.xml', ], 'demo': [ 'demo/demo_empleados.xml', @@ -41,6 +45,13 @@ vivirán en este módulo. 'beyond_base/static/src/webclient/beyond_launcher.js', 'beyond_base/static/src/webclient/beyond_launcher.xml', ], + # The login screen renders before there is a session: it gets the + # frontend bundle and nothing else, so the face travels with it. + 'web.assets_frontend': [ + 'beyond_base/static/src/scss/beyond_fonts.scss', + 'beyond_base/static/src/login/beyond_login.scss', + 'beyond_base/static/src/login/beyond_login.js', + ], }, 'installable': True, 'application': False, diff --git a/addons/beyond_base/static/src/login/beyond_login.js b/addons/beyond_base/static/src/login/beyond_login.js new file mode 100644 index 0000000..d3754d1 --- /dev/null +++ b/addons/beyond_base/static/src/login/beyond_login.js @@ -0,0 +1,44 @@ +/** + * Beyond — login v1: the eye that shows the password. + * + * Core ships this behaviour (web/static/src/public/show_password.js) but it is + * bound to a Bootstrap `.input-group` wrapping a `.o_show_password` button with + * a Font Awesome icon, and it says nothing to a screen reader. The login screen + * uses the design's own pill and its own SVG, so the toggle is rewritten here — + * eight lines and the ARIA that core leaves out. + * + * Deliberately a plain script and not an Interaction: this runs on the page + * that precedes the session, where the less machinery involved in reaching the + * password field, the better. It touches nothing but the input's `type`. + * + * Not touched: the form, its action, its method or the csrf_token. + */ +(function () { + "use strict"; + + // Spanish, like every string a user reads (CLAUDE.md). + const LABEL_SHOW = "Mostrar contraseña"; + const LABEL_HIDE = "Ocultar contraseña"; + + function setUpPasswordToggle() { + const eye = document.querySelector(".beyond_login .beyond_login_eye"); + const password = document.querySelector(".beyond_login #password"); + if (!eye || !password) { + return; + } + eye.addEventListener("click", function () { + const wasVisible = password.type === "text"; + password.type = wasVisible ? "password" : "text"; + eye.setAttribute("aria-pressed", String(!wasVisible)); + eye.setAttribute("aria-label", wasVisible ? LABEL_SHOW : LABEL_HIDE); + // Back to typing where the user left off, not on the button. + password.focus(); + }); + } + + if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", setUpPasswordToggle); + } else { + setUpPasswordToggle(); + } +})(); diff --git a/addons/beyond_base/static/src/login/beyond_login.scss b/addons/beyond_base/static/src/login/beyond_login.scss new file mode 100644 index 0000000..d785afd --- /dev/null +++ b/addons/beyond_base/static/src/login/beyond_login.scss @@ -0,0 +1,500 @@ +// ============================================================================= +// Beyond — login v1 +// +// Faithful translation of the signed-off "Iniciar sesión" (login_v1.html). +// Every colour, radius, size, gap, duration and font weight below is copied +// from that file, unrounded; the rules that have no counterpart there are +// marked ENGINEERING and say what they protect against — the design only +// covers the nominal case, and this one sits on top of Odoo's real login form. +// +// SCOPE — everything is nested under .beyond_login / .beyond_login_body. This +// file rides web.assets_frontend, which every public page loads (the employee +// portal of beyond_attendance_qr among them), so not one rule may escape the +// login screen. The QR kiosk is a standalone template that calls no +// bundle at all and is out of reach by construction. +// +// PALETTE — the surfaces and the ink are the identity's own tokens; the design +// reuses them exactly. The black is NOT: the design paints the controls +// #191613 instead of the brand green, deliberately, so the pre-session screen +// reads as the product's cover rather than as another green ERP form. Per the +// rule written in scss/beyond_variables.scss ("a colour graduates to a token +// when a SECOND screen needs it") that black, the field white, the placeholder +// grey and the eye's hover stay local variables here. So does the error +// orange, even though it is byte-for-byte the launcher's "Panel General": +// same hex, unrelated meaning. +// ============================================================================= + +// The control black of the login and its hover/pressed states. +$beyond-login-ink: #191613; +$beyond-login-ink-hover: #33302B; +$beyond-login-ink-active: #000000; + +// The brand panel behind the logo — flat black, not the ink above. +$beyond-login-brand-bg: #000000; + +// Fields +$beyond-login-field-bg: #FFFFFF; +$beyond-login-placeholder: #B3ADA3; +$beyond-login-eye-hover: #F0EEE8; + +// The focus ring the design draws around a field in focus. +$beyond-login-ring: rgba(25, 22, 19, 0.10); + +// Error text. Same hex as $beyond-launcher-panel and unrelated to it. +$beyond-login-error: #C55A22; + +// ----------------------------------------------------------------------------- +// Page +// +// ENGINEERING — the class replaces Odoo's `bg-100` on rather than +// joining it (see views/login_templates.xml): the utility paints the body with +// !important and there is no point in an override war on a page we own whole. +// ----------------------------------------------------------------------------- +.beyond_login_body { + margin: 0; + padding: 0; + background: $beyond-surface; + color: $beyond-ink; + font-family: $beyond-font-family; + -webkit-font-smoothing: antialiased; + overflow: hidden; // the design is 100vh with no scroll +} + +.beyond_login { + height: 100vh; + display: flex; + background: $beyond-surface; + color: $beyond-ink; + overflow: hidden; + + // --------------------------------------------------------------------- + // Left: the brand panel + // --------------------------------------------------------------------- + .beyond_login_brand { + flex: 1 1 46%; + min-width: 0; + background: $beyond-login-brand-bg; + display: flex; + align-items: center; + justify-content: center; + padding: 56px; + } + + .beyond_login_logo { + display: block; + // The design says `width: min(360px, 72%)`. Written as a pair because + // Sass evaluates a bare min() itself and refuses to compare px with %; + // the used width is identical. + width: 72%; + max-width: 360px; + height: auto; + } + + // --------------------------------------------------------------------- + // Right: the form + // --------------------------------------------------------------------- + .beyond_login_panel { + flex: 1 1 54%; + min-width: 0; + display: flex; + justify-content: center; + padding: 40px; + overflow-y: auto; + } + + .beyond_login_stack { + box-sizing: border-box; + width: 100%; + max-width: 440px; + margin: auto; + display: flex; + flex-direction: column; + gap: 26px; + } + + // ENGINEERING — web.login ships two empty `oe_structure` drop zones around + // the form. Empty flex children still eat a 26px gap each, so they are + // hidden while empty and left alone the moment anything is dropped in. + .oe_structure:empty { + display: none; + } + + .beyond_login_title { + font-size: 34px; + font-weight: 800; + letter-spacing: -0.03em; + color: $beyond-ink; + } + + // The form is a column on the same 26px rhythm as the stack around it, so + // title / user / password / CTA / error / signature read as one list. + .beyond_login_form { + display: flex; + flex-direction: column; + gap: 26px; + } + + // ENGINEERING — the database picker is core's, shown only when the server + // serves more than one database. It keeps its Bootstrap look (a developer + // sees it, an employee never does); all it needs is to stop fighting the + // column's own rhythm with a utility margin. + .beyond_login_form > .mb-3 { + margin-bottom: 0 !important; + } + + // --------------------------------------------------------------------- + // Fields + // --------------------------------------------------------------------- + .beyond_login_field { + display: flex; + flex-direction: column; + gap: 8px; + } + + .beyond_login_field_head { + display: flex; + align-items: baseline; + justify-content: space-between; + gap: 12px; + } + + .beyond_login_label { + margin: 0; // ENGINEERING — Bootstrap's reboot puts a margin on

', + respuesta.text, re.S) + self.assertTrue(error and error.group(1).strip(), + "el hueco del error está vacío") + + def test_credenciales_buenas_redirigen(self): + """No hay pantalla de «Bienvenido»: Odoo redirige y el usuario cae en + el Menú Principal.""" + respuesta = self._entrar(self.LOGIN, self.CLAVE) + self.assertIn(respuesta.status_code, (302, 303), + "una autenticación correcta sale del login redirigiendo") + self.assertNotIn('Bienvenido,', respuesta.text) From f93fe340214f3f4384c35db1d1e56c6dd9c78714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Sun, 23 Aug 2026 21:23:22 -0600 Subject: [PATCH 5/6] =?UTF-8?q?Cierra=20el=20alta=20p=C3=BAblica=20por=20d?= =?UTF-8?q?atos,=20no=20por=20un=20clic=20en=20Ajustes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Retirar el enlace de la pantalla de inicio de sesión no cerró nada: la ruta /web/signup seguía respondiendo a cualquiera que tecleara la URL. auth_signup se auto-instala y sus datos ponen invitation_scope en 'b2c' ("Free sign up"), así que la base llegaba con un alta de cuenta sin invitación abierta contra el sistema que lleva la caja. A Beyond se entra dado de alta por la administración (ADR-008). El candado es el valor 'b2b' en auth_signup.invitation_scope. Con él el core se defiende solo, sin tocar ni la ruta ni el controlador: /web/signup sin token devuelve 404 y _signup_create_user levanta SignupError si alguien postea sin invitación. Va por datos del módulo y no por Ajustes para que sea reproducible: se reafirma en cada actualización — que en producción corre en cada arranque —, así una base restaurada, clonada o recién creada llega cerrada sola. Envuelto en ejecutar_en_arranque como manda la regla 5 (ADR-011), aunque escribir un ir.config_parameter sea de lo más inocuo que hay: la regla no tiene excepciones porque las excepciones son las que tumban producción. El alta CON invitación queda intacta y hay prueba de ello: es la vía por la que el aprovisionador manda el correo de bienvenida. Co-Authored-By: Claude Opus 5 (1M context) --- addons/beyond_base/__manifest__.py | 1 + addons/beyond_base/data/signup.xml | 8 +++ addons/beyond_base/models/__init__.py | 1 + addons/beyond_base/models/res_users.py | 51 +++++++++++++++++ addons/beyond_base/tests/__init__.py | 1 + addons/beyond_base/tests/test_signup.py | 74 +++++++++++++++++++++++++ 6 files changed, 136 insertions(+) create mode 100644 addons/beyond_base/data/signup.xml create mode 100644 addons/beyond_base/models/res_users.py create mode 100644 addons/beyond_base/tests/test_signup.py diff --git a/addons/beyond_base/__manifest__.py b/addons/beyond_base/__manifest__.py index 01278b1..cadae3e 100644 --- a/addons/beyond_base/__manifest__.py +++ b/addons/beyond_base/__manifest__.py @@ -30,6 +30,7 @@ enlace de "¿Olvidaste tu contraseña?" es el suyo, con su condición real. 'data/bootstrap_admin.xml', 'data/menu_cleanup.xml', 'data/idioma.xml', + 'data/signup.xml', 'views/login_templates.xml', ], 'demo': [ diff --git a/addons/beyond_base/data/signup.xml b/addons/beyond_base/data/signup.xml new file mode 100644 index 0000000..815b0cb --- /dev/null +++ b/addons/beyond_base/data/signup.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/addons/beyond_base/models/__init__.py b/addons/beyond_base/models/__init__.py index 4f55328..d349d00 100644 --- a/addons/beyond_base/models/__init__.py +++ b/addons/beyond_base/models/__init__.py @@ -1,2 +1,3 @@ # Part of Beyond. Collina Systems proprietary module. from . import res_lang +from . import res_users diff --git a/addons/beyond_base/models/res_users.py b/addons/beyond_base/models/res_users.py new file mode 100644 index 0000000..9c37e08 --- /dev/null +++ b/addons/beyond_base/models/res_users.py @@ -0,0 +1,51 @@ +# Part of Beyond. Collina Systems proprietary module. +from odoo import api, models + +from odoo.addons.beyond_base.tools.arranque import ejecutar_en_arranque + +# auth_signup se instala solo (auto_install) y llega con la puerta abierta: sus +# datos ponen auth_signup.invitation_scope en 'b2c' — "Free sign up" —, que deja +# /web/signup accesible a cualquiera que teclee la URL. En un ERP de personal de +# sucursal eso es un alta de cuenta sin invitación contra el sistema que lleva +# la caja. A Beyond se entra dado de alta por la administración (ADR-008). +# +# Con 'b2b' Odoo cierra las dos puertas por su cuenta: la ruta /web/signup sin +# token devuelve 404, y _signup_create_user levanta SignupError si alguien +# postea sin invitación. No se toca ni la ruta ni el controlador; se le da al +# core el valor con el que ya sabe defenderse. +# +# El alta CON invitación sigue funcionando, y tiene que seguir: es la vía por la +# que el aprovisionador manda el correo de bienvenida al dar de alta a alguien. +ALTA_SOLO_POR_INVITACION = 'b2b' + +PARAMETRO_ALTA = 'auth_signup.invitation_scope' + + +class ResUsers(models.Model): + _inherit = 'res.users' + + @api.model + def _beyond_arranque_alta_publica(self): + """Entrada desde la carga de módulos (data/signup.xml). Va envuelta: una + tarea de arranque degrada, nunca tumba el servidor (ADR-011).""" + return ejecutar_en_arranque( + self.env, 'Alta pública cerrada', self._beyond_cerrar_alta_publica) + + @api.model + def _beyond_cerrar_alta_publica(self): + """Deja el alta pública cerrada en cualquier despliegue. + + Corre en cada actualización del módulo, que en producción corre en cada + arranque: el candado no depende de que alguien se acuerde de tocar el + interruptor en Ajustes, y una base restaurada o clonada llega cerrada + sola. Idempotente: si ya está cerrada no escribe nada. + + Que se reafirme en cada actualización es lo que se quiere. Si el día de + mañana Beyond decide abrir el alta pública, la decisión se toma aquí y + queda en el repositorio, no en un clic que la siguiente actualización + deshace sin que nadie se entere. + """ + parametros = self.env['ir.config_parameter'].sudo() + if parametros.get_param(PARAMETRO_ALTA) != ALTA_SOLO_POR_INVITACION: + parametros.set_param(PARAMETRO_ALTA, ALTA_SOLO_POR_INVITACION) + return True diff --git a/addons/beyond_base/tests/__init__.py b/addons/beyond_base/tests/__init__.py index 8dd26dc..17328eb 100644 --- a/addons/beyond_base/tests/__init__.py +++ b/addons/beyond_base/tests/__init__.py @@ -2,3 +2,4 @@ from . import test_idioma from . import test_login from . import test_menu_cleanup from . import test_security_groups +from . import test_signup diff --git a/addons/beyond_base/tests/test_signup.py b/addons/beyond_base/tests/test_signup.py new file mode 100644 index 0000000..69e4dea --- /dev/null +++ b/addons/beyond_base/tests/test_signup.py @@ -0,0 +1,74 @@ +# Part of Beyond. Collina Systems proprietary module. +from odoo.tests import HttpCase, tagged + +from odoo.addons.beyond_base.models.res_users import ( + ALTA_SOLO_POR_INVITACION, PARAMETRO_ALTA) + + +@tagged('post_install', '-at_install') +class TestBeyondAltaPublica(HttpCase): + """El alta pública está cerrada, y lo está por datos del módulo. + + Quitar el enlace de la pantalla de inicio de sesión no cierra nada: la + ruta /web/signup seguía respondiendo a cualquiera que teclease la URL, + porque auth_signup se instala con invitation_scope en 'b2c'. El candado + vive en data/signup.xml y se reafirma en cada actualización, para que no + dependa de un clic en Ajustes ni se pierda al clonar la base. + """ + + def _parametro(self): + return self.env['ir.config_parameter'].sudo().get_param(PARAMETRO_ALTA) + + def test_el_candado_quedo_puesto(self): + self.assertEqual(self._parametro(), ALTA_SOLO_POR_INVITACION) + + def test_el_candado_se_repone_solo(self): + """Alguien lo abre desde Ajustes; la siguiente actualización lo cierra.""" + self.env['ir.config_parameter'].sudo().set_param(PARAMETRO_ALTA, 'b2c') + self.env['res.users']._beyond_cerrar_alta_publica() + self.assertEqual(self._parametro(), ALTA_SOLO_POR_INVITACION) + + def test_es_idempotente(self): + """Cerrado y vuelto a cerrar, no escribe ni cambia nada.""" + self.env['res.users']._beyond_cerrar_alta_publica() + self.env['res.users']._beyond_cerrar_alta_publica() + self.assertEqual(self._parametro(), ALTA_SOLO_POR_INVITACION) + + # -- La ruta --------------------------------------------------------------- + + def test_signup_sin_invitacion_no_existe(self): + """Con el candado puesto, Odoo ni siquiera sirve el formulario.""" + respuesta = self.url_open('/web/signup', allow_redirects=False) + self.assertEqual(respuesta.status_code, 404, + "/web/signup sigue abierta a cualquiera con la URL") + + def test_no_se_puede_registrar_sin_invitacion(self): + """Y un POST directo, saltándose el formulario, tampoco crea cuenta.""" + correo = 'intruso@beyond.example' + pagina = self.url_open('/web/login') + csrf = pagina.text.split('name="csrf_token" value="')[1].split('"')[0] + respuesta = self.url_open('/web/signup', allow_redirects=False, data={ + 'login': correo, + 'name': 'Intruso', + 'password': 'una-contrasena-cualquiera', + 'confirm_password': 'una-contrasena-cualquiera', + 'csrf_token': csrf, + }) + self.assertEqual(respuesta.status_code, 404) + self.assertFalse( + self.env['res.users'].sudo().with_context(active_test=False).search( + [('login', '=', correo)]), + "se creó una cuenta sin invitación") + + def test_el_alta_con_invitacion_sigue_viva(self): + """El candado cierra la puerta de la calle, no la del aprovisionador: + el alta por invitación (ADR-008) tiene que seguir funcionando.""" + usuario = self.env['res.users'].create({ + 'name': 'Invitada Beyond', + 'login': 'invitada@beyond.example', + }) + usuario.partner_id.signup_prepare() + token = usuario.partner_id.sudo()._generate_signup_token() + respuesta = self.url_open('/web/signup?token=%s' % token) + self.assertEqual(respuesta.status_code, 200, + "una invitación válida dejó de servir el formulario") From a9ee7bc9e647b1ee45445a5405c2244f5c7622b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Sun, 23 Aug 2026 21:23:46 -0600 Subject: [PATCH 6/6] =?UTF-8?q?A=C3=B1ade=20la=20regla=207:=20el=20entorno?= =?UTF-8?q?=20del=20desarrollador=20no=20se=20toca=20sin=20permiso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sale de un caso real (23-ago-2026). Al construir la pantalla de inicio de sesión faltaban .env y odoo.conf, y la contraseña del rol de Postgres se había perdido con ellos. Para poder verificar el encargo se crearon los dos archivos y se reseteó la contraseña del rol — decisiones que eran del dueño del entorno, no de quien pasaba por ahí, y que además dejaron credenciales escritas en texto plano en el reporte. La regla no prohíbe operar: obliga a pedirlo o a hacerlo en un stack desechable, y a reportar todo cambio autorizado junto con su reversa, que es la parte que de verdad se olvida. Co-Authored-By: Claude Opus 5 (1M context) --- CLAUDE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CLAUDE.md b/CLAUDE.md index 39f5a39..9d1f13a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -24,6 +24,7 @@ Sistema de gestión multisucursal para Beyond (red de sucursales en Puebla, Méx 4. **Español** en toda cadena visible al usuario. Código, nombres de campos, modelos y comentarios técnicos en inglés. 5. **Nada que corra en la carga de módulos puede impedir el arranque** (ADR-011). Toda tarea de ``, `init()` o hook va envuelta en `ejecutar_en_arranque` (`beyond_base/tools/arranque.py`): si falla, se registra y el sistema levanta. Los datos de módulo **no** escriben sobre modelos con guardias de estado (`pos.config`, `account.tax`, `pos.payment.method`): eso va en una función que detecta la condición y difiere. Una caja de POS abierta ya tumbó producción una vez. 6. **Aislamiento por sucursal es sagrado:** cualquier modelo operativo nuevo lleva `branch_id` y su `ir.rule`. Todo cambio de permisos lleva test automatizado (brief, sección 4). +7. **No modificar el entorno del desarrollador** (credenciales, bases, configuración, servicios) **sin autorización explícita en el encargo** (23-ago-2026). Si falta acceso, preguntar u operar en stack desechable. Todo cambio de entorno autorizado se reporta con su reversa. ## Convenciones