
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
How to return the writeoff move.line which is to be reconciled in Odoo?
If you want to return the writeoff move.line which is to be reconciled follow the following code .
return writeoff_move.line_ids.filtered(lambda r: r.account_id == self[0].account_id)
@api.multi
def remove_move_reconci...
Ajax with PHP
Ajax codes are used to communicate between web pages and the server without loading the page.
lets demonstrate a search through ajax call with php
<html>
<head>
<style>
span {
...
How to watermark image usimg Qimage component in cakephp
For watermarking image using Qimage component in cakephp first we have to download Qimage plugin after downloading Qimage plugin we have to put it into App/Controller/Component .
Then we have to do all this in our controller....
How to make simulate animation in android
In the below example I have created simulate animation in android. Here I have added first TextView and ImageView in activity_main.xml layout ,In MainActivity I have used Runnable Thread. On this animation image will be rotate like watch. You can...
How to get right debit / credit in accounting module?
If you want to get right debit / credit in accounting module follow the following code .
target_currency = target_currency or company_currency
line_currency = line.currency_id or company_currency
amount_currency_st...
How to apply ir_rules by filtering out in Odoo?
If you want to apply ir_rules by filtering out follow the following code .
rows = self.env.cr.dictfetchall()
ids = [x['account_id'] for x in rows]
allowed_ids = set(self.env['account.account'].browse(ids).ids)
row...
How to put the invoice link and partner_id on the account_move ?
If you want to put the invoice link and partner_id on the account_move follow the following code :
invoice_id = fields.Many2one('account.invoice', oldname="invoice")
partner_id = fields.Many2one('res.partner', string='Partner', index=T...
INTERSECT Clause
INTERSECT Clause:
It works similar like union clause as it is used to combine two SELECT statements, but it returns tuples only from first SELECT statement which are common to tuples in the second SELECT statement.
Syntax:
S...
Sort php array by particular column
Hello friends,
Most of time we need to sort php array as ascending order or descending order but some case we need to sort array by particular column.
For Example:
Given Array:
$inventory = array(
array("type"=>&q...
How to check amounts in the partial reconcile table aren't signed or not ?
If you want to check amounts in the partial reconcile table aren't signed or not then follow the following code .
amount = abs(line.debit - line.credit)
amount_residual_currency = abs(line.amount_currency) or 0.0
...
How to change the label of a button on click event
Sometimes we need to change the label of a button on click event. Suppose you have button label as "Start" and you want to change that to "Stop" upon clicking start button.
Example: In the below example I've created a f...
How to remember username and password in cakephp using cookies
As we seen in login page if we click or check the checkbox of “Remember Me” then our login id will be remembered by the browser . This is done by using cookies .
our login form contain email field and password alo...
How to trace SQL query or SP on a page
HI Guys,
Some times we want to know that what SQL operation is running on a particular page or a event, then we have to debug our code base and we get the result, but it's time taking process to debug code line by line and as well as some ...
Beta Testing Mistakes
Beta testing includes sending the item to beta test locales outside the testing environment for real world introduction. Numerous people have come over beta testing in real life situations/circumstances – it could have been anythi...
How to override magento blocks
In this blog tutorial, i will explain how to override magento blocks using an XML- based configuration file. Config.xml is module configuration file in which we will override magento block.
As magento best practices, we should not change any cor...
Beta Test Management & Components for Beta Success.
Beta Test Management
There is a wide arrangement of activities your beta testers would be more than willing to bring an interest for with the target of upgrading your item.
The most typical activities are:-
...
Override Magento Controllers
In this blog post, i will explain how to override magento controllers.
As per magento best practices, we should not change any core files.
So, what we will do is, create a new module called My_Pant and then we will perform our task to overrid...
How to make Runnable Thread in android
In the below code I have created Runnable Thread program in android. Here first I have added TextView in activity_main.xml layout. In MainActivity I have used handler class then I have created a new Runnable interface , And I have also ...
Random Testing Or Monkey Testing
‘Random Testing’ is also called a ‘Monkey Testing’. Random testing is a kind of black box testing. We mainly focused in the functional testing on it. Generally random testing is executed when there is not sufficient time p...
Getting object values from json data
Getting object values from Json:
If you have a data in Json format and you need to retrieve the object values from that day, it can be easily done using Java.
Lets see an example,
If you are using maven add the following ...
Bug debugging in PHP
We do many wrong things while writing the program.
It rarely work on the first time.
PHP generate the error after finding.
We can send the error message to other place.
They can also be sent with other program output also.
Set the ...
Pass Element ID that Triggers `onclick` Event to the Event Handling Function
When we apply onclick event to an element, sometimes we need to pass ID of that element to the event handling function. We can do this by passing id to function as this.id or we can pass the element itself.
Example: In the below example I&...
How to Create excel files in php
Applications that are written in php most of the times need to export data for some purposes. In this tutorial, we will learn "How to export that data in Excel CSV fomat?" CSV is known as the EXCEL spreadsheet that have the data in a gr...
Getting current url in jQuery
Sometimes we need to identify which is the current URL of JSP page to perform some functionality. We can do this very easily by adding the below line in you on load function:
$(function(){
var url = window.location.href;
...
How to make ListView animation in android
In the below example I have created ListView animation in android. Here, first I have created ListView and Button in activity_main.xml layout and also added animation layout with in ListView. Then in Second step I have created list_anim layout wi...
Regular expression
Regular expression is basically a sequence of character.
They are used for pattern matching.
We can use these to match the string inside a string and can also replace the string by another.
PHP have two kind of regular expressi...
Var vs Dynamic Keywords in C#.
Var vs Dynamic Keywords in C#
1) Introduction of these keywords
var was introduced in C# 3.0.
dynamic was introduced in C# 4.0.
2) Variable initialization
When a variable is declared as var type then the variable i...
How to get path of function being used in PHP
Hello Reader's! if you want to get the name of function and method being called, Then by using PHP you can do this as explain below:-
Lets's see the example as below here we are using the info provided by a php exception, it's a...
PHP error after updating my php version to 5.4.0-3
Hello I'm get a strange PHP error after updating my php version to 5.4.0-3.
I have this array:
Array
(
[host] => 127.0.0.1
[port] => 11211
)
When I try to access it like this I get strange warnings
print $me...
How to get IP address of remote machine in PHP?
Hello Reader's if you want to make the tracking system of your website, then the best way is to get the records of the IP address from user. Getting the IP of remote of PC can done on various ways. PHP let you do this by using  ...
Creating object in Json format using java
Json object:
You easily write your object in json format with java . Json format is used because it becomes easy to exchange information in this form. It is easy to understand and easy to write.
Lets see an example,
If yo...
Magento Models Overriding
In this tutorial, i will explain how to override magento models using an XML- based configuration file. Models play an important role as they connect our application to database & implement most of the business logic.
we should not change an...
How to Make Forgot Password in Codeigniter
Many times the user forget their password which they opt at the time of registration, and the developer who is new in Codeigniter framework struggles to create this module. So, in this tutorial, I will guide you to make the forgot password module...
How to create components and use in cakephp
Hello friends,
Cakephp provides a utility packages of logic that are shared between controllers.You can also create your own components. If you find yourself wanting to copy and paste things between controllers, you should consider creating yo...
Storage Classes in C
The storage class in C are the one which defines the scope or life time of the variable and functions
Four Different storage classes of C are :
Auto
Register
Static
Extern
Auto Storage Class
Auto storage c...
How to integrate share on twitter button on website
Hello Reader's if you are developing product shopping based web portal in which you want to integrate the twitter tweet button, then this blog is very helpful to you.
To integrate the twitter tweet button you have to follow some step ...
How to make facebook share button on website?
Hello Reader's if you are developing the Ecommerce based website in which you want to integrate the facebook sharing option, then this blog is very helpful to you.
So lets start with the html doc.
To get Facebook sharing first you...
How to remove markers from Google Maps API?
Remove markers from Google MAPS API v3:
I was facing issues while removing all the markers from the Google map API. I know how to remove markers in Google Maps API v2 by :
map.clearOverlays();
Now the question is how to remove markers ...
How to make only digits validation for textbox using Jquery
Hello Reader's! if you are making the html form in which some textbox you only want as taking the digits only. Then in this blog you can learn how to make this digit type validation. Since now most of the website are providing the frontend ty...
How to replace localhost by project name from URL
Hello Reader's if you are working on single project and want to rename localhost to any other word then this blog is very helful to you.
So let's start with the following steps
Step 1 : Open httpd.conf file you can f...
Static and Dynamic binding in java
Static Binding:
It determines the the type of object at early stage during the compilation itself, i.e. it tells that the object belongs to which class during the compile time of the program.
There is no ambiguity in deciding the type...
How to apply the domain of the user's selection in OpenERP?
In OpenERP first we create the user's in user form. Then the user clicks the selection's icon in the web client, compose a default action for the model in the user's selection and Return the action that contains all of this and ...
PIM Desktop -Data Import
Hello
Todays blog post explains the data import process in Informatica PIM desktop and the various stages that follow.
Firstly, it is important to understand what exactly Product Information Management (PIM) is and why is it usef...
How to manage the point of sale payment method in Odoo?
If you want to manage the point of sale payment method then follow the following code in your .py file.
import time
import pos_box_entries
from openerp import netsvc
from openerp.osv import osv, fields
from openerp.tools.tr...
Error handling php
It is basically the process of catching the error that occurred in the program and then taking an appropriate action.
It is very simple to handle the error in php.
While writing the program we should check all the possible error condi...
How to update multiple row in single mysql query
Hello friends,
Most of time we need to update multiple row at a time or in single mysql query, So most of developer use iterate the update query and execute many time. This is not good practice. We should use syntax given as below.
For Exam...
How to return models and ids of the user's in OpenERP?
In OpenERP first we create user's in user's form. Then the access of user's models res_users and pass the ids of the user's. After passing ids of the user's then user's selection will active and Return a tuple.
Use this...
How to call custom create method if method is not defined in Odoo?
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')...
Beta Testing Process and Plan
Beta Testing Process:-
In this section, we will concentrate on the Beta testing process step by step as specified below:-
1.) Beta Testing process
2.) Beta Test plan
1.) Beta Testing Process
...