The variable that was setting the has_hs_code is set in the array 'stock_move_table' which has a t-if on the state to check it's not done, so if the state is done, the variable is no set and hs_code never shown. So we've put the variable in the begining of the report. closes odoo/odoo#36902 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>