_columns = {
'credit': fields.integer( 'Credit', help='Project Credit'),
'money': fields.integer( 'Money', help='Project Money'),
}
def _calculate_rate(self, cr, uid, ids, money, context=None):
res = {}
for record in self.browse(cr, uid, ids, context=context):
res[record.id] = record.money * 100
return res
def on_change_credit_id(self, cr, uid, ids,money, context=None):
print ('-----------------------Credit--------------------')
res = {'value':{'credit': self._calculate_rate(self, cr, uid, ids, money,context=context),
}
----------------> TypeError: _calculate_rate() got multiple values for keyword argument 'context'
Who can help me please