Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error en el calculo de retenciones (account_withholdin) Odoo 16 #508

Open
Leandro090685 opened this issue Jul 30, 2024 · 0 comments
Open

Comments

@Leandro090685
Copy link

Estimados,
A la hora de realizar el calculo de retenciones en pagos relacionas a las facturas de tipo "M",
El codigo rompe dentro del metodo _get_valid_liquidity_accounts (account.payment)
La linea que da error es la siquiente:
res |= rep_lines.mapped('account_id')
TypeError: unsupported operand type(s) for |=: 'tuple' and 'account.account'
Esto se debe a que res (la variable donde se almacena el super de _get_valid_liquidity_accounts) es una tupla de account.account, mientras que rep_lines es otro tipo de dato (account.account). Esto no funcionara bajo ninguna condicion.
La solucion posible seria remplazar:
res |= rep_lines.mapped('account_id')
por:
res += tuple([v for v in rep_lines.mapped('account_id')])
Me interesa saber si debo hacer un merge request aplicando el fix o lo realizan ustedes.
Saludos cordiales!!

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

No branches or pull requests

1 participant