Odoo Help

Welcome!

This community 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.

0

How to manipulate openerp template not qweb template thru javascript/jquery?

By
Abegail Sanchez
on 8/18/14, 9:01 PM 778 views

Example:

Output of the generated xml an html

<div id="notebook_page_32" class="oe_notebook_page  ui-tabs-panel ui-widget-content ui-corner-bottom" aria-labelledby="ui-id-2" role="tabpanel" style="display: block;" aria-expanded="true" aria-hidden="false"><div class="oe_form_field oe_form_field_one2many">

Is this possible to manipulate here:

custom_jquery.js

(function($) {
    $("div#notebook_page_32").toggleClass("openerp oe_posline");
})(jQuery);

But doesnt add any behavior..

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/18/14, 9:01 PM
Seen: 778 times
Last updated: 3/16/15, 8:10 AM