Odoo IndexError: list assignment index out of range
问题 I just create a module. After adding values and got the problem IndexError: list assignment index out of range. How to fix it. Re Edit code please. Here is my code: class calculator(osv.osv): _name = 'calculator.calculator' def get_total(self, cr, uid, ids, field_name, arg, context): res = [] perfos = self.browse(cr, uid, ids, context) for perfo in perfos: res[perfo.id] = perfo.p + perfo.b return res _columns = { 'p':fields.selection(((1,'Outstanding'), (2,'Well Above Expectations'), (3,'As