Hello everybody!!
Please who knows why do i get this error: TypeError: get_inputs() takes at least 8 arguments (7 given).
Here is my python and my xml.
Python:
def on_change_bill_id(self, cr, uid, ids, partner_id, invoice_mode, context=None):
print ('------------------------Facturations on change--------------------')
print ('partner =' )
print partner_id
print invoice_mode
res = {'value':{'bill_ids': self.get_inputs(cr, uid, ids, partner_id, invoice_mode, context=context),
'invoice_line': self.get_inputs2(cr, uid, ids, partner_id, invoice_mode, context=context),
}
}
print ('-------------------Onchange-----------------------')
return res
XML:
<field name="date_end" on_change="on_change_bill_id(partner_id, invoice_mode)"/>
Thanks a lot in advance
post your get_inputs method also... looks like it expects one more argument, also state the class
Hey!!!! I was asking you. If there is a problem say yes if no say No
sry .. been out on meeting... from here both methods looks fine, number of args seems ok fro both methods, is it possible that you have methods with same name in some other class and you are calling it ? check that.. if that is not the case.. i have no clue what else could be wrong..