-
Notifications
You must be signed in to change notification settings - Fork 111
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
Comments
Presenta el mismo problema al realizar el calculo de retenciones en Odoo V16. During handling of the above exception, another exception occurred: Traceback (most recent call last): The above server error caused the following client error: |
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!!
The text was updated successfully, but these errors were encountered: