Skip to content

Commit

Permalink
Update return of wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
Iziwas committed Sep 27, 2021
1 parent 60328e5 commit dc26f3d
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,7 @@ def add_book(self):

self.env['product.product'].create(book)

tree_view_id = self.env.ref('collection.collection_product_tree_view').ids
form_view_id = self.env.ref('collection.collection_product_form_view').ids
return {
'name': u"List of Books",
'view_mode': 'tree',
'views': [[tree_view_id, 'tree'], [form_view_id, 'form']],
'res_model': 'product.product',
'type': 'ir.actions.act_window',
'target': 'current',
}
return {'type': 'ir.actions.client', 'tag': 'reload'}


def _check_if_no_result(self):
Expand Down

0 comments on commit dc26f3d

Please sign in to comment.