Missing ID in pre_validate call
pre_validate
is called with only the values of the modified fields but for saved record, we may need to have other values that were not modified. Those values will be read from the database (as there are not modified) but this is not possible because the call does not provide the id.
The problem can be reproduced by editing a line of advance payment terms (module sale_advance_payment
) when closing the popup (and not modify the formula).