تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2924 أدوات العرض

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
يوليو 25
2975
1
أكتوبر 24
2173
1
أبريل 24
2231
0
سبتمبر 23
1730
1
يونيو 23
2192