-
Ricardo Gomes Rodrigues (rigr) authored
Currently, it is possible to resequence account moves which are hashed. This should not be the case. Therefore, we are adding the name of the move into the list of hashed fields. However, since we are changing the hashing algorithm by including a new field in its computation, we must add a versioning system to make sure we don't break the integrity (data inalterability) report. In practice, this means that prior to this commit, all hashed moves used the fields of v1, and moves after this commit will use v2 (which adds the name into the list of hashed fields). Thus, whenever we generate the integrity report, we will run the v1 algorithm, and if it a potential corrupted move is found, we will switch to v2 and check again. If it also fails, this means the hash is indeed corrupted. task-id 3102481 closes odoo/odoo#112320 Signed-off-by: William André (wan) <wan@odoo.com>
1dcd071b
Loading