Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to use defaults function in OpenERP(Odoo)?

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

How to use another model in your model?

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

How to use another model in current model using cakephp?

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

How to disable caching completely in Cakephp?

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

how to consume Asp.net webservice from php client

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(

How to add the skype field in .py file(Python) in OpenERP(Odoo)?

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

How to define the States of object in openerp-7 & Openerp-8(Odoo)?

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 = {

How to Add a prefix to every URL in CakePHP?

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

How to find available user in live chat in OpenERP(Odoo)?

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)

How to calculate distance from Latitude and longitude

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

1 109 408
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: