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

How to know if function is used by xml rpc

By
Matthieu
on 6/23/16, 8:13 AM 174 views

Hello,

I have a function in python "mag_connect" used in my "write" function in product_template, inherited from original product_template.

class product_template(osv.osv):

  _inherit = 'product.template'

 def write(self, cr, uid, ids, vals, context=None):

   self.mag_connect(cr, uid, ids, vals, context)

   res = super(product_template, self).write(cr, uid, ids, vals, context)

    return res

But, an other program I use is calling the "write" function thanks to xml rpc protocol and I want it not to enter in the mag_connect function.

How can I do this ?

Thank you for your help !

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

1 follower(s)

Stats

Asked: 6/23/16, 8:13 AM
Seen: 174 times
Last updated: 6/23/16, 9:59 AM