'Add sales orders in the table'

def add_so_in_table(self, open_so):

    self.clear_table(u'sales_orders')
    so_list = []
    for r in open_so:
        if (cstr(r[u'name']) not in so_list):
            pp_so = self.append(u'sales_orders', {})
            pp_so.sales_order = r[u'name']
            pp_so.sales_order_date = cstr(r[u'transaction_date'])
            pp_so.customer = cstr(r[u'customer'])
            pp_so.grand_total = flt(r[u'base_grand_total'])
