If you want to make wizard views in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard views_xml file:
<record id="action_idea_cleanup_wizard" model="ir.actions.act_window">
<field name="name">Cleanup</f...
Here I have created Animated waiting bar. It can be used to display page or when we have app open then it will shown status of work being complete.Progressbar class provide method to work on progress bar like setProgress(),setMessage,setProgress...
If you want to make security system in OpenERP(Odoo) follow the below mentioned code and paste it in your ir.model.access.csv file:
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_idea_id...
To make workflow transitions in OpenERP/Odoo ?
If you want to make workflow transitions in OpenERP(Odoo) follow the below mentioned code and paste it in your workflow_xml file:
<record id="trans_idea_draft_confirmed" model="workflow.trans...
Hello,
I am making an app (iOS + phone gap) and using a camera plugin. When i open the camera preview window is not showing but click noise is coming of Button.?cordova.plugins.camerapreview?
Please help Guys.
Thanks
What is wordwrap() Function in php ?
wordwrap() Function wrap a string into incipient lines when it reaches a concrete length.
So,basicaly use of wordwrap() wraps a string into new lines. wordwrap() include space also.
You can take re...
The __openerp__.py file has containing list of dependencies,conditioning startup order,data files to load at module install,always load groups first and load access rights after groups.
For example code below.
{'name' : 'SHIVA',
'version'...
With the help of SVG you can create the clock, by using both the Date object and the Math objects, in addition to a timer to manage the clock hands.
The JavaScript manage the hands as a derivative of other applications that also implement analo...
In most of the android application we have to reuse certain set of layouts. Every time writing same set of code(xml) slows down the user interface performance. To achieve the feature of re-usabilty in our application we have tags include and merg...
With given width and height of a page element, you need to find the radius and its center point of the largest circle that fits within that page element.
Find the smaller circle of the width and height; divide this by 2 to find the radius:
...
Here is the example for making a search box with a matched case which shows the searched text with the highlighted matches available. You have to paste your paragraph text in the text-area and enter the searching keyword in input box given below ...
The __init__.py file is the Python module descriptor, because an OpenERP
module is also a regular Python module.
1- Import all files & directories containing python code
2-import idea, wizard, report
The __openerp__.py is the OpenERP mo...
The Math.pow() function calculates the power of x to y, x ^ y. Matrix exponentiation is supported for square matrices x, and positive integer exponents y. It returns the base to the exponent power, that is, base exponent. It Gets a number raised ...
In Odoo module is contained in its own directory within the server/bin/addons
directory in the server installation.
profile_module name, in which we put an empty __init__.py file (as every directory Python imports must contain .py file like in ...
This Method calculates the exponent of the value. Returns enumber, where enumber is the argument, and e is Euler's constant, the base of the natural logarithms. For matrices, the function is evaluated element wise.
Syntax:-
Math.exp(numbe...
This is an html tag which creates popup dialog box on a web page.It represents interactive component like window.
Following is an example of Html dialog box:
<div>
<dialog id="myFirstDialog" style="width:50%;background-color:#F4FF...
There are four ways to install a plugin in CakePHP->
Plugin install through Composer
Manually plugin install
Plugin installed As Git Submodule
By Git Cloning
1- Manually
To install a plugin manually in CakePHP, you just have to m...
How to set/unset layout in CakePHP ?
CakePHP provides by default layout in (app/View/Layouts/default.ctp) file, so we need different layouts for different pages as per our requirement.
Change the default layout in all web pages
var $layo...
Why we use trim() Function in php ?
The trim() function mainly use for removes the spaces from the beginning and the end of the string.
trim() function will divest and control characters such as :
" " an ordinary space.
"\t" a t...
How to make a Grid in Asp.Net MVC
In this Blog we will see, how to make a Grid using WebGrid in Asp .Net MVC.
Step 1: Create a MVC application.
Step 2: Now make a Model say Student which will hold the data to be displayed in the Grid.
...
To return the number of rows in a query,we use COUNT. It counts the numbers of records.
the syntax of SQL COUNT statement.
SELECT COUNT (expression)
FROM tables
WHERE conditions;
SQL SELECT COUNT(column_name)
SELECT COUNT(...
Keys are used to uniquely identify records in a table. it is used to establish relation within a table.
Primary keys,Foreign keys, candidate keys and alternate keys are used in tables which identify rows.
All keys other than primary key are ...
The box model is a box that wraps the HTML element. According to the box model concept, element of every is a rectangular box and may have width, height, padding, borders, and margins. There are few new properties in CSS, to better understand.
...
To update a a field in the database in cakephp we uses an array,
the task is done as,
$this->request->id = $id;
$data=array();
$data['User']['id'] = $this->request->id;
$data['User']['fname'] = $filename;
$this...
Uploading a file in your application can be used to upload an image or documents.
With the help of the cakephp html we can create a form with the input field of type file which allows to browse and select the file from your systems.
lets cr...
how to make alert messages in bootstrap.
Bootstrap prvoides an predefined class .alert for creating alert messages which can be customized according to the requirement.
Alerts are created with the .alert class, followed by one of the four co...
CSS image sprite is a single image like a image-sheet with all
the images needed for your website.
Image sprites is having all the
images needed at one place in a
single image to it makes the browser
work easy while the browser try to
...
Can you tell me why this isn't working with comparing numbers?? All assistance is truly & greatly appreciated.
function init(){
var a = document.getElementById("a").value;
var b = document.getElementById("b").value;
var com...
This is an implementation of Circular Doubly Linked List in C Programming Language.
#include stdio.h
#include stdlib.h
struct node
{
int root, *next, *prev;
struct node n;
}
n*...
Mapping a domain to an IP in goDaddy
Go To My accounts in Godaddy and select manage domains.
Select the domain where you need to map the ip i,e. domain.com
Click on manage and then click on DNS zone file option
See the @ in hosts and cli...
Firstly we will know what is the use of "ksort" in php
"ksort" is used to sort the array by key and this is useful for associative arrays.
You can see below example for "ksort".
<?php
//suppose we want sort employee age from ...
Mobile Testing: Testing is the core features of the mobile like Call, message, notification, audio features etc.
Mobile application testing is a process for its functionality, usability and consistency by which application software developed fo...
If you want to use name_get method in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file:
def name_get(self, cr, user, ids, context={}):
if not len(ids):
return []
res = []
for r in self.read(cr, user, ids, [n...
Proper uses of img tag
You can make use of IMG in case you are looking forward to enable people to print your page and the image has to be present there by default.
For images that have important meanings, you can go for IMG wi...
How to bind DropDown using model in Asp.Net MVC
For Binding the Dropdown using Model, we have to follow the following steps:-
Step 1: First create a model as follows:-
Example:
Public Class DropdownBind
{
public List<SelectListI...
If you want to make print a report in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
def _get_invoice_id(self, uid, datas):
...
return {ids: [...]}
...
actions: [_get_invoice_id],
result: {type:print,...
Hello Reader's
If you want to make your form reusable and set the action dynamic via ajax, Then you can make the ajax call like in the example below:-
<form id = 'idForm'>
...
</form>
and the script will go like this...
Hello,
I am sharing an example of html with the use of mediaquery.
Here in the given example below in which i have used 3 separate files,namely
1:Html (a file with .html extension)
2:External css style sheet (a file with .css extensio...
If you want to use transaction_fields in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
def name_get(self, cr, user, ids, context={}):
if not len(ids):
return []
res = []
for r in self.read(cr, user, i...
Hello friends , To create UIAlertView in swift ->
UIAleartView is deprecated in iOS 9,
so you need to use UIAlertController instead .
let alertController = UIAlertController(title: test alert, message: this is a test alert, preferredS...
In this blog, we have created an example of a very simple and responsive jQuery popup box. Popup box is used frequently in the webpages for various purpose (Notification message, Alert message etc. ). If you need a simple and ele...
We will have to remove .py file, rename the class and its attributes to something like
below code.
from osv import osv, fields
class travel_hostel(osv.osv):
_name = travel.hostel
_inherit = res.partner
_columns = {
rooms_id: fields.one2...
To modify the URL without reloading,a pushState method has come in HTML5 which is quite same as window.location but does not refresh or reloads the page.
This method will first check if the browser supports HTML5,then the state object containi...
In profile module we have to create a profile, we only have to create a new directory in server/addons and we should call this folder.
profile_module name, in which we put an empty __init__.py file (as every directory Python imports must contai...
Composer is nothing but a tool which is useful for dependencies management. Composer supports only 5.3.2+ version of PHP. Now a days most of the frameworks are using PHP composer. This idea comes from node's npm and bundler from ruby. You should ...
using the '%' will make the modular opera, Function of % is return the remainder of the two numbers:-
Lets see the example below:-
<script>
var x = 100; //var 1
var y = 30; //var2
var z = x % y; // z will be the remainder
a...
If you want to get access right in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file:
class test_partner_firstname(common.TransactionCase):
def setUp(self):
super(test_partner_firstname, self).setUp()
self.u...
When we are using cursor we should use current environment cursor:
like below code.
self.env.cr
except if we need to use threads,we use like below code.
Environment.manage():
env = Environment(cr, uid, context)
Note- Environment.m...
Here I have created graphic app. In below example I have used android.graphics.Canvas. The android.graphics.Canvas provides method to draw oval,rectangle,text,picture etc.And The android.graphics.paint holds the information of color and style. B...