Odoo Help


Get notebook current tab string and save it to my model

Shaumyadeep Chaudhuri
on 8/28/13, 8:15 AM 862 views

Hi, Is it possible to get the string for the current tab in a notebook and save it to my model? How can I do it if its possible



I think no, javascript should know but not python because it is the server side and notebook in the client side

Is it possible then to pass the value from js to python without writing a seperate web_module?

Shaumyadeep Chaudhuri
on 9/10/13, 6:06 AM

web_module is a bad name, because all the module can add javascript. But If you want that javascript send the current table to server side you must write a javascript to do a rpc call. Read the documentation on the web client

Suzanne Jean-Sébastien
on 9/10/13, 6:22 AM

I don't want to send the current table i just want to send a string containing the current tab string, i searched the web docs already but cannot understand how do i add JS than can send a string and python can receive it, and i can't find how do i add js to a module with forms without the qweb teplating engine. but thanks for your help

Shaumyadeep Chaudhuri
on 9/10/13, 6:27 AM

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/28/13, 8:15 AM
Seen: 862 times
Last updated: 3/16/15, 8:10 AM