
Search In
When using the _inherit and _name attributes together, Odoo creates a new model using the existing one as a base. The new model gets all the fields, methods and meta-information from its base.
For example you can take idea from b
Keys are used to uniquely identify records in a table. it is used to establish relation within a table.
Primary keys,Foreign keys, candidate keys and alternate keys are used in tables which identify rows.
All keys other than primary key are Alterna
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
Your user or web application may require that all animations are disabled, but the effect of revealing information or scrolling (or whichever animation type) may still be required. jQuery has a way to disable all animations from one access point but
Like classes and controllers, protocols itself can also be extended and can be used to produce new protocols.
Here we are creating a base Protocol with superset methods.
We can also call it original protocol. it is inherited from NSObject, like othe
The wordpress theme contain a file called "footer.php" and that file contain function "wp_footer()"
The footer.php file is a base file of theme which generally contain a footer menu, social media widget, copyright text, javascript files etc
The wp_
