def METHOD_NAME(self):
    """Update the status to ORDER_STATUS.SALES_ORDER."""
    for line_item in self.line_items:
        line_item.confirm()
    self.invoice_no = gen_invoice_no(self.organization)
    self.status = ORDER_STATUS.SALES_ORDER
    self.paid_at = utcnow()