
Search In
One is likely to mistake Odoo’s technical models for directly fulfilling business needs. The models actually enable to add capabilities to business objects, by eliminating the need of building them by hand.
Odoo's email and messaging system, called
Hello Reader's! If you are new to WordPress and you have to create the menu for first time. You just have to do the steps below:-
Step1:- Open or Create a file functions.php in your theme folder and paste the code below:-
add_action( 'after_setup_t
If you want to make relational fields in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
name = fields.Char(string="Title", required=True)
description = fields.Text()
responsible_id = fields.Many2one('res.
If you want to make data model in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: →
session_ids = fields.One2many(
'openacademy.session', 'course_id', string="Sessions")
@api.multi
def copy(self, de
If you want to use transaction_fields in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
def name_get(self, cr, user, ids, context={}):
if not len(ids):
return []
res = []
for r in self.read(cr, user, ids, [’name
The action manager can be invoked explicitly from javascript code by creating a dictionary describing an action of the right type, and calling an action manager instance with it.
In below example I have written javascript to Include only parent level
On the server side, we can simply defined an ir.actions.client. In below code we will use .xml file.
<record id="action_home_page" model="ir.actions.client">
<field name="tag">petstore.homepage</field>
</record>
For menu
Javascript does not have built-in modules. As a result variables defined in different files are all mashed together and may conflict. This has given rise to various module patterns used to build clean namespaces and limit risks of naming conflict.
T
The initial demonstration module already provides a basic widget:
For example code look like below.
local.HomePage = instance.Widget.extend({
start: function() {
console.log("pet store home page loaded");
},
});
It extends Widget() a
Actions are used to trigger one or more actions to be performed on the server side, when a specific stage of a workflow is reached. To write this code in .xml file in openerp(odoo), use the Code given below.
<record id="company_normal_action_tree