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 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 {
...
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....
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...
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...
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...
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:
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...
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...
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
...
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...
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...
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 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...
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
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:-
...
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...
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’ 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:
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 ...
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 ...
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&...
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...
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;
...
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 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#
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...
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...
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...
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  ...
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...
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...
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...
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...
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...
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 ...
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...
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 ...
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...
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 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...
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 ...
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...
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...
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...
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...
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...
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:-
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
...