Los estados vacíos de Clientes, Sucursales y Equipo toman la forma del diseño

Sustituyen la carita de Odoo por una tarjeta propia con su ilustración. El
texto de Equipo pasa a decir que el alta es desde la caja: el flujo cambió y
el que había —el celular en la página de registro— ya no es el que se usa.

Los iconos van como ARCHIVO estático y no como <svg> en línea porque `help`
es un `fields.Html` sanitizado: conserva la etiqueta <svg> y le vacía el
contenido, así que el icono saldría como un hueco transparente sin un solo
error en el log. Sobreviven `style` entero, `<img>` con src a un estático del
módulo, y nada más; un `src="data:..."` también se cae. Equipo no necesita
ningún archivo: su ilustración es toda geometría con divs.

Verificado en navegador contra beyond_dev, no solo escrito: las tres montan
con cero imágenes rotas.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jorem JuárezandClaude Opus 5 committed 2026-09-09 20:01:30 -06:00
1 parent a8b6a8fd61
commit c37d0ea100
6 files changed
+94 -9

No files matched your search

@@ -58,11 +58,39 @@
<field name="view_id" ref="view_equipo_list"/>
<field name="search_view_id" ref="view_equipo_search"/>
<field name="context">{'search_default_por_sucursal': 1}</field>
<!-- Estado vacío con marcado propio. Aquí no hace falta ningún
archivo de icono: la ilustración entera —círculos, punteados,
el «+» y el teléfono— es geometría con divs, que el sanitizador
de `help` deja pasar intacta. -->
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">Aún no hay personal registrado</p>
<p>El personal se registra desde su celular en la página de
registro de la sucursal, o aquí mismo con "Nuevo" (mismo
resultado por cualquier puerta).</p>
<div style="margin: 0 auto; box-sizing: border-box; width: 396px; color-scheme: light; background: #EEEBE3; border: 1px solid #DFD9CC; border-radius: 22px; padding: 46px 40px 42px; text-align: center;">
<div style="position: relative; width: 176px; height: 132px; margin: 0 auto 26px;">
<div style="position: absolute; left: 8px; top: 6px; box-sizing: border-box; width: 160px; height: 110px; border-radius: 18px; background: #FFFFFF; border: 1px solid #EFECE4; box-shadow: 0 6px 18px rgba(35,32,29,.07); display: flex; flex-direction: column; justify-content: center; gap: 13px; padding: 0 16px;">
<div style="display: flex; align-items: center; gap: 10px;">
<div style="flex: none; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid #E2DED5;"></div>
<div style="flex: 1; display: flex; flex-direction: column; gap: 6px;">
<div style="height: 8px; border-radius: 5px; background: #E5E1D8;"></div>
<div style="height: 7px; border-radius: 5px; background: #EDEAE2; width: 62%;"></div>
</div>
</div>
<div style="display: flex; align-items: center; gap: 10px;">
<div style="flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box; border: 1.5px dashed #C9C2B7;">
<div style="position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; border-radius: 1px; background: #C55A22; transform: translate(-50%,-50%);"></div>
<div style="position: absolute; left: 50%; top: 50%; width: 2px; height: 11px; border-radius: 1px; background: #C55A22; transform: translate(-50%,-50%);"></div>
</div>
<div style="flex: 1; display: flex; flex-direction: column; gap: 6px;">
<div style="height: 8px; border-radius: 5px; background: #F1EEE7;"></div>
<div style="height: 7px; border-radius: 5px; background: #F4F2EC; width: 48%;"></div>
</div>
</div>
</div>
<div style="position: absolute; right: 0; bottom: 0; box-sizing: border-box; width: 38px; height: 58px; border-radius: 11px; background: #FFFFFF; border: 1.5px solid #EAE6DD; box-shadow: 0 6px 18px rgba(35,32,29,.07); transform: rotate(7deg); display: flex; align-items: center; justify-content: center;">
<div style="width: 15px; height: 15px; border-radius: 4px; box-sizing: border-box; border: 1.8px solid #C55A22;"></div>
</div>
</div>
<div style="font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #23201D; line-height: 1.25;">Aún no hay personal registrado</div>
<div style="margin: 9px auto 0; max-width: 300px; font-size: 14.5px; font-weight: 600; color: #7A736A; line-height: 1.45;">Se registran desde la caja o aquí mismo con «Nuevo»: mismo resultado.</div>
</div>
</field>
</record>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M2 6.4 4.4 8.8 10 3.2" stroke="#C0BAAE" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>

