
Search In
In defaults function first we have to go in .py file (python file)
After that we have to decide where we want defaults function and then give attribute defaults function to that field.
See below python code in .py file for reference : -class hr_empl
Hi if you want a condition where you want to load another model inside you model.
you can do as I code follow
App::import('Model', 'MyModel');
$my_model = new MyModel();
Or you can write
$this->SomeModel->MyModel
if you have already this
Hi
If you want a condition where you can load another model inside you model. you can do as I code, see the example below
App::import('Model', 'MyModel'); $my_model = new MyModel();
Or you can write
$this->SomeModel->MyModel;
if you hav
Hello if you want to disable you website's caching complety you just need to write configure code in core.php file
ex
You will have to look into /app/config/core.php and look for the line
Open app/config/core.php file and try to find
Configure::wr
I have tried this code:
require_once('php/lib/nusoap.php');
$client = new nusoap_client('http://210.212.23.51/rtpsappeal/service1.asmx?WSDL',true);
$userKey = "Zxo7654IBN";
$applicationId = '040172192101500191';
$result = $client->call(
For the skype field first we have to go in .py file (python file)
After that we have to decide where you want to give skype field and then give attribute of skype to that field.
Like below python code in .py file :
from openerp.osv import osv,fi
Below is the way to define the States of object in openerp-7 & Openerp-8(Odoo)
First we have to define the States After that, We have to add a ‘state’ field to object, in the
_columns collection
See below code Example-
<pre>
_columns = {
Hello Reader!
If you looking to fix a default language prefix for your all url in cakePhp then you can follow the steps which is the easiest and clean way :-
Open file routes.php from the location Config/routes.php
There in first line write the co
In below example, I have written Python script to find available user in live chat . If you are stuck in such case then directly copy below python code in your .py file:
users = self.get_available_users(cr, uid, channel_id, context=context)
Hello readers!, If you are having a project in PHP and need to calculate the distance from lat and longs you can use the code below:-
Here all the entries are saved in table('business')
(SELECT name, ACOS(SIN(RADIANS($latitude))*SIN(RADIANS(busines
