Skip to Content
Menu
This question has been flagged
2395 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 !

Avatar
Discard
Related Posts Replies Views Activity
1
Oct 24
274
1
Apr 24
518
2
Mar 24
752
0
Sep 23
577
1
Jun 23
819