Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

TypeError: luong_dc() takes at most 6 arguments (7 given)

By
huongcute
on 9/4/14, 4:05 AM 669 views

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 

0

Prakash

--Prakash--
3173
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
On 9/4/14, 4:15 AM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/4/14, 4:05 AM
Seen: 669 times
Last updated: 3/16/15, 8:10 AM