title: come back to tree view when user click on save button in odoo 13.0
body: <p>I override the write function in my model for calling my function that is  manually set changing in DB, actually I delete this record from table in this function after that I want comeback to tree view automatically and I don't have the changed record anymore to return
  because of that I stuck in write function and it doesn't finished by the way without calling my function I still can't comeback to tree view with return action(I tried any form of return action it didn't work at all) :</p>
  <pre><code>def write(self, vals):
       self.changing_status(vals)
       action = {
      'name': _('Cash Control'),
      'view_mode': 'tree',
      'view_type': 'form',
      'res_model': 'wfwodoovitemsstatuscurrent',
      'view_id': self.env.ref('nmdi_workflow.list').id,
      'type': 'ir.actions.act_window',
      'target': 'current'
  }
  return action
  </code></pre>