After

Width:  |  Height:  |  Size: 218 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M4.2 9.3 6 5.5h12l1.8 3.8v9.2H4.2V9.3Z" stroke="#C55A22" stroke-width="1.7" stroke-linejoin="round"/><path d="M4.2 9.3h15.6" stroke="#C55A22" stroke-width="1.7"/><path d="M9.6 18.5v-5.2h4.8v5.2" stroke="#C55A22" stroke-width="1.7" stroke-linejoin="round"/></svg>

After

Width:  |  Height:  |  Size: 367 B

@@ -199,10 +199,42 @@
No se esconde con CSS: esta clave vacía `searchMenuTypes` y el
componente entero deja de renderizarse (beyond_buscador.js). -->
<field name="context">{'beyond_sin_menu_busqueda': True}</field>
<!-- Estado vacío con marcado propio. Los iconos van como archivo y
no como <svg> en línea: `help` es un `fields.Html` sanitizado y
le vacía el contenido al <svg> sin avisar. Ver el comentario
largo en beyond_customer/views/res_partner_views.xml. -->
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">Da de alta tu primera sucursal</p>
<p>Escribe su nombre en un renglón: el sistema crea su almacén,
punto de venta con caja, equipo y checador automáticamente.</p>
<div style="margin: 0 auto; box-sizing: border-box; width: 396px; color-scheme: light; background: #EEEBE3; border: 1px solid #DFD9CC; border-radius: 22px; padding: 46px 40px 42px; text-align: center;">
<div style="position: relative; width: 176px; height: 132px; margin: 0 auto 26px;">
<div style="position: absolute; left: 16px; top: 24px; width: 144px; height: 100px; border-radius: 18px; background: #DBD5C8;"></div>
<div style="position: absolute; left: 8px; top: 6px; box-sizing: border-box; width: 160px; height: 110px; border-radius: 18px; background: #FFFFFF; border: 1px solid #EFECE4; box-shadow: 0 6px 18px rgba(35,32,29,.07); display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: 0 16px;">
<div style="display: flex; align-items: center; gap: 10px;">
<div style="flex: none; box-sizing: border-box; width: 32px; height: 32px; border-radius: 10px; border: 1.5px dashed #C9C2B7; display: flex; align-items: center; justify-content: center;">
<img src="/beyond_branch/static/src/img/vacio_tienda.svg" width="18" height="18" alt="" style="display: block;"/>
</div>
<div style="flex: 1;">
<div style="height: 9px; border-radius: 5px; background: #E5E1D8;"></div>
</div>
</div>
<div style="display: flex; flex-direction: column; gap: 8px;">
<div style="display: flex; align-items: center; gap: 8px;">
<img src="/beyond_branch/static/src/img/vacio_palomita.svg" width="11" height="11" alt="" style="display: block; flex: none;"/>
<div style="height: 8px; border-radius: 5px; background: #EDEAE2; width: 76%;"></div>
</div>
<div style="display: flex; align-items: center; gap: 8px;">
<img src="/beyond_branch/static/src/img/vacio_palomita.svg" width="11" height="11" alt="" style="display: block; flex: none;"/>
<div style="height: 8px; border-radius: 5px; background: #EDEAE2; width: 58%;"></div>
</div>
<div style="display: flex; align-items: center; gap: 8px;">
<img src="/beyond_branch/static/src/img/vacio_palomita.svg" width="11" height="11" alt="" style="display: block; flex: none; opacity: .6;"/>
<div style="height: 8px; border-radius: 5px; background: #EDEAE2; width: 40%;"></div>
</div>
</div>
</div>
</div>
<div style="font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #23201D; line-height: 1.25;">Da de alta tu primera sucursal</div>
<div style="margin: 9px auto 0; max-width: 300px; font-size: 14.5px; font-weight: 600; color: #7A736A; line-height: 1.45;">Escribe su nombre en un renglón: el sistema crea su almacén, punto de venta, equipo y checador.</div>
</div>
</field>
</record>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M4.5 8.5h3.2l1.4-2.2h5.8l1.4 2.2h3.2v10H4.5v-10Z" stroke="#C55A22" stroke-width="1.7" stroke-linejoin="round"/><circle cx="12" cy="13.2" r="3.1" stroke="#C55A22" stroke-width="1.7"/></svg>

