
Search In
Hello Guys,
Today we will learn how to convert the local time period into UTC format :
We will create a function with offset and time as parameter.Below is the code:
function
convertToUTC($DateTimeZone,$offset){
$DateTimeZone='2015-10-28 03:1
If you want to make Search views in OpenERP(Odoo) follow the below mentioned code and paste it in your .xml file: -
<="" field="">
<record model="ir.ui.view" id="course_search_view">
<field name="name">course.search
We can create controller and make command using artisan.The syntax for writing command for controller is:
Syntax for writing Controller:
php artisan controller:make ControllerName
Example for writing Controller:
php artisan controller:make User
When using the _inherit and _name attributes together, Odoo creates a new model using the existing one as a base. The new model gets all the fields, methods and meta-information from its base.
For example you can take idea from b
what is array search ?
Array search returns the corresponding key if search is successful and Searches the array for a given value.
You can take reference form below example.
<?php
//firstly create a array
$employeName=array("1"=>"Jorden
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 an array lis
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_idea","id
The action manager can be invoked explicitly from javascript code by creating a dictionary describing an action of the right type, and calling an action manager instance with it.
In below example I have written javascript to Include only parent level
why we use array_values() function in php ?
The array_values() function use for returns an array which have all the values of an array.
you can see below example:
<?php
//firstly create a array of a city detail
$Citydetail=array("cityname"=&
If you use to initializer receives the parameters passed when 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({
init: function(name) {
this.na
