Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
7679 มุมมอง

Below code from the website module in models dir contain website.py file

def _render(self, cr, uid, ids, template, values=None, context=None): # TODO: remove this. (just kept for backward api compatibility for saas-3) return self.pool['ir.ui.view'].render(cr, uid, template, values=values, context=context)

def render(self, cr, uid, ids, template, values=None, status_code=None, context=None):
    # TODO: remove this. (just kept for backward api compatibility for saas-3)
    return request.render(template, values, uid=uid)

Explain above two method and how it works in website module ..?? and website_mail module use this in controller and return the

return request.website.render("website_mail.designer_index", values) AND return request.website._render('website_mail.email_designer_snippets')

what is the difference for in website_mail module

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 15
5335
1
มี.ค. 15
4646
3
ก.ค. 25
8637
1
พ.ค. 25
930
0
ม.ค. 24
1669