[IMP]hr_material:convert module from old API to  new API.