Skip to content

[FIX] l10n_es_aeat_mod130: Support multi-company environments#4756

Open
360groupes wants to merge 1 commit intoOCA:16.0from
360groupes:16.0-fix-mod130-multicompany
Open

[FIX] l10n_es_aeat_mod130: Support multi-company environments#4756
360groupes wants to merge 1 commit intoOCA:16.0from
360groupes:16.0-fix-mod130-multicompany

Conversation

@360groupes
Copy link

The module was not working correctly in multi-company environments. The _calc_ingresos_gastos_retenciones method only searched for accounting entries in self.company_id.id, ignoring the allowed_company_ids context.

This caused calculations to return 0.00 when users switched companies in the UI.

Changed the domain filter to use 'in' operator with allowed_company_ids from context, falling back to company_id for backward compatibility.

The module was not working correctly in multi-company environments.
The _calc_ingresos_gastos_retenciones method only searched for
accounting entries in self.company_id.id, ignoring the
allowed_company_ids context.

This caused calculations to return 0.00 when users switched companies
in the UI.

Changed the domain filter to use 'in' operator with
allowed_company_ids from context, falling back to company_id
for backward compatibility.
@pedrobaeza pedrobaeza added this to the 16.0 milestone Jan 29, 2026
@pedrobaeza
Copy link
Member

El modelo se calcula para una sola compañía, no para varias, por lo que no entiendo el parche.

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