
Search In
If you display content to your users, you should also be able to erase it. This is done via the destroy() method.
greeting.destroy();
First thing you see on destruction of a widget is calling destroy() on all its children. Then comes removal of its
In object-oriented languages, javascript does not build in classes although it provides equivalent (if lower-level mechanisms.
For simplicity and developer-friendliness Odoo web provides a class system based on John Resig's Simple JavaScript Inher
If you want to use this._super() to call the original method in OpenERP/Odoo When overriding a method using inheritance below is the example.
For example code look like below.
say_hello: function () {
setTimeout(function () {
this._sup
The context is like a "magic" argument that the web client will always give to the server when calling a method.
The context is a dictionary containing multiple keys. One of the most important key is the language of the user, used by the server to tr
Odoo web provides a helper for easy and clear questioning of models query() which functions as a shortcut for the usual combination of search() and read(). As shown in example code given below.
model.query(['name', 'login', 'user_email', 'signature
Firstly let us know What is the user defined function in php ?
This function declaration starts with the word "function" and user defined function name is not case-sensitive.
User defined function starts with a letter not a number.
Use of user d
What is use of join() function.?
The join() function returns a string from the elements of an array.
The join() function alias of implode() function.
Syntax of strtolower() function:
join(" ",array)
You can see below example of join() function in
The mkdir() function is basically use for making a directory.
Syntax of mkdir() function
mkdir("dir_name");
You can see below example of mkdir() function.
<?php
// here call mkdir()
mkdir("testdocs");
?>
In the above given example we
Metadata Management:-
There are a few guidelines of creating meta data. We must see that tags that we create should be inside the if it is a webpage.
Also we need to provide meta data in pairs of name and values.
Meta data is of two types, one whic
If you want to create handler , here is the code snippet that can help you out.
Step :-1 Create the object for Handler.
private Handler myHandler = new Handler();
Step :-2 Create the Runnable Thread.
private Runnable myRunnableThread = new Run
