Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2897 Lượt xem

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 !

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 25
2973
1
thg 10 24
2160
1
thg 4 24
2219
0
thg 9 23
1722
1
thg 6 23
2188