Preview:
action_my_profile: function(event) {
          var self = this;
          event.stopPropagation();
          event.preventDefault();
          self._rpc({
                    model: 'ir.model.data',
                    method: 'xmlid_to_res_id',
                    kwargs: {xmlid: 'youre_form_id'},
                }).then(function (res_id) {
                      self.do_action({
                            name: _t("My Profile"),
                            type: 'ir.actions.act_window',
                            res_model: 'hr.employee',
                            res_id: self.employee_data.id,
                            view_mode: 'form',
                            view_type: 'form',
                            views: [[res_id, 'form']],
                            context: {'edit': true},
                            domain: [],
                            target: 'current'
                          },{on_reverse_breadcrumb: function(){ return self.reload();}})

                },
            },
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter