If anyone is interested on how i solved my problem. Instead of using group by, i added a Boolean field,then in my one2many field "productions" i added a domain where i take only records with boolean value equal to true
'production': fields.one2many('productions','of_num','Productions',readonly=True,domain=[('repeat','=',True)]),