Hey. I have made a custom module and by using that i have a custom view for portal user and i am doing that using controllers. I have what i want but that record is read only for him. How can i give write access to him? Kindly help. Thanks in advance
Right now i am trying the following line of code
@http.route('/my_attend_detail',type='http',auth='public',website=True)
def attend_rights(self,attend_detail=None):
attend_detail = request.env ['op.attendance.line'].browse()
try:
attend_detail.check_access_rights('write')
attend_detail.check_access_rule('write')
except AccessError:
return request.website.render("website.403")
return request.render('attendance_website.attend_detail_temp',{'my_attend':attend_detail})
can you drop your template code here