
Search In
If you want to call custom create method if method is not defined then follow the following code in your .py file.
if values.get('acquirer_id'):
acquirer = self.pool['payment.acquirer'].browse(cr, uid, values.get('acquirer_id'), contex
If you want to set the expected payment data in Odoo follow the following code :
if vals.get('expected_pay_date') and self.invoice_id:
msg = _('New expected payment date: ') + vals['expected_pay_date'] + '.\n' + vals.get('internal_note'
PHP have a vast collection of array functions which makes the use and manipulation of arrays much easier. This article defines the difference between two important array functions array_merge and array_combine which sounds similar but used for differ
To record the audio, Android provide a class "MediaRecorder" , you just need to create its instance.
Step 1:-
In your xml, take two buttons to start and stop recording.
Step 2:-
Declare the needed variables
private MediaRecorder audio
Hi, this blog is to help you to know about 0/1 knapsack problem and how to solve it using Java.
Problem Definition
Suppose there is a thief who came to steal thing from someone's home. He has a knapsack(shoulder bag) with him
Here is a small example of custom search bar
1. Go to storyboard, take TextField place it at below navigation bar (we will type text here to find any string)
2. Set delegate of TextField
Come to ViewController class now
Create IBOutlet of T
My previous article Use of array_intersect() in PHP demonstrates about array_intersect() function which is used to compute the intersection of two or more arrays. array_intersect() returns an array with values of first array which are also present in
Hello Reader's ,
Hope you are doing good today.
Today in my blog, I am going to explain how you can show store on google map Locator using database record.
In this tutorial we are using database table for getting a lat long through google api us
What is Realm?
We all are aware of SQLite for internal storage in android but now we can use Realm as SQLite replacement.
Realm has become popular for being a database with its own C++ core. It’s not just an alternative for SQLite, but much ea
The Google Location Services API, part of Google Play services, is the preferred way to add location-awareness to an android app.
Follow the below steps to get current position of an android device.
1. To use the location manager make the Google pl
