跳至內容
選單
此問題已被標幟
2909 瀏覽次數

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 !

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
7月 25
2974
1
10月 24
2163
1
4月 24
2225
0
9月 23
1724
1
6月 23
2190