compute average only for kpi type num. Correct utc_midnight
Merge branch '7.0-mis_builder' of https://github.com/acsone/account-financial-reporting into 7.0-mis_builder