'Append all the customer codes and insert into "customer_code" field of item table'

def fill_customer_code(self):

    cust_code = []
    for d in self.get(u'customer_items'):
        cust_code.append(d.ref_code)
    self.customer_code = u','.join(cust_code)
