
Search In
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
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);
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
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
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
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)
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
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
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",
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
