Skip to content

Conversation

@rov-adhoc
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 2, 2026 11:46
@roboadhoc
Copy link

Pull request status dashboard

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Este PR corrige un problema agregando el parámetro aggregator="sum" a varios campos monetarios en el reporte de facturas (account.invoice.report). Esto permite que estos campos se agreguen correctamente cuando se utilizan en vistas agrupadas, pivotes o gráficos.

Cambios clave:

  • Se añade aggregator="sum" a 5 campos monetarios: price_subtotal, price_total, price_average, total_cc y price_subtotal_currency
  • Se reformatea price_subtotal_currency en múltiples líneas para mantener consistencia de estilo

currency_field="current_currency_id",
string="Average Price (CC)",
help="Average Price in the company's currency where it is set",
aggregator="sum",
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El campo price_average representa un precio promedio, no una suma de valores. Usar aggregator="sum" en un campo de precio promedio es conceptualmente incorrecto y podría dar resultados engañosos en vistas agrupadas o pivotes. Para campos de precio promedio, el agregador debería ser "avg" (average) o no especificarse si el cálculo del promedio se hace de otra manera.

Suggested change
aggregator="sum",
aggregator="avg",

Copilot uses AI. Check for mistakes.
@rov-adhoc rov-adhoc closed this Jan 12, 2026
@fw-bot-adhoc fw-bot-adhoc deleted the 19.0-h-107565-rov branch January 19, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants