[IMP] l10n_es_partner_ccpae: compact seals on every document #31
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
i18n
invalid
no-bot
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CriptoMart/addons-cm!31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "18.0-imp-l10n_es_partner_ccpae-compact"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs biogrup/ecocentral#396 (y su PR biogrup/ecocentral#401)
Ecocentral quiere los sellos ecológicos del CCPAE en todos los documentos (facturas, comandas, albaranes), no solo en los albaranes, y sin que la cabecera crezca, para ahorrar papel.
Cambios
_ccpae_show_seals()responde True en cualquier documento en cuanto la compañía tiene Nº de operador. Sigue recibiendo el registro, para quien quiera restringirlo por documento heredando el método.ES-ECO-019-CT): el campo puede llevar el nombre entre paréntesis, que no cabe y ya lo dice el sello de al lado. Las líneas no se parten.Ojo: ecodaqui
Ecodaqui también usa este módulo. Si su compañía tiene Nº de operador, también verá los sellos en todos sus documentos.
Pruebas
Tests del módulo en una BD nueva: OK.
pre-commit run --all-files: OK. Renderizado con los datos reales de Biogrup en prod3 (CT-002793-EC, RSPAC 40.10889/CAT): dos líneas, sin tocar la dirección de la compañía.🤖 Generated with Claude Code
The CCPAE seals and operator data were printed on the delivery slips only, and the block was taller than the company address, so it pushed the whole header down. Ecocentral wants them on every document (invoices, orders, slips) without the header growing, to save paper. Before this commit, _ccpae_show_seals() answered True for pickings only, and the block stacked the data in up to four lines next to a 22 mm seal. After this commit, it answers True on every document as soon as the company has an operator number; the record is still passed for whoever wants to narrow it per document. The block is two lines of 7pt text (operator and RSPAC; control body) beside the EU logo at its minimum size and a 12 mm CCPAE seal. Only the code of the control body is printed: the field may hold the name too ("ES-ECO-019-CT (Consell Catala de la Produccio Agraria Ecologica - CCPAE)"), which does not fit and is what the CCPAE seal next to it already says. The lines do not wrap, so they stay two. Refs biogrup/ecocentral#396 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.