Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have the following Snippet code :
<template id="snippet_colact_id" name="ColAct snippet">
<section class="oe_snippet_body snippet_colact_id">
<div t-set="teachers" t-value="res_company.menusHarvey()"/>
<t t-foreach="teachers" t-as="teacher">
<p><t t-esc="teacher.id"/> <t t-esc="teacher.name"/></p>
return "hello harvey"
id_colacts = openerp.pooler.get_pool(http.request.cr.dbname).get('a_colact_collaborativeaction').search(http.request.cr, http.request.uid, )
colacts = openerp.pooler.get_pool(http.request.cr.dbname).get('a_colact_collaborativeaction').browse(http.request.cr, http.request.uid, id_colacts)
When I drag my snippet onto the page the values are correctly extracted from the DB, but when I later change the values in Odoo and then refersh the page the values don't change. It looks like the values are retrieved when the Snippet is dropped onto the page and that they never change after?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/10/16, 5:11 AM|
|Seen: 768 times|
|Last updated: 2/10/16, 7:52 PM|