跳至內容
選單
此問題已被標幟
1 回覆
4185 瀏覽次數

Hi All !

I have an error :TypeError: luong_dc() takes at most 6 arguments (7 given). When I add a code to server:

def luong_dc(self, cr, uid, ids, ma_nv, context = None):
        v = {}
        obj = self.pool.get('dieu.chinh')
        if ma_nv == obj.ma_nv:
            v['luong_dc']=obj.luong_dc
            return{'value':v}

 

I dont know why I have an error? Can you help me?

Thanks 

頭像
捨棄
最佳答案

TypeError shows Method Parameter extra one argument passed. can you please post your code in xml file where the method is called in on_change or button object field.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
7月 16
5125
1
3月 15
8127
1
3月 15
5410
1
7月 25
359
0
7月 25
392