'Return an action to open the document ``self``. This method is meant
to be overridden in addons that want to give specific view ids for
example.'

@api.multi
def get_formview_action(self):

    view_id = self.get_formview_id()
    return {'type': 'ir.actions.act_window', 'res_model': self._name, 'view_type': 'form', 'view_mode': 'form', 'views': [(view_id, 'form')], 'target': 'current', 'res_id': self.id, 'context': dict(self._context)}
