The agreement ends a bitter row between the former couple over the custody of their six children. Source