'Update status of production order if unknown'

def update_status(self, status=None):

    if (status != u'Stopped'):
        status = self.get_status(status)
    if (status != self.status):
        self.db_set(u'status', status)
    self.update_required_items()
    return status
