
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
When using _inherit but leaving out _name, the new model replaces the existing one, essentially extending it in-place. This is useful to add new fields or methods to existing models (created in other modules), or to customize or reconf
Hello Friends,
Changing the default text of search bar:
Using storyboard:
The search bar has a placeholder property, you may give it any text value as per your requirement.
Using code:
ObjectofSearchBar.placeholder = @"Your Value";
Changing the
In search function returns directly a RecordSet.
In below code i have explain search function.
def LinkedIn_check_similar_partner(self, cr, uid, LinkedIn_datas, context=None):
res = []
res_partner = self.pool.get('res.partner')
In Odoo module is contained in its own directory within the server/bin/addons
directory in the server installation.
profile_module name, in which we put an empty __init__.py file (as every directory Python imports must contain .py file like in below
The __openerp__.py file has containing list of dependencies,conditioning startup order,data files to load at module install,always load groups first and load access rights after groups.
For example code below.
{'name' : 'SHIVA',
'version' : '1.0',
If you want to make security system in OpenERP(Odoo) follow the below mentioned code and paste it in your ir.model.access.csv file:
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_idea_idea","id
If you want to make wizard execution
in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard views_xml
file:
<record id="action_idea_cleanup_wizard" model="ir.actions.act_window">
<field name="name">Cleanup</fi
You can use PHP to take backup of a table in MySQL. For this, you need to write the following code:
$dbhost = 'localhost';
$dbuser = 'dbusername';
$dbpass = 'dbpassword';
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
if(! $conn
Hello guys
Here, I assign custom created roles to user from custom portlet in liferay 6.2.
I create three regular roles i.e vendor, client and standard user from liferay portal.
Now, I assign the role to particular user from liferay portlet using
