Thursday, October 29, 2015

Odoo 8 - CCAvenue Integration

Pragmatic Techsoft has developed “Odoo 8 – CCAvenue” integration which is fast moving into the online transaction payment gateways. The deployment is easy and meeting all requirements for card payments, online payments. It works with Sale Order as well as Website module of Odoo 8 where online payment acquirers can be configured as CCAvenue gateway
  1. Configuration of CCAvenue settings
  2. Sale Order processing
  3. Accepting the payment in CCAvenue
  4. Updating the payment received in Odoo

1.Configure CCAvenue

Install the payment_ccavenue module.
Goto Settings-->Configuration-->Accounting





Click on Manage Payments Using CCAvenue.
Click on “Configure payment acquiring methods”
Configure your CCAvenue Account.
Put your Merchant Key , Access Code and Working key provided by CCAvenue.
Set the Associated Journal to create payment using CCAvenue.

2.Processing Sales Order

Go to Sales-->Sales-->Sale Order
- Create New Sale Order and Confirm it.
- You will see CCAvenue button in Online Payment Options.
- To Pay with CCAvenue Click on CCAvenue Button then it will redirect you to CCAvenue Website.

3.Accepting Payment in CCAvenue

- Login to your CCAvenue Account.
- Select Payment Method to Pay and pay.
After successful payment you will be redirected back to Odoo.

4.Payments update in Odoo

After successful payment one payment record is created in Odoo against the customer. In the reference you can see the CCAvenue transaction ID.
One transaction record is created in Payment Transactions where you can see all transaction related information.
Go to Settings-->Payments --> Payment Transactions

Odoo OpenERP - Loan Management

As name suggest, loan management module is blend of all important functionalities like manage different type of loan, different calculation mode, borrowed & issued loans, loans with installment repayments with accounting entry, annuity repayment, possibilities for entering special repayments and many more options with it.

Features of Pragmatic Loan Management are
  1. System helps you to create customized loan period.
  2. You can categorize type of loan and manage it.
  3. Loan types can be defined based on its calculation method(Flat and Reducing).
  4. System allow you to compute installment based on amount, intrest rate and period run time.
  5. System maintains all interest versions which company wants to define.
  6. It allows managing type of proof that company accepts and keep track.
  7. You can keep track of all installment received from a customer with accounting entry.

Loan period interface



Loan type interface

Loan Type Version

Run Time Interface to compute EMI (Reducing)

.

Loan Form

Friday, October 23, 2015

Odoo 8 - PayUMoney Integration

Pragmatic Techsoft has developed “Odoo 8 – payumoney” integration which is fast moving into the online transaction payment gateways. The deployment is easy and meeting all requirements for card payments, online payments. It works with Sale Order as well as Website module of Odoo 8 where online payment acquirers can be configured as PayUMoney gateway

Following are the flow with which this integration will be reviewed
  1. Configuration of PayUMoney settings
  2. Sale Order processing
  3. Accepting the payment in PayUMoney
  4. Updating the payment received in Odoo
  5. Website/Online order check out process

1.Configure PayUMoney

Install the payment_payumoney module.
Goto Settings-->Configuration-->Accounting
Click on Manage Payments Using PayUMoney.





Click on “Configure payment acquiring methods”
Configure your PayUMoney Account.
Put your Merchant Key and Salt provided by PayUMoney.
Set the Associated Journal to create payment using PayUMoney.

2.Processing Sales Order

Go to Sales-->Sales-->Sale Order
- Create New Sale Order and Confirm it.
- You will see PayUMoney button in Online Payment Options.
- To Pay with PayUMoney Click on PayUMoney Button then it will redirect you to PayUMoney Website.

3.Accepting Payment in PayUMoney


- Login to your PayUMoney Account.
- Select Payment Method to Pay and pay.

After successful payment you will be redirected back to Odoo.

4.Payments update in Odoo


After successful payment one payment record is created in Odoo against the customer.
In the reference you can see the PayUMoney transaction ID.

One transaction record is created in Payment Transactions where you can see all transaction related information.
Go to Settings-->Payments --> Payment Transactions

5.Website / Online Checkout


- Go to Website View
- Add Items to Cart and process checkout

- Fill up Billing Information and confirm the order
- On Validate Order form you can see PayUMoney Button in payment methods
- Select PayUMoney as payment method and click on pay now
- It will redirect you to PayUMoney website.
- Process the transaction
- After processing the transaction it will redirect you to Odoo.

Tuesday, October 13, 2015

Installation steps of Odoo 9



Click Here to Download Odoo 9



Step 1 :

First step to start is, make sure your server has all the latest versions & patches by doing an update:

You can use the below given two commands.


sudo apt-get update

sudo apt-get dist-upgrade


Step 2 :

We need to create an Odoo System User which will own and run the odoo application on our system.