After

Width:  |  Height:  |  Size: 293 B

@@ -158,9 +158,31 @@
hay desplegable de Filtros, así que ni se puede conmutar ni yo
puedo apoyarme en uno. -->
<field name="domain">[('is_company', '=', False), ('user_ids', '=', False), ('employee_ids', '=', False), ('beyond_de_mi_plaza', '=', True)]</field>
<!-- Estado vacío con marcado propio en vez de la carita de Odoo.
El icono va como ARCHIVO y no como <svg> en línea porque `help`
es un `fields.Html` sanitizado: conserva la etiqueta <svg> pero
le vacía el contenido (<path>, <circle>), así que el icono
saldría como un hueco transparente y sin un solo error en el
log. Lo que sí sobrevive entero es `style`, y `<img>` con src
a un estático del módulo. Un `src="data:..."` también se cae. -->
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">Registra tu primer cliente</p>
<p>Con su foto: es el corazón del trato personalizado.</p>
<div style="margin: 0 auto; box-sizing: border-box; width: 396px; color-scheme: light; background: #EEEBE3; border: 1px solid #DFD9CC; border-radius: 22px; padding: 46px 40px 42px; text-align: center;">
<div style="position: relative; width: 176px; height: 132px; margin: 0 auto 26px;">
<div style="position: absolute; left: 16px; top: 24px; width: 144px; height: 100px; border-radius: 18px; background: #DBD5C8;"></div>
<div style="position: absolute; left: 8px; top: 6px; box-sizing: border-box; width: 160px; height: 110px; border-radius: 18px; background: #FFFFFF; border: 1px solid #EFECE4; box-shadow: 0 6px 18px rgba(35,32,29,.07); display: flex; align-items: center; gap: 14px; padding: 0 18px;">
<div style="flex: none; box-sizing: border-box; width: 52px; height: 52px; border-radius: 15px; border: 1.5px dashed #C9C2B7; display: flex; align-items: center; justify-content: center;">
<img src="/beyond_customer/static/src/img/vacio_camara.svg" width="22" height="22" alt="" style="display: block;"/>
</div>
<div style="flex: 1; display: flex; flex-direction: column; gap: 8px;">
<div style="height: 9px; border-radius: 5px; background: #E5E1D8;"></div>
<div style="height: 8px; border-radius: 5px; background: #EDEAE2; width: 78%;"></div>
<div style="height: 8px; border-radius: 5px; background: #EDEAE2; width: 55%;"></div>
</div>
</div>
</div>
<div style="font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #23201D; line-height: 1.25;">Registra tu primer cliente</div>
<div style="margin: 9px auto 0; max-width: 300px; font-size: 14.5px; font-weight: 600; color: #7A736A; line-height: 1.45;">Con su foto: es el corazón del trato personalizado.</div>
</div>
</field>
</record>