Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

creating custom action for calling business logic

By
parag
on 11/25/13, 12:23 AM 1,930 views

Hi,

I tried to create our custom actions and called business logic , but i didn't get success. Current action is overwriting the ORM methods like write,create, read etc where i am also calling business logic functions. But i want to create custom actions which doesn't overwrite ORM methods and from there i want to call business logic function.


def create(self, cr, uid, vals, args, *kwargs):
username = 'username ' password = 'password ' AccessLevel = 'AccessLevel '

response = pbxdb.ums_pbxdb(username,password,AccessLevel) // calling business logic function

super(cloudswtich_customer,self).create(cr, uid, vals, args, *kwargs)


I want to create own action from where i can call business logic, not using ORM methods.

Thanks & Regards, Parag Kumar

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 11/25/13, 12:23 AM
Seen: 1930 times
Last updated: 3/16/15, 8:10 AM