This user is a system user, i have created this user here as home directory is reside in /opt/odoo with the help of below command.

sudo adduser --system --home=/opt/odoo --group odoo


Step 3 :

We can check wether we are able to login with newly created user with the below command.

sudo su - odoo -s /bin/bash


and check wethere we landed in the home directory /home/odoo by the command pwd.

By pressing exit, logout or ctrl+d come out from the user odoo.


Step 4 :

In this step we will install the database postgresql. With the help of below command.

sudo apt-get install postgresql

By default it will install postgres 9.3 on Ubuntu 14.04 LTS, if we want we can upgrade it with the required version.
We need to update the source list.

To install postgresql 9.4 follow the below steps.

Step 4.1

Create the new file pgdg.list under /etc/apt/sources.list.d directory and add the below line for repository.


Step 4.2

Import the repo key with below command.

wget --quiet -O - 

https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -


Step 4.3

Updte the package list.

sudo apt-get update


Step 4.4

Once the package list is updated, we can search and install the required 9.4 version of postgres.

sudo apt-get install postgresql-9.4


Step 5 :

Once we have install postgres 9.4 version, login to postgres to we can configure the required database.

sudo su - postgres


Step 6 :

Here we create a new database user which has privilige to create and drop the database. We create the user name odoo here and password is of individual choice.

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo

Enter password for new role: ********
Enter it again: ********


Step 7 :

once all steps performed, exit from the account, with below command.

exit


Step 8 :

Installation of required libraries.
We can install the libraries with below command.

sudo apt-get install python-pip python-dev libevent-dev gcc libxml2-dev libxslt-dev node-less libldap2-dev libssl-dev libpq-dev python-dev python-ldap libsasl2-dev


Odoo9 is depends on node-less package.


Once installing the system libraries we can install python libraries using pip. Create requirement.txt file on the system.
Here is command which will change the directory to /tmp, get the official requirement.txt from
and install it in your system. it will reduce steps to install the python dependency to install odoo 9 in your system.
First move to /tmp directory.

sudo cd /tmp

wget https://raw.githubusercontent.com/odoo/odoo/9.0/requirements.txt && sudo pip install -r requirements.txt


Once it finished, all the dependancies for Odoo9 installation will be finished.
  
Step 9 :
For Qweb templating, we have to install wkhtmltopdf and we can download it from below links.
For 32 bit :

For 64 bit :

Download the required one as per version in /tmp directory.
And run the below command as per requirement.
For 32 bit :

sudo dpkg -i /tmp/wkhtmltox-0.12.2.1_linux-trusty-i386.deb

For 64 bit :

sudo dpkg -i /tmp/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb


Step 10 :
Now we will proceed to Odoo installation.


Download the latest Odoo9 with below command in the /opt/odoo directory.

sudo wget https://github.com/odoo/odoo/archive/9.0.zip

Unzip the downloaded file 

sudo unzip file_name

Rename the extracted folder to odoo

sudo mv Extracted_folder  odoo


Step 11 :
Configuration of Odoo.
Here we have to find the configuration file of odoo application and it is reside under
/opt/odoo/odoo/debian directory.
We have to copy this file and also need to change permission and ownership.
Below are the commands we can use for this.

sudo cp /opt/odoo/odoo/debian/openerp-server.conf /etc/odoo-server.conf

sudo chown odoo: /etc/odoo-server.conf

sudo chmod 640 /etc/odoo-server.conf





we can verify made changes with the below command

ll /etc/odoo-server.conf

with the above changes, /etc/odoo-server.conf file will be owned and writeable only by odoo user and group. Root has read permission on it.
Make below changes to allow odoo to use default addons.


In the configurtion file add the below line for addons_path.

addons_path = /opt/odoo/odoo/addons

Now we move towards to init script.
By default it is stored in  /opt/odoo/odoo/debian/init. Modyfy it set the proper daemon path and save it.
Copy it /etc/init.d dirctory and name it as odoo-server and also change ownership to odoo user and permit it to execuatable.
We also need to create the log file to store the logs with the permission that odoo user should write it.


Below are the commands.

sudo mkdir /var/log/odoo

cd /var/log/odoo

sudo nano odoo-server.log

Save the file and exit from it.


give the permission to writable by the odoo user.

sudo chmod 755 /var/log/odoo/odoo-server.log

sudo chown odoo:root -R /var/log/odoo/

So we have finished with the configuration part.

Step 12 :
Its the time to check our server

to start the server type the below command.

sudo /etc/init.d/odoo-server start

we can see the log file

sudo tail -f /var/log/odoo/odoo-server.log 


if everything is fine in log file, then we can go in brower with the ip or localhost if it configured locally.

http://IP_ADDRESS:8069

or

http://localhost:8069 

if configured locally.

To automatically start and stop the Odoo at the time of system sart and shut, run the below command.

sudo update-rc.d odoo-server defaults