Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to adding a class to their root elements in OpenERP/Odoo ?

If you want to adding a class to their root elements in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard .js file: local.HomePage = instance.Widget.extend({ className: 'oe_petstore_homepage', ... }); local.Greetings

How to use instantiate classes using the new operator in OpenERP/Odoo ?

If you want to instantiate classes using the new operator in OpenERP(Odoo) follow the below mentioned code and paste it in your .js file. var MyClass = instance.web.Class.extend({ say_hello: function() { console.log("hello", this.name);

How to detect screenshot taken by user in iPhone.

With the help of the notification "UIApplicationUserDidTakeScreenshotNotification" in our application we can detect the screenshot taken from iPhone. Use the following line of code to generate notification for same. [[NSNotificationCenter defaultCen

How to combine two NSSet objects?

Hello all, If you want to combine to NSSet objects, use the below code- NSSet *affordableMakes = [NSSet setWithObjects:@"Ford", @"Honda", @"Nissan", @"Toyota", nil]; NSSet *fancyMakes = [NSSet setWithObjects:@"Fe

How to fetch maximum and minimum value of a column in laravel

In this example, I have a user's table & I want to get the user who have maximum and minimum amount. For that I used the following code $price = DB::table('users')->max('amount'); $price = DB::table('users')->min('amount'); And by using

How to use new fonts in iPhone SDK

Following are the steps to add new fonts which not available in iOS sdk. 1) Download the font file and add that file in resource folder 2) go to App- info.plist and add key "Fonts provided by application" and in value add the name in that font. 3)

How to manage counterpart in Point of sale in OpenERP(Odoo)?

Below is a code of Python script for counterpart. Below python code is written in .py file : insert_data('counter_part', { 'name': _("Trade Receivables"), #order.name, 'account_id': order_account, 'cr

How to send email using Intent in android

This tutorial is about sending the Email from your android code using implicit intents. Following is the code to send an Email- Intent emailIntent = new Intent(Intent.ACTION_SENDTO , Uri.fromParts("mailto", "ta

How to create joomla user password using php

To generate password in joomla first need to import JUserHelper which defines in libraries/joomla/user/helper.php. jimport( 'joomla.user.helper' ); $salt = JUserHelper::genRandomPassword(32); $crypt = JUserHelper::getCryptedPassword("mypassword",

How to use Cursor in Odoo ?

When we use cursor first we have to move on Record Recordset and environment share the same cursor.And you can access cursor using like below code. def my_fun(self): cursor = self._cr # or self.env.cr Note- if you need to use the tcurso

1 41 408
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: