[FIX] Account journal dashboard bar graph Fix _get_bar_graph_select_query to correctly compute the residual amount when calculating the values for the graph of a bill or invoice journal.
[FIX] Account journal dashboard bar graph
Fix _get_bar_graph_select_query to correctly compute the residual
amount when calculating the values for the graph of a bill or invoice
journal.

closes odoo/odoo#41592

X-original-commit: 73d28be404901378dc06e756868e5a1ef6cf7b0b
Signed-off-by: Laurent Smet <1328e3a5817ff065354bd0f7f4073cbb6dcc7eca@users.noreply.github.com>

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo