Improved the Pedido view, making it possible to update the object, instead of creating a new one in the view