This is the wrong approach. Don't override do_partial().
The values of weight and weight_net are probably wrong because their stored value is not recomputed after some data change. Please fix the 'store' argument in the function fields! What is the change in the data that requires those fields to be recomputed?
This is the wrong approach. Don't override do_partial().
The values of weight and weight_net are probably wrong because their stored value is not recomputed after some data change. Please fix the 'store' argument in the function fields! What is the change in the data that requires those fields to be recomputed?