-
- Downloads
[FIX] account: Allow user to change tax with many lines
The current code uses cached data to retrieve the tax_line which is usually near the end of lines (often the second to last line).
This only works if there are fewer lines than the limit, but otherwise the line is not found and a traceback appears.
In case there are 50 invoice_line_ids for example, there will be 52 line_ids (invoice_line_ids + 2 lines including one containing the tax),
the base limit of the list subview is 40, the tax_line will not be in the cached data.
The following fix automatically loads the last page to always access the tax line.
The last page is loaded only if the tax_line is not already in the cache
opw-2566580
closes odoo/odoo#75356
Signed-off-by:
Achraf <abz-odoo@users.noreply.github.com>
Please register or sign in to comment