Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4288 Prikazi

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 

Avatar
Opusti
Best Answer

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.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
jul. 16
5195
1
mar. 15
8201
1
mar. 15
5510
1
jul. 25
434
0
jul. 25
497