'Add Material Requests in the table'

def add_mr_in_table(self, pending_mr):

    self.clear_table(u'material_requests')
    mr_list = []
    for r in pending_mr:
        if (cstr(r[u'name']) not in mr_list):
            mr = self.append(u'material_requests', {})
            mr.material_request = r[u'name']
            mr.material_request_date = cstr(r[u'transaction_date'])
