Hi
I can't get the model object from controller
class WebExtraControllers(http.Controller):
@http.route('/foo', type='http', auth="public", website=True)
def foo(self, **post):
# ..........
obj = self.env['res.partner'].function()
But the result is
AttributeError: 'WebExtraControllers' object has no attribute 'env'
What can I do